masayuki2009 commented on PR #14366:
URL: https://github.com/apache/nuttx/pull/14366#issuecomment-2418474275
@pussuw
I noticed that rv-virt:smp hangs when executing the smp app after merging
this PR.
```
$ /home/ishikawa/opensource/QEMU/qemu-9.0.0/build/qemu-system-riscv32
-semihosting -nographic -cpu rv32 -smp 8 -M virt,aclint=on -bios none -kernel
nuttx
NuttShell (NSH) NuttX-12.0.0
nsh>
nsh> uname -a
NuttX 12.0.0 526ba1ab34 Oct 17 2024 13:26:30 risc-v rv-virt
nsh> mount
/proc type procfs
nsh> ps
PID GROUP CPU PRI POLICY TYPE NPX STATE EVENT SIGMASK
STACK USED FILLED COMMAND
0 0 0 0 FIFO Kthread - Assigned 0000000000000000
0002032 0000748 36.8% CPU0 IDLE
1 0 1 0 FIFO Kthread - Running 0000000000000000
0002032 0002032 100.0%! CPU1 IDLE
2 0 2 0 FIFO Kthread - Running 0000000000000000
0002032 0002032 100.0%! CPU2 IDLE
3 0 3 0 FIFO Kthread - Running 0000000000000000
0002032 0002032 100.0%! CPU3 IDLE
4 0 4 0 FIFO Kthread - Running 0000000000000000
0002032 0002032 100.0%! CPU4 IDLE
5 0 5 0 FIFO Kthread - Running 0000000000000000
0002032 0002032 100.0%! CPU5 IDLE
6 0 6 0 FIFO Kthread - Running 0000000000000000
0002032 0002032 100.0%! CPU6 IDLE
7 0 7 0 FIFO Kthread - Running 0000000000000000
0002032 0002032 100.0%! CPU7 IDLE
8 8 0 100 RR Task - Running 0000000000000000
0002000 0001644 82.2%! nsh_main
nsh> free
total used free maxused maxfree nused nfree name
33363328 5064 33358264 5448 33358264 19 1 Umem
nsh> smp
Main[0]: Running on CPU0
Main[0]: Initializing barrier
Main[0]: Thread 1 created
Main[0]: Thread 2 created
Main[0]: Thread 3 created
Main[0]: Thread 4 created
Main[0]: Thread 5 created
Main[0]: Thread 6 created
Main[0]: Thread 7 created
Main[0]: Thread 8 created
Thread[2]: Started
Thread[2]: Running on CPU0
Thread[3]: Started
Thread[3]: Running on CPU0
Thread[4]: Started
Thread[4]: Running on CPU0
Thread[5]: Started
Thread[5]: Running on CPU0
Thread[6]: Started
Thread[6]: Running on CPU0
Thread[7]: Started
Thread[7]: Running on CPU0
Thread[8]: Started
Thread[8]: Running on CPU0
Thread[2]: Calling pthread_barrier_wait()
Thread[3]: Calling pthread_barrier_wait()
Thread[4]: Calling pthread_barrier_wait()
Thread[5]: Calling pthread_barrier_wait()
Thread[6]: Calling pthread_barrier_wait()
Thread[7]: Calling pthread_barrier_wait()
Thread[8]: Calling pthread_barrier_wait()
```
--
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]