Rather than hard-coding the number of CPUs to 2, look up the PVPE field
in MVPConf0, as the valid VPE numbers are from 0 to PVPE inclusive.
Details
Details
- Reviewers
br - Group Reviewers
MIPS - Commits
- rS337771: Query MVPConf0.PVPE for number of CPUs.
Boot on QEMU with -smp 4 and verify all 4 CPUs are brought up.
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/mips/malta/malta_mp.c | ||
---|---|---|
218 ↗ | (On Diff #46464) | what m is doing here? |
Comment Actions
Is booting on QEMU with more than 2 cores (or exactly one, which is also not equal to 2!) and observing them all being brought up sufficient? If so I will update the revision's description.
sys/mips/malta/malta_mp.c | ||
---|---|---|
218 ↗ | (On Diff #46464) | Nothing it would seem; it's been there and unused since the file was created in r305664. I'll remove it. |
Comment Actions
Boots to userspace with -smp 4 on QEMU:
... Preloaded elf kernel "kernel" at 0xffffffff808c00f8. real memory = 2147483648 (2097152K bytes) Physical memory chunk(s): 0x00a06000 - 0x0fffffff, 257925120 bytes (62970 pages) 0x90000000 - 0xfcd64fff, 1825984512 bytes (445797 pages) avail memory = 2074578944 (1978MB) Waiting for cpu1 to start CPU 1 started AP #1 started! Waiting for cpu2 to start CPU 2 started AP #2 started! Waiting for cpu3 to start CPU 3 started AP #3 started! FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs ...
sys/mips/malta/malta_mp.c | ||
---|---|---|
54 ↗ | (On Diff #46474) | #define MVPCONF0_PVPE_MASK |