[opensuse-arm] CPU1: failed to come online
Hello, I am running Leap 42.2 on Raspberry Pi 3 and trying to user qemu-kvm for OBS worker. Currently, I can not run guests with more that single CPU. Both using libvirt and using obsworker, I see 'CPU1: failed to come online'. [ 28s] booting kvm... [ 28s] ### VM INTERACTION START ### [ 28s] /usr/bin/qemu-system-aarch64 -nodefaults -no-reboot -nographic -vga none -enable-kvm -cpu host,aarch64=off -M virt,gic-version=host -object rng-random,filename=/dev/hwrng,id=rng0 -device virtio-rng-device,rng=rng0 -runas qemu -net none -M virt,gic-version=2 -kernel /var/cache/obs/worker/root_1/.mount/boot/kernel -initrd /var/cache/obs/worker/root_1/.mount/boot/initrd -append root=/dev/disk/by-id/virtio-0 rootfstype=ext3 rootflags=data=writeback,nobarrier,commit=150,noatime panic=1 quiet no-kvmclock nmi_watchdog=0 rw rd.driver.pre=binfmt_misc elevator=noop console=ttyAMA0 init=/.build/build -m 768 -drive file=/var/cache/obs/worker/root_1/root,format=raw,if=none,id=disk,serial=0,cache=unsafe -device virtio-blk-device,drive=disk -drive file=/var/cache/obs/worker/root_1/swap,format=raw,if=none,id=swap,serial=1,cache=unsafe -device virtio-blk-device,drive=swap -serial stdio -smp 2 [ 31s] [ 1.147658] CPU1: failed to come online [ 32s] [ 1.174458] socfpga_setup_ocram_self_refresh: Unable to find mmio-sram in dtb [ 34s] [ 4.059330] sr_init: platform driver register failed for SR [ 34s] [ 4.060566] Unable to find PPMU node [ 36s] [ 5.512390] dracut-pre-udev[161]: modprobe: FATAL: Module kqemu not found. [ 37s] [ 7.285749] dracut-pre-udev[161]: modprobe: FATAL: Module virtio_pci not found. [ 38s] [ 7.453945] dracut-pre-udev[161]: modprobe: FATAL: Module ibmvscsi not found. [ 38s] [ 7.483033] dracut-pre-udev[161]: modprobe: FATAL: Module e1000 not found. [ 38s] [ 7.498808] dracut-pre-udev[161]: modprobe: FATAL: Module ibmveth not found. [ 41s] ### VM INTERACTION END ### [ 41s] 2nd stage started in virtual machine -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Hi Matwey, The QEMU code in 42.2 has a bug on rpi3 which prohibits it from running SMP guests. Can you please try to use the 42.3 kernel and QEMU? The following patch did make SMP work for me: https://github.com/openSUSE/qemu/commit/3227a2bdc7a494194a6a4f7d5653ff178ecb... and that one is in 42.3. Alex On 21.06.17 11:43, Matwey V. Kornilov wrote:
Hello,
I am running Leap 42.2 on Raspberry Pi 3 and trying to user qemu-kvm for OBS worker. Currently, I can not run guests with more that single CPU.
Both using libvirt and using obsworker, I see 'CPU1: failed to come online'.
[ 28s] booting kvm... [ 28s] ### VM INTERACTION START ### [ 28s] /usr/bin/qemu-system-aarch64 -nodefaults -no-reboot -nographic -vga none -enable-kvm -cpu host,aarch64=off -M virt,gic-version=host -object rng-random,filename=/dev/hwrng,id=rng0 -device virtio-rng-device,rng=rng0 -runas qemu -net none -M virt,gic-version=2 -kernel /var/cache/obs/worker/root_1/.mount/boot/kernel -initrd /var/cache/obs/worker/root_1/.mount/boot/initrd -append root=/dev/disk/by-id/virtio-0 rootfstype=ext3 rootflags=data=writeback,nobarrier,commit=150,noatime panic=1 quiet no-kvmclock nmi_watchdog=0 rw rd.driver.pre=binfmt_misc elevator=noop console=ttyAMA0 init=/.build/build -m 768 -drive file=/var/cache/obs/worker/root_1/root,format=raw,if=none,id=disk,serial=0,cache=unsafe -device virtio-blk-device,drive=disk -drive file=/var/cache/obs/worker/root_1/swap,format=raw,if=none,id=swap,serial=1,cache=unsafe -device virtio-blk-device,drive=swap -serial stdio -smp 2 [ 31s] [ 1.147658] CPU1: failed to come online [ 32s] [ 1.174458] socfpga_setup_ocram_self_refresh: Unable to find mmio-sram in dtb [ 34s] [ 4.059330] sr_init: platform driver register failed for SR [ 34s] [ 4.060566] Unable to find PPMU node [ 36s] [ 5.512390] dracut-pre-udev[161]: modprobe: FATAL: Module kqemu not found. [ 37s] [ 7.285749] dracut-pre-udev[161]: modprobe: FATAL: Module virtio_pci not found. [ 38s] [ 7.453945] dracut-pre-udev[161]: modprobe: FATAL: Module ibmvscsi not found. [ 38s] [ 7.483033] dracut-pre-udev[161]: modprobe: FATAL: Module e1000 not found. [ 38s] [ 7.498808] dracut-pre-udev[161]: modprobe: FATAL: Module ibmveth not found. [ 41s] ### VM INTERACTION END ### [ 41s] 2nd stage started in virtual machine
-- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
2017-06-21 12:53 GMT+03:00 Alexander Graf <agraf@suse.de>:
Hi Matwey,
The QEMU code in 42.2 has a bug on rpi3 which prohibits it from running SMP guests. Can you please try to use the 42.3 kernel and QEMU? The following patch did make SMP work for me:
https://github.com/openSUSE/qemu/commit/3227a2bdc7a494194a6a4f7d5653ff178ecb...
Isn't it in 42.2? https://build.opensuse.org/package/view_file/openSUSE:Leap:42.2/qemu/0071-AR...
and that one is in 42.3.
Alex
On 21.06.17 11:43, Matwey V. Kornilov wrote:
Hello,
I am running Leap 42.2 on Raspberry Pi 3 and trying to user qemu-kvm for OBS worker. Currently, I can not run guests with more that single CPU.
Both using libvirt and using obsworker, I see 'CPU1: failed to come online'.
[ 28s] booting kvm... [ 28s] ### VM INTERACTION START ### [ 28s] /usr/bin/qemu-system-aarch64 -nodefaults -no-reboot -nographic -vga none -enable-kvm -cpu host,aarch64=off -M virt,gic-version=host -object rng-random,filename=/dev/hwrng,id=rng0 -device virtio-rng-device,rng=rng0 -runas qemu -net none -M virt,gic-version=2 -kernel /var/cache/obs/worker/root_1/.mount/boot/kernel -initrd /var/cache/obs/worker/root_1/.mount/boot/initrd -append root=/dev/disk/by-id/virtio-0 rootfstype=ext3 rootflags=data=writeback,nobarrier,commit=150,noatime panic=1 quiet no-kvmclock nmi_watchdog=0 rw rd.driver.pre=binfmt_misc elevator=noop console=ttyAMA0 init=/.build/build -m 768 -drive file=/var/cache/obs/worker/root_1/root,format=raw,if=none,id=disk,serial=0,cache=unsafe -device virtio-blk-device,drive=disk -drive file=/var/cache/obs/worker/root_1/swap,format=raw,if=none,id=swap,serial=1,cache=unsafe -device virtio-blk-device,drive=swap -serial stdio -smp 2 [ 31s] [ 1.147658] CPU1: failed to come online [ 32s] [ 1.174458] socfpga_setup_ocram_self_refresh: Unable to find mmio-sram in dtb [ 34s] [ 4.059330] sr_init: platform driver register failed for SR [ 34s] [ 4.060566] Unable to find PPMU node [ 36s] [ 5.512390] dracut-pre-udev[161]: modprobe: FATAL: Module kqemu not found. [ 37s] [ 7.285749] dracut-pre-udev[161]: modprobe: FATAL: Module virtio_pci not found. [ 38s] [ 7.453945] dracut-pre-udev[161]: modprobe: FATAL: Module ibmvscsi not found. [ 38s] [ 7.483033] dracut-pre-udev[161]: modprobe: FATAL: Module e1000 not found. [ 38s] [ 7.498808] dracut-pre-udev[161]: modprobe: FATAL: Module ibmveth not found. [ 41s] ### VM INTERACTION END ### [ 41s] 2nd stage started in virtual machine
-- With best regards, Matwey V. Kornilov http://blog.matwey.name xmpp://0x2207@jabber.ru -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
On 21.06.17 11:56, Matwey V. Kornilov wrote:
2017-06-21 12:53 GMT+03:00 Alexander Graf <agraf@suse.de>:
Hi Matwey,
The QEMU code in 42.2 has a bug on rpi3 which prohibits it from running SMP guests. Can you please try to use the 42.3 kernel and QEMU? The following patch did make SMP work for me:
https://github.com/openSUSE/qemu/commit/3227a2bdc7a494194a6a4f7d5653ff178ecb...
Isn't it in 42.2?
https://build.opensuse.org/package/view_file/openSUSE:Leap:42.2/qemu/0071-AR...
It is, but that's an older version of the patch. There we're missing the iothread lock, so internal state gets corrupted. Also IIRC there were some kernel side fixes for SMP support. Alex -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
2017-06-21 12:57 GMT+03:00 Alexander Graf <agraf@suse.de>:
On 21.06.17 11:56, Matwey V. Kornilov wrote:
2017-06-21 12:53 GMT+03:00 Alexander Graf <agraf@suse.de>:
Hi Matwey,
The QEMU code in 42.2 has a bug on rpi3 which prohibits it from running SMP guests. Can you please try to use the 42.3 kernel and QEMU? The following patch did make SMP work for me:
https://github.com/openSUSE/qemu/commit/3227a2bdc7a494194a6a4f7d5653ff178ecb...
Isn't it in 42.2?
https://build.opensuse.org/package/view_file/openSUSE:Leap:42.2/qemu/0071-AR...
It is, but that's an older version of the patch. There we're missing the iothread lock, so internal state gets corrupted.
Also IIRC there were some kernel side fixes for SMP support.
Cool, thank you. I will look into 42.3 soon. -- With best regards, Matwey V. Kornilov http://blog.matwey.name xmpp://0x2207@jabber.ru -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
participants (2)
-
Alexander Graf
-
Matwey V. Kornilov