lupyuen commented on PR #12178: URL: https://github.com/apache/nuttx/pull/12178#issuecomment-2124543560
@inochisa There might be a problem with QEMU SMP and OpenSBI / SSTC: When I tested with QEMU `-smp 8`: Out of 16 tries, 3 will boot OK, the rest will hang during NuttX Startup. It works fine without `-smp`. `-smp 8` comes from the NuttX Doc: https://nuttx.apache.org/docs/latest/platforms/risc-v/qemu-rv/boards/rv-virt/index.html#configurations ```bash $ qemu-system-riscv64 -semihosting -M virt,aclint=on -cpu rv64 -smp 8 -bios none -kernel nuttx -nographic ``` So we might have to remove `-smp 8` from the NuttX Doc. Or fix this issue in the NuttX Startup Code? (Due to Race Condition?) Here's how I reproduced the problem. Thanks! https://gist.github.com/lupyuen/df2c9a552b1679257c9ff5d871ce0a4f ```bash $ git clone https://github.com/inochisa/nuttx --branch qemu-s-mode $ git clone https://github.com/XuNeo/incubator-nuttx-apps apps --branch fix-lvgl-distclean-warning $ cat nuttx.hash NuttX Source (26 Apr 2024): https://github.com/apache/nuttx/tree/02c1a95c96069ea59401255169961c082471f826 NuttX Apps (30 Apr 2024): https://github.com/apache/nuttx-apps/tree/0f0caee0d0367c4664c05c5c14807f5d70f2e1de $ qemu-system-riscv64 --version QEMU emulator version 8.2.2 (Debian 1:8.2.2+ds-0ubuntu1) ## OpenSBI v1.3 ## Runtime SBI Version : 1.0 $ qemu-system-riscv64 \ -semihosting \ -M virt,aclint=on \ -cpu rv64 \ -smp 8 \ -kernel nuttx \ -nographic ## Out of 16 tries, 3 will boot OK $ neofetch .-/+oossssoo+/-. luppy@luppy-macbook-ubuntu `:+ssssssssssssssssss+:` -------------------------- -+ssssssssssssssssssyyssss+- OS: Ubuntu 24.04 LTS x86_64 .ossssssssssssssssssdMMMNysssso. Host: MacBookPro10,1 1.0 /ssssssssssshdmmNNmmyNMMMMhssssss/ Kernel: 6.8.0-31-generic +ssssssssshmydMMMMMMMNddddyssssssss+ Uptime: 1 hour, 29 mins /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Packages: 1911 (dpkg), 16 (snap .ssssssssdMMMNhsssssssssshNMMMdssssssss. Shell: bash 5.2.21 +sssshhhyNMMNyssssssssssssyNMMMysssssss+ Resolution: 1920x1080 ossyNMMMNyMMhsssssssssssssshmmmhssssssso DE: Unity ossyNMMMNyMMhsssssssssssssshmmmhssssssso WM: Mutter +sssshhhyNMMNyssssssssssssyNMMMysssssss+ WM Theme: Adwaita .ssssssssdMMMNhsssssssssshNMMMdssssssss. Theme: Yaru-dark [GTK2/3] /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/ Icons: Yaru [GTK2/3] +sssssssssdmydMMMMMMMMddddyssssssss+ Terminal: vscode /ssssssssssshdmNNNNmyNMMMMhssssss/ CPU: Intel i7-3820QM (8) @ 3.70 .ossssssssssssssssssdMMMNysssso. GPU: NVIDIA GeForce GT 650M Mac -+sssssssssssssssssyyyssss+- GPU: Intel 3rd Gen Core process `:+ssssssssssssssssss+:` Memory: 3667MiB / 15898MiB .-/+oossssoo+/-. ``` -- 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]
