Bug 219619
Summary: | [REGRESSION, BISECTED] vfio-pci: screen graphics artifacts after 6.12 kernel upgrade | ||
---|---|---|---|
Product: | Drivers | Reporter: | Athul Krishna K R (athul.krishna.kr) |
Component: | PCI | Assignee: | drivers_pci (drivers_pci) |
Status: | NEW --- | ||
Severity: | normal | CC: | alex.williamson, athul.krishna.kr, precification |
Priority: | P3 | ||
Hardware: | AMD | ||
OS: | Linux | ||
Kernel Version: | 6.12 | Subsystem: | |
Regression: | Yes | Bisected commit-id: | f9e54c3a2f5b79ecc57c7bc7d0d3521e461a2101 |
Attachments: |
dmesg
Host dmesg, 6.13-rc2 stock, 16G BAR Host dmesg, 6.13-rc2 vfio-pci-core without huge_fault, 16G BAR Host dmesgs, 6.13-rc2, QEMU 9.1.2/9.2.0, vfio-pci-core huge_fault PUD/PMD/both Host dmesgs, 6.12.4/6.13-rc2, QEMU 9.1.2/9.2.0, vfio-pci-core huge_fault alignment patch Host dmesgs, 6.12.4, QEMU 9.1.2/9.2.0, vfio-pci-core submitted huge_fault alignment patch |
Description
Athul Krishna K R
2024-12-21 10:10:02 UTC
Created attachment 307424 [details] Host dmesg, 6.13-rc2 stock, 16G BAR Kernel 6.13-rc2 (MANJARO stock), 16G BAR for 6700XT's VRAM. A kernel log opening a Linux VM with the GPU passed through. In this case, the VM fails to init the GPU. vfio-pci-core has its new huge_fault handler. Created with `echo "file vfio_pci_core.c +p">/sys/kernel/debug/dynamic_debug/control` See mailing list thread: https://lore.kernel.org/regressions/20241222223604.GA3735586@bhelgaas/ Created attachment 307425 [details] Host dmesg, 6.13-rc2 vfio-pci-core without huge_fault, 16G BAR Kernel 6.13-rc2 (MANJARO, patched vfio-pci-core), 16G BAR for 6700XT's VRAM. A kernel log opening a Linux VM with the GPU passed through. In this case, the VM successfully inits the GPU. Patched vfio-pci-core only to remove its new huge_fault handler. Created with `echo "file vfio_pci_core.c +p">/sys/kernel/debug/dynamic_debug/control` See mailing list thread: https://lore.kernel.org/regressions/20241222223604.GA3735586@bhelgaas/ Created attachment 307429 [details] Host dmesgs, 6.13-rc2, QEMU 9.1.2/9.2.0, vfio-pci-core huge_fault PUD/PMD/both Kernel log excerpts, opening a Linux VM with the GPU passed through. Kernel 6.13-rc2 (MANJARO), 16G BAR for 6700XT's VRAM. QEMU 9.1.2 vs. QEMU 9.2.0. vfio-pci-core huge_fault support set to either PUD only ('no2Mpages') / PMD only ('no1Gpages') / both ('stock') using the patches by Alex https://lore.kernel.org/regressions/20241230182737.154cd33a.alex.williamson@redhat.com/ . Configurations where the guest fails to initialize the GPU: QEMU 9.1.2 'stock'/'no2Mpages'; Working configurations: QEMU 9.1.2 'no1Gpages', QEMU 9.2.0 all Created with `echo "file vfio_pci_core.c +p">/sys/kernel/debug/dynamic_debug/control`. Created attachment 307432 [details] Host dmesgs, 6.12.4/6.13-rc2, QEMU 9.1.2/9.2.0, vfio-pci-core huge_fault alignment patch Kernel log excerpts, opening a Linux VM with the GPU passed through. Kernels 6.12.4, 6.13-rc2 (MANJARO), 16G BAR for 6700XT's VRAM. QEMU 9.1.2, additionally QEMU 9.2.0 for 6.12.4. Logs are with the vfio-pci-core patch by Alex https://lore.kernel.org/regressions/20241231090733.5cc5504a.alex.williamson@redhat.com/ . All configurations work as expected, with QEMU 9.2.0 getting the 1G mappings (as before) and 9.1.2 now falling back to 2M. Created with `echo "file vfio_pci_core.c +p">/sys/kernel/debug/dynamic_debug/control`. Created attachment 307444 [details] Host dmesgs, 6.12.4, QEMU 9.1.2/9.2.0, vfio-pci-core submitted huge_fault alignment patch Kernel log excerpts, opening a Linux VM with the GPU passed through. Kernel 6.12.4 (MANJARO, mostly stock), 16G BAR for 6700XT's VRAM. QEMU 9.1.2 and QEMU 9.2.0. Logs are with the submitted vfio-pci-core patch by Alex Williamson https://lore.kernel.org/lkml/2025010322-overblown-symptom-d4cd@gregkh/T/#t . All configurations work as expected, with QEMU 9.2.0 getting the 1G mappings (as before) and 9.1.2 falling back to 2M (which it didn't before, causing the bug). Created with `echo "file vfio_pci_core.c +p">/sys/kernel/debug/dynamic_debug/control`. |