-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPU passthrough broken in 4.2 (GPU has fallen off the bus / xen_pt_check_bar_overlap ) #8783
Comments
Replacing the nvidia driver with nouveau gives the following
|
I saw this post by @neowutran and set in my BIOS (MSI X399 SLI PLUS) Re-Size BAR Support: [Disabled] --> [Enabled] Windoiws 10 WHQL Support: [Disabled] -> [Enabled] Which rendered the system unbootable (hangs on BIOS), I was able to reset CMOS, then fix efibootmgr settings, convert from Legacy -> UEFI boot and then reset all the above bios settings. Same results with max-ram-below-4g set at 2G and 3.5G: GPU has fallen off the bus :( Attached are the nvidia bug reports logs for the system in both configurations. nvidia-bug-report.log-3.5G-RESIZE-BAR-DOM0.gz Any and all ideas greatly appreciated! ty |
As a workaround I was able to get a copy of the affected hvm to work correctly with the open-gpu-kernel-modules driver which replaces the nvidia kernel driver but keeps the userland stuff from NVIDIA-Linux-x86_64-545.29.06.run I needed to disable resize BAR in dom0's bios otherwise the hvm would not boot with >2GB RAM regardless of the max-ram-below-4g value |
For "I needed to disable resize BAR in dom0's bios otherwise the hvm would not boot with >2GB RAM regardless of the max-ram-below-4g value" you could try the patch I was suggesting here: QubesOS/qubes-vmm-xen#172 If it work as intended, no need to define max-ram-below-4g and will correctly work regardless of resize BAR value |
May be a dupe of #8631 |
* origin/pr/65: Fix integer overflow in qemu patch "hw-xen-xen_pt-Save-back-data-only-for-declared-regis" Fixes QubesOS/qubes-issues#8631 Fixes QubesOS/qubes-issues#8783 Fixes QubesOS/qubes-issues#9003
Automated announcement from builder-github The package
|
Automated announcement from builder-github The package
|
Qubes OS release
4.2 kernel 6.1.62-1.qubes.fc37.x86_64 (kernel-latest also gives the same behavior)
Brief summary
I used GPU passthrough extensively in Qubes since 4.0, hardware working in 4.0 and 4.1, no longer works with Linux HVMs.
Steps to reproduce
dom0
Appvm
Attach devices in dom0 to gpu_test appvm:
Patched /usr/libexec/xen/boot/qemu-stubdom-linux-rootfs as per AppVM with GPU pass-through crashes when more than 3.5 GB (3584MB) of RAM is assigned to it · Issue #4321 · QubesOS/qubes-issues · GitHub with the following inserted at line 160:
iommu=soft amd_iommu=on rd.qubes.hide_pci=0c:00.0,0c:00.1,0b:00.0,41:00.0
Expected behavior
Xorg or greeter displays on the GPU assigned to the HVM
Actual behavior
No display on HVM,
PCI devices showing in dom0:
PCI devices showing in HVM:
/etc/X11/xorg.conf is configured to correct device:
Possibly relevant errors in /var/log/xen/console/guest-gpu_test-dm.log
and in syslog
(latter repeats multiple times)
The above is true regardless whether max-ram-below-4g is 2G or 3.5G. I also tested using the "known good" stubroot from Qubes 4.1 that doesn't work and gives different errors.
I've also tried every solution listed in issue # 4321 that doesn't involve the nouveau drivers or recompiling parts of xen which is unfortunately out of my ken.
Help!
The text was updated successfully, but these errors were encountered: