Does LibBSD only support EDF SMP scheduler
Summary
Hello all, I am trying to porting LibBSD to some armv8a platform with SMP support, but I find that only EDF scheduler workable for mine when libBSD enabled, when talking about UP, all kinds of scheduler works, So I'm wondering if anyone do so kind of test like me
- EDF SMP is okay, but when I try to switch to priority SMP failed
PS: I care about the scheduler config because EDF is not priority 255 based (or not finding decent way to configure it), I want to keep the same kind of default scheduler algorithm as UP
- my scheduler config is
#define CONFIGURE_MICROSECONDS_PER_TICK 1000
#define CONFIGURE_MAXIMUM_PROCESSORS 8
#if defined(RTEMS_SMP) && (CONFIGURE_MAXIMUM_PROCESSORS > 1)
#define CONFIGURE_MAXIMUM_PRIORITY 255
#define CONFIGURE_SCHEDULER_PRIORITY_SMP
#include <rtems/scheduler.h>
RTEMS_SCHEDULER_PRIORITY_SMP(io, CONFIGURE_MAXIMUM_PRIORITY + 1);
RTEMS_SCHEDULER_PRIORITY_SMP(work, CONFIGURE_MAXIMUM_PRIORITY + 1);
#define CONFIGURE_SCHEDULER_TABLE_ENTRIES \
RTEMS_SCHEDULER_TABLE_PRIORITY_SMP( \
io, \
rtems_build_name('I', 'O', ' ', ' ') \
), \
RTEMS_SCHEDULER_TABLE_PRIORITY_SMP( \
work, \
rtems_build_name('W', 'O', 'R', 'K') \
)
#define CONFIGURE_SCHEDULER_ASSIGNMENTS \
RTEMS_SCHEDULER_ASSIGN(0, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_MANDATORY), \
RTEMS_SCHEDULER_ASSIGN(1, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_MANDATORY), \
RTEMS_SCHEDULER_ASSIGN(1, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_MANDATORY), \
RTEMS_SCHEDULER_ASSIGN(1, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_MANDATORY), \
RTEMS_SCHEDULER_ASSIGN(1, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_OPTIONAL), \
RTEMS_SCHEDULER_ASSIGN(1, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_OPTIONAL), \
RTEMS_SCHEDULER_ASSIGN(1, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_OPTIONAL), \
RTEMS_SCHEDULER_ASSIGN(1, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_OPTIONAL)
#else /* RTEMS_SMP */
#define CONFIGURE_SCHEDULER_PRIORITY
#endif
PS: I also noticed that LibBSD testsuite epoch01 is configured as EDF SMP, and it's the only SMP configured LibBSD demo, so I wondering if any knowing issue there, Thanks
Steps to reproduce
Edited by geng zhu