RT-Thread / rt-thread

RT-Thread is an open source IoT Real-Time Operating System (RTOS).
https://www.rt-thread.io
Apache License 2.0
10.56k stars 5.03k forks source link

[Bug] [smp][rk3568]rk3568 multicore can not be running #9639

Open dmanzhang opened 1 week ago

dmanzhang commented 1 week ago

RT-Thread Version

5.1.0

Hardware Type/Architectures

rk3568

Develop Toolchain

Other

Describe the bug

  1. rk3568 multicore can not be running
  2. It is ready, but not running

msh />ps thread cpu bind pri status sp stack size max used left tick error tcb addr


tshell 0 4 20 running 0x00000540 0x00001000 48% 0x0000000a OK 0x00000000203920e8 phy N/A 2 12 ready 0x00000328 0x00002000 09% 0x00000002 OK 0x00000000202392c0 sys wor N/A 4 23 suspend 0x000003b0 0x00000800 48% 0x0000000a OK 0x0000000020390e78 tcpip N/A 4 10 suspend 0x00000490 0x00004000 08% 0x00000014 EINTRPT 0x000000002038cc98 etx N/A 4 12 suspend 0x00000418 0x00004000 06% 0x00000010 EINTRPT 0x000000002022d1b0 erx N/A 4 12 suspend 0x00000428 0x00004000 06% 0x00000010 EINTRPT 0x0000000020231b10 tsystem N/A 4 30 suspend 0x000003f8 0x00002000 14% 0x00000020 EINTRPT 0x00000000202406e0 tidle3 N/A 3 31 ready 0x00000330 0x00001000 19% 0x00000020 OK 0x000000002023c5d8 tidle2 N/A 2 31 ready 0x00000330 0x00001000 19% 0x00000020 OK 0x000000002023c4d0 tidle1 N/A 1 31 ready 0x00000330 0x00001000 19% 0x00000020 OK 0x000000002023c3c8 tidle0 N/A 0 31 ready 0x00000360 0x00001000 37% 0x0000000a OK 0x000000002023c2c0 timer N/A 4 4 suspend 0x00000410 0x00001000 25% 0x0000000a EINTRPT 0x0000000020242c08

"phy" thread is ready,but can not run. Had eabled RT_USING_SMP

Other additional context

No response

dmanzhang commented 1 day ago

调用psci接口成功了,但是没有走到_secondary_cpu_entry msh />I/TC: Secondary CPU 1 initializing I/TC: Secondary CPU 1 switching to normal world boot I/TC: Secondary CPU 2 initializing I/TC: Secondary CPU 2 switching to normal world boot I/TC: Secondary CPU 3 initializing I/TC: Secondary CPU 3 switching to normal world boot