santhosh-c-c opened a new pull request, #22047: URL: https://github.com/apache/nuttx/pull/22047
## Summary The TriCore port runs NuttX on CPU0 only, the other cores are released to separate images. This series runs one SMP kernel on all CPUs of TC3x and TC4x, and adds BMP (bound multi-processing) on top of it. ``` SMP (CONFIG_SMP): --------------------------------------------------------- | Task A | Task B | Task C | Task D | ... | <- the scheduler may run and --------------------------------------------------------- move any task on any CPU | one NuttX kernel: code, data, heap | --------------------------------------------------------- | drivers shared by all CPUs (spinlock/mutex) | --------------------------------------------------------- | CPU0 | CPU1 | CPU2 | CPU3 | CPU4 | CPU5 | --------------------------------------------------------- BMP (CONFIG_SMP + CONFIG_BMP): --------------------------------------------------------- | Task A | Task B | Task C | Task D | Task E | Task F | <- each task is bound to one CPU: | CPU0 | CPU1 | CPU2 | CPU3 | CPU4 | CPU5 | the CPU of its creator or the one --------------------------------------------------------- CPU in its attributes, never moved | one NuttX kernel: code, data, heap | --------------------------------------------------------- | drivers shared by all CPUs, each IRQ routed to the | <- up_affinity_irq() picks the CPU, | CPU that serves it | else the CPU that enables it --------------------------------------------------------- | CPU0 | CPU1 | CPU2 | CPU3 | CPU4 | CPU5 | --------------------------------------------------------- ``` BMP rules (CONFIG_BMP, sched): - a new task or thread runs on the CPU of its creator, or on the single CPU named in its creation attributes - an affinity mask must name exactly one existing CPU - a task that has started cannot move to another CPU (sched_setaffinity() returns -EINVAL) ## Dependency Depends on https://github.com/apache/nuttx/pull/21958 and the series under it. The first commit is https://github.com/apache/nuttx/pull/21940 (already merged): it is needed here because #21958 is based on a master from before it, and it goes away when #21958 is rebased. ## Impact - New options: CONFIG_BMP (sched) and TRICORE_SMP_CSA_COUNT (arch/tricore). - SMP is offered with the GNU toolchain only (the secondary entry is in the GNU startup). - TC4x time keeping is now correct also without SMP. - Builds without SMP are otherwise unchanged. No documentation changes. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
