Re: [RFC] SMP support for RISC-V privilege architecture
Hello Andrew, Kumar,
Thank you for pointing about regression tests.
On 2020/10/07 9:34, Boie, Andrew P wrote:
Yes, right.(*)QEMU RV32 virt pc:That PR looks fine. But you definitely will have some work to do to get SMP working on Risc-V, starting with changing the arch to select CONFIG_SWITCH, and then implement arch_start_cpu(), arch_curr_cpu(), etc.
For sanitycheck, I added another patch to change configs of qemu_rv32_virt
board. It selected CONFIG_USE_SWITCH and related context switch configs.
And set "y" to CONFIG_SMP in board_defconfig.
These SMP patch and additional configs patch are here:
And I created these patches can be added on PR's patch (not conflict):
I have tested "sanitycheck -p qemu_rv32_virt -t smp" and fixed some bugs.But I don't understand Zephyr's SMP mechanism perfectly and don't knowThere are an assortment of tests with 'smp' in their tags, defined by testcase.yaml.
Finally, my implementation passed all 3 SMP test sets.
I'll prepare pull request for these patches. Thank you very much!