Gallium drivers (iris, llvmpipe) causing slow redraws and glitches in grub in QEMU with spice and gl=on
System information
System: Kernel: 5.10.0-1-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1
Desktop: N/A wm: xmonad dm: startx Distro: Debian GNU/Linux bullseye/sid
CPU: Info: Dual Core model: Intel Core i7-7500U bits: 64 type: MT MCP
arch: Amber/Kaby Lake note: check rev: 9 L2 cache: 4 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 23199
Speed: 800 MHz min/max: 400/3500 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800
Graphics: Device-1: Intel HD Graphics 620 vendor: Lenovo driver: i915 v: kernel bus ID: 00:02.0
chip ID: 8086:5916
Device-2: NVIDIA GM108M [GeForce 940MX] vendor: Lenovo driver: N/A bus ID: 02:00.0
chip ID: 10de:134d
Device-3: Chicony Integrated Camera type: USB driver: uvcvideo bus ID: 1-8:5
chip ID: 04f2:b5ab
Display: x11 server: X.Org 1.20.10 compositor: compton driver: loaded: modesetting
resolution: 1: 1920x1080~60Hz 2: 1920x1080~60Hz s-dpi: 96
OpenGL: renderer: Mesa Intel HD Graphics 620 (KBL GT2) v: 4.6 Mesa 20.3.2
direct render: Yes
QEMU 5.2, but I vaguely remember I could reproduce this with QEMU 4.2 as well.
Describe the issue
When booting a Linux live cd in qemu with -spice …,gl=on
, the text mode GRUB redraws really slowly and sometimes doesn't appear at all. There are also some glitches, but these will hopefully be solved by #2678 (comment 775867) (haven't tested these yet).
The full reproductions steps are:
-
wget https://dl.fedoraproject.org/pub/fedora/linux/releases/32/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-32-1.6.iso
(or the smallerhttps://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.7.0-amd64-netinst.iso
) -
LIBGL_ALWAYS_SOFTWARE=true GALLIUM_DRIVER=llvmpipe qemu-system-x86_64 -enable-kvm -m 8G -cdrom Fedora-Workstation-Live-x86_64-32-1.6.iso -machine q35,accel=kvm -cpu host -vga virtio -spice unix,addr=/tmp/vm_spice.socket,disable-ticketing,gl=on
in one terminal -
spicy --uri=spice+unix:///tmp/vm_spice.socket
in another - press up or down arrow in the spicy window so that grub doesn't execute its default entry, then wait for the screen to redraw and try moving the cursor up/down, it will be very slow or not redraw at all
- try booting up, it will redraw slowly until X starts up, then everything is fine (apart from the glitches)
Same thing happens with MESA_LOADER_DRIVER_OVERRIDE=iris qemu-system-x86_64 …
, but MESA_LOADER_DRIVER_OVERRIDE=i965 qemu-system-x86_64 …
is totally fine.
Regression
No idea. It "worked" before the default was switched from i965 to iris, but I have no idea if any of the gallium drivers ever worked.
Screenshots/video files (if applicable)
vokoscreenNG-2021-01-23_00-08-21
Any extra information would be greatly appreciated
#2678 (closed) seems somewhat related but I was asked to create a separate issue for the slow grub as it seems to be a different issue than the glitches.