Hi, all,
Debian/mips64el runs well on qemu-system-mips64el until I turned on smp option with a number of 2 or higher. See the error message below. It usually hangs pretty early on.
I have experimented with different CPU types (e.g., 5KEc) and different memory amont with no avail. Does anybody have an idea?
I attached the kernel config for reference. It appears SMP kernel configs are enabled properly.
Thanks a lot!
Jun
qemu-system-mips64el -M malta -smp 2 -cpu MIPS64R2-generic -m 1314 -hda hda.qcow2 -kernel vmlinux -initrd initrd.img -append 'root=/dev/sda1 console=ttyS0 nokaslr' -nographic -net user,hostfwd=tcp::2222-:22,hostfwd=tcp::8080-:80,hostfwd=tcp::8443-:443
-net nic -serial mon:stdio
qemu-system-mips64el: warning: SPD cannot represent final 2MB of SDRAM
[ 0.000000] Linux version 4.19.0-6-5kc-malta ( debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-6)) #1
SMP Debian 4.19.67-2+deb10u1 (2019-09-20)
[ 0.000000] earlycon: uart8250 at I/O port 0x3f8 (options '38400n8')
[ 0.000000] bootconsole [uart8250] enabled
[ 0.000000] CPU0 revision is: 00010000 (MIPS GENERIC QEMU)
[ 0.000000] FPU revision is: 007f0000
[ 0.000000] Checking for the multiply/shift bug... no.
[ 0.000000] Checking for the daddiu bug... no.
[ 0.000000] MIPS: machine is mti,malta
[ 0.000000] Software DMA cache coherency enabled
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 0000000010000000 @ 0000000000000000 (usable)
[ 0.000000] memory: 0000000042200000 @ 0000000090000000 (usable)
[HANG FOREVER AT HERE ...]
Thanks a lot!</div><div><br></div><div>Jun</div><div><br></div><div>qemu-system-mips64el -M malta -smp 2 -cpu MIPS64R2-generic -m 1314 -hda hda.qcow2 -kernel vmlinux -initrd initrd.img -append 'root=/dev/sda1 console=ttyS0 nokaslr' -nographic-net user,hostfwd=tcp::2222-:22,hostfwd=tcp::8080-:80,hostfwd=tcp::8443-:443 -net nic -serial mon:stdio<br>qemu-system-mips64el: warning: SPD cannot represent final 2MB of SDRAM<br>[ 0.000000] Linux version 4.19.0-6-5kc-malta (<a href="mailto:debian-
Hi, all,net nic -serial mon:stdio
Debian/mips64el runs well on qemu-system-mips64el until I turned on smp option with a number of 2 or higher. See the error message below. It usually hangs pretty early on.
I have experimented with different CPU types (e.g., 5KEc) and different memory amont with no avail. Does anybody have an idea?
I attached the kernel config for reference. It appears SMP kernel configs are enabled properly.
Thanks a lot!
Jun
qemu-system-mips64el -M malta -smp 2 -cpu MIPS64R2-generic -m 1314 -hda hda.qcow2 -kernel vmlinux -initrd initrd.img -append 'root=/dev/sda1 console=ttyS0 nokaslr' -nographic -net user,hostfwd=tcp::2222-:22,hostfwd=tcp::8080-:80,hostfwd=tcp::8443-:443 -
qemu-system-mips64el: warning: SPD cannot represent final 2MB of SDRAM
[ 0.000000] Linux version 4.19.0-6-5kc-malta (debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.67-2+deb10u1 (2019-09-20)
[ 0.000000] earlycon: uart8250 at I/O port 0x3f8 (options '38400n8')
[ 0.000000] bootconsole [uart8250] enabled
[ 0.000000] CPU0 revision is: 00010000 (MIPS GENERIC QEMU)
[ 0.000000] FPU revision is: 007f0000
[ 0.000000] Checking for the multiply/shift bug... no.
[ 0.000000] Checking for the daddiu bug... no.
[ 0.000000] MIPS: machine is mti,malta
[ 0.000000] Software DMA cache coherency enabled
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 0000000010000000 @ 0000000000000000 (usable)
[ 0.000000] memory: 0000000042200000 @ 0000000090000000 (usable)
[HANG FOREVER AT HERE ...]
On Wed, Jan 1, 2020 at 6:50 PM Jun Sun <jsun@junsun.net> wrote:
Hi, all,
Debian/mips64el runs well on qemu-system-mips64el until I turned on smp option with a number of 2 or higher. See the error message below. It usually hangs pretty early on.
Are you sure QEMU/MIPS does not support SMP? Below link written in
2016 clearly shows something was working then.
https://www.mips.com/blog/how-to-run-smp-linux-in-qemu-on-a-mips64-release-6-cpu/
Also, as Lixing mentioned in our private exchange, there is SMP
support for loongson. Lixing, I assume loongson SMP support is
already merged in QEMU repo, right? Can you point out the relevant
source code directories?
On 2020-01-04 20:46, Jun Sun wrote:
On Wed, Jan 1, 2020 at 6:50 PM Jun Sun <jsun@junsun.net> wrote:
Hi, all,
Debian/mips64el runs well on qemu-system-mips64el until I turned on smp option with a number of 2 or higher. See the error message below. It usually hangs pretty early on.
QEMU/mips doesn't really support SMP. The -smp option used to be for
SMT, but I am not even sure it really worked.
All that said, it's still a bug in QEMU to accept this option.
--
Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://www.aurel32.net
2016 clearly shows something was working then.Hi Jun,
https://www.mips.com/blog/how-to-run-smp-linux-in-qemu-on-a-mips64-release-6-cpu/
Also, as Lixing mentioned in our private exchange, there is SMP
support for loongson. Lixing, I assume loongson SMP support is
already merged in QEMU repo, right? Can you point out the relevant
source code directories?
Would love to get more pointers here! Thanks!
Jun
On Thu, Jan 9, 2020 at 1:24 PM Aurelien Jarno <aurelien@aurel32.net>
wrote:
on smp option with a number of 2 or higher. See the error message
On 2020-01-04 20:46, Jun Sun wrote:
On Wed, Jan 1, 2020 at 6:50 PM Jun Sun <jsun@junsun.net> wrote:
Hi, all,
Debian/mips64el runs well on qemu-system-mips64el until I turned
below. It usually hangs pretty early on.
QEMU/mips doesn't really support SMP. The -smp option used to be for
SMT, but I am not even sure it really worked.
All that said, it's still a bug in QEMU to accept this option.
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
aurelien@aurel32.net http://www.aurel32.net
于 2020年1月13日 GMT+08:00 上午3:34:18, Jun Sun <jsun@junsun.net> 写到:
Are you sure QEMU/MIPS does not support SMP? Below link written in
2016 clearly shows something was working then.
https://www.mips.com/blog/how-to-run-smp-linux-in-qemu-on-a-mips64-release-6-cpu/
Also, as Lixing mentioned in our private exchange, there is SMPHi Jun,
support for loongson. Lixing, I assume loongson SMP support is
already merged in QEMU repo, right? Can you point out the relevant
source code directories?
As far as I known, Loongson is using there own SMP IPI implementation instead of MIPS MT One.
There QEMU implementation could be found here [1].
QEMU have implemented MIPS MT ASE for SMP.
Hi,
On 2020-01-12 11:34, Jun Sun wrote:
Are you sure QEMU/MIPS does not support SMP? Below link written in
2016 clearly shows something was working then.
https://www.mips.com/blog/how-to-run-smp-linux-in-qemu-on-a-mips64-release-6-cpu/
It's not supported for the malta/mips64r2 combination you are trying to
use. It's clearly possible that it is supported for mips64r6, but it's a different instruction set, so you can't run a standard Debian
distribution on it.
Also, as Lixing mentioned in our private exchange, there is SMP
support for loongson. Lixing, I assume loongson SMP support is
already merged in QEMU repo, right? Can you point out the relevant
source code directories?
Lixing mentioned virtualization. In that case it is indeed supported
like on other mips64r5 CPUs. For that you need to use add the -enable-kvm option to the qemu command.
Thanks, Jiaxun. See more questions below.
Jun
On Sun, Jan 12, 2020 at 5:17 PM Jiaxun Yang <jiaxun.yang@flygoat.com> wrote:
于 2020年1月13日 GMT+08:00 上午3:34:18, Jun Sun <jsun@junsun.net> 写到:
Are you sure QEMU/MIPS does not support SMP? Below link written in
2016 clearly shows something was working then.
https://www.mips.com/blog/how-to-run-smp-linux-in-qemu-on-a-mips64-release-6-cpu/
Also, as Lixing mentioned in our private exchange, there is SMPHi Jun,
support for loongson. Lixing, I assume loongson SMP support is
already merged in QEMU repo, right? Can you point out the relevant >source code directories?
As far as I known, Loongson is using there own SMP IPI implementation instead of MIPS MT One.
There QEMU implementation could be found here [1].
QEMU have implemented MIPS MT ASE for SMP.
Do you know how to enable and run MIPS MT ASE in qemu? For with CPU options?
Thanks, Jiaxun. See more questions below.
Jun
On Sun, Jan 12, 2020 at 5:17 PM Jiaxun Yang <jiaxun.yang@flygoat.com>
wrote:
于 2020年1月13日 GMT+08:00 上午3:34:18, Jun Sun <jsun@junsun.net> 写到:
Are you sure QEMU/MIPS does not support SMP? Below link written inHi Jun,
2016 clearly shows something was working then.
https://www.mips.com/blog/how-to-run-smp-linux-in-qemu-on-a-mips64-release-6-cpu/
Also, as Lixing mentioned in our private exchange, there is SMP
support for loongson. Lixing, I assume loongson SMP support is
already merged in QEMU repo, right? Can you point out the relevant
source code directories?
As far as I known, Loongson is using there own SMP IPI implementation >instead of MIPS MT One.
There QEMU implementation could be found here [1].
QEMU have implemented MIPS MT ASE for SMP.
Do you know how to enable and run MIPS MT ASE in qemu? For with CPU
options?
On Sun, Jan 12, 2020 at 11:58 AM Aurelien Jarno <aurelien@aurel32.net> wrote:
On 2020-01-12 11:34, Jun Sun wrote:
Are you sure QEMU/MIPS does not support SMP? Below link written in
2016 clearly shows something was working then.
https://www.mips.com/blog/how-to-run-smp-linux-in-qemu-on-a-mips64-release-6-cpu/
It's not supported for the malta/mips64r2 combination you are trying to use. It's clearly possible that it is supported for mips64r6, but it's a different instruction set, so you can't run a standard Debian
distribution on it.
How do I specify mips64r6 cpu to start qemu? A simple cpu listing
below shows no such CPU. If mips64r6 is indeed supported with SMP, I
would think mips64r2 userland should run fine.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 66:42:37 |
Calls: | 6,654 |
Files: | 12,200 |
Messages: | 5,331,885 |