[SOLVED] Error 43 PCIe passthrough GTX Intel

Ubuntu 20.10
i5 4690k
Asus Maximus VII Hero
evga GTX 960

I’ve followed the instructions from Arch Linux:
https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF#.22Error_43:_Driver_failed_to_load.22_on_Nvidia_GPUs_passed_to_Windows_VMs

and the one the forum here:

I have confirmed Kernel driver in use: vfio-pci by using lspci -nnk

I added

<vendor_id state=‘on’ value=‘whatever’/>
In the hyper-v section
I added



after that.
and at the bottom I added
qemu:commandline
<qemu:arg value=’-cpu’/>
<qemu:arg value='host,kvm=off,hv_vendor_id=null,topoext=on,invtsc=on,hv-time,hv-relaxed,hv-vapic,hv-spinlocks=0x1fff,hv-vpindex,hv-synic,hv-stimer,hv-reset,hv-fre>
</qemu:commandline>

Still get error 43.

I am able to pass other card like a nic with out issue. I’ve removed Nvidia’s software, uninstalled the drivers, and reinstalled and I’m still getting error 43.

I’ve changed the gpu’s slot in the mobo,

I’ve reinstalled windows on the vm.

I’ve reinstalled Ubuntu and then the windows VM.

super out of ideas here. suggestions welcome.

Thanks!

looks like maybe i need the acs patch

Since you did not mention it specifically you did add the following statement?:

  <kvm>
    <hidden state='on'/>
  </kvm>

Can you please post the output of this script.

Oh weird, I had that added, but it looks like the forum took the tags and ran with them.

Thanks though.

I think I almost have the ACS patch going. Hopefully that’s it.

oh, and the script fails
So i went here
https://queuecumber.gitlab.io/linux-acs-override/

and now I can’t connect to kvm with virt-manager

and sudo service libvirtd restart hangs

forgot a step

still no joy

lspci -vnn
00:00.0 Host bridge [0600]: Intel Corporation 4th Gen Core Processor DRAM Controller [8086:0c00] (rev 06)
Subsystem: ASUSTeK Computer Inc. 4th Gen Core Processor DRAM Controller [1043:8534]
Flags: bus master, fast devsel, latency 0, IOMMU group 0
Capabilities:
Kernel driver in use: hsw_uncore

00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller [8086:0c01] (rev 06) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 26, IOMMU group 1
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: [disabled]
Memory behind bridge: [disabled]
Prefetchable memory behind bridge: [disabled]
Capabilities:
Kernel driver in use: pcieport

00:01.1 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x8 Controller [8086:0c05] (rev 06) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 27, IOMMU group 2
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: 0000e000-0000efff [size=4K]
Memory behind bridge: f6000000-f70fffff [size=17M]
Prefetchable memory behind bridge: 00000000e0000000-00000000f1ffffff [size=288M]
Capabilities:
Kernel driver in use: pcieport

00:02.0 Display controller [0380]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:0412] (rev 06)
DeviceName: Onboard IGD
Subsystem: ASUSTeK Computer Inc. Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [1043:8534]
Flags: bus master, fast devsel, latency 0, IRQ 41, IOMMU group 3
Memory at f7400000 (64-bit, non-prefetchable) [size=4M]
Memory at d0000000 (64-bit, prefetchable) [size=256M]
I/O ports at f000 [size=64]
Capabilities:
Kernel driver in use: i915
Kernel modules: i915

00:03.0 Audio device [0403]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller [8086:0c0c] (rev 06)
Subsystem: ASUSTeK Computer Inc. Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller [1043:8534]
Flags: bus master, fast devsel, latency 0, IRQ 43, IOMMU group 4
Memory at f7a34000 (64-bit, non-prefetchable) [size=16K]
Capabilities:
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel

00:14.0 USB controller [0c03]: Intel Corporation 9 Series Chipset Family USB xHCI Controller [8086:8cb1] (prog-if 30 [XHCI])
Subsystem: ASUSTeK Computer Inc. 9 Series Chipset Family USB xHCI Controller [1043:8534]
Flags: bus master, medium devsel, latency 0, IRQ 32, IOMMU group 5
Memory at f7a20000 (64-bit, non-prefetchable) [size=64K]
Capabilities:
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci

00:16.0 Communication controller [0780]: Intel Corporation 9 Series Chipset Family ME Interface #1 [8086:8cba]
Subsystem: ASUSTeK Computer Inc. 9 Series Chipset Family ME Interface [1043:8534]
Flags: bus master, fast devsel, latency 0, IRQ 40, IOMMU group 6
Memory at f7a3e000 (64-bit, non-prefetchable) [size=16]
Capabilities:
Kernel driver in use: mei_me
Kernel modules: mei_me

00:19.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection (2) I218-V [8086:15a1]
DeviceName: Onboard LAN
Subsystem: ASUSTeK Computer Inc. Ethernet Connection (2) I218-V [1043:85c4]
Flags: bus master, fast devsel, latency 0, IRQ 31, IOMMU group 7
Memory at f7a00000 (32-bit, non-prefetchable) [size=128K]
Memory at f7a3c000 (32-bit, non-prefetchable) [size=4K]
I/O ports at f080 [size=32]
Capabilities:
Kernel driver in use: e1000e
Kernel modules: e1000e

00:1a.0 USB controller [0c03]: Intel Corporation 9 Series Chipset Family USB EHCI Controller #2 [8086:8cad] (prog-if 20 [EHCI])
Subsystem: ASUSTeK Computer Inc. 9 Series Chipset Family USB EHCI Controller [1043:8534]
Flags: bus master, medium devsel, latency 0, IRQ 20, IOMMU group 8
Memory at f7a3b000 (32-bit, non-prefetchable) [size=1K]
Capabilities:
Kernel driver in use: ehci-pci

00:1b.0 Audio device [0403]: Intel Corporation 9 Series Chipset Family HD Audio Controller [8086:8ca0]
Subsystem: ASUSTeK Computer Inc. 9 Series Chipset Family HD Audio Controller [1043:8602]
Flags: bus master, fast devsel, latency 0, IRQ 42, IOMMU group 9
Memory at f7a30000 (64-bit, non-prefetchable) [size=16K]
Capabilities:
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel

00:1c.0 PCI bridge [0604]: Intel Corporation 9 Series Chipset Family PCI Express Root Port 1 [8086:8c90] (rev d0) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 28, IOMMU group 10
Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
I/O behind bridge: [disabled]
Memory behind bridge: [disabled]
Prefetchable memory behind bridge: [disabled]
Capabilities:
Kernel driver in use: pcieport

00:1c.3 PCI bridge [0604]: Intel Corporation 9 Series Chipset Family PCI Express Root Port 4 [8086:8c96] (rev d0) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 29, IOMMU group 11
Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
I/O behind bridge: 0000d000-0000dfff [size=4K]
Memory behind bridge: f7900000-f79fffff [size=1M]
Prefetchable memory behind bridge: [disabled]
Capabilities:
Kernel driver in use: pcieport

00:1c.4 PCI bridge [0604]: Intel Corporation 9 Series Chipset Family PCI Express Root Port 5 [8086:8c98] (rev d0) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 30, IOMMU group 12
Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
I/O behind bridge: [disabled]
Memory behind bridge: f7800000-f78fffff [size=1M]
Prefetchable memory behind bridge: [disabled]
Capabilities:
Kernel driver in use: pcieport

00:1d.0 USB controller [0c03]: Intel Corporation 9 Series Chipset Family USB EHCI Controller #1 [8086:8ca6] (prog-if 20 [EHCI])
Subsystem: ASUSTeK Computer Inc. 9 Series Chipset Family USB EHCI Controller [1043:8534]
Flags: bus master, medium devsel, latency 0, IRQ 23, IOMMU group 13
Memory at f7a3a000 (32-bit, non-prefetchable) [size=1K]
Capabilities:
Kernel driver in use: ehci-pci

00:1f.0 ISA bridge [0601]: Intel Corporation Z97 Chipset LPC Controller [8086:8cc4]
Subsystem: ASUSTeK Computer Inc. Z97 Chipset LPC Controller [1043:8534]
Flags: bus master, medium devsel, latency 0, IOMMU group 14
Capabilities:
Kernel driver in use: lpc_ich
Kernel modules: lpc_ich

00:1f.2 SATA controller [0106]: Intel Corporation 9 Series Chipset Family SATA Controller [AHCI Mode] [8086:8c82] (prog-if 01 [AHCI 1.0])
Subsystem: ASUSTeK Computer Inc. 9 Series Chipset Family SATA Controller [AHCI Mode] [1043:8534]
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 33, IOMMU group 14
I/O ports at f0d0 [size=8]
I/O ports at f0c0 [size=4]
I/O ports at f0b0 [size=8]
I/O ports at f0a0 [size=4]
I/O ports at f060 [size=32]
Memory at f7a39000 (32-bit, non-prefetchable) [size=2K]
Capabilities:
Kernel driver in use: ahci
Kernel modules: ahci

00:1f.3 SMBus [0c05]: Intel Corporation 9 Series Chipset Family SMBus Controller [8086:8ca2]
Subsystem: ASUSTeK Computer Inc. 9 Series Chipset Family SMBus Controller [1043:8534]
Flags: medium devsel, IRQ 18, IOMMU group 14
Memory at f7a38000 (64-bit, non-prefetchable) [size=256]
I/O ports at f040 [size=32]
Kernel driver in use: i801_smbus
Kernel modules: i2c_i801

02:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM206 [GeForce GTX 960] [10de:1401] (rev a1) (prog-if 00 [VGA controller])
Subsystem: eVga.com. Corp. GM206 [GeForce GTX 960] [3842:3967]
Flags: fast devsel, IRQ 17, IOMMU group 15
Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
Memory at e0000000 (64-bit, prefetchable) [size=256M]
Memory at f0000000 (64-bit, prefetchable) [size=32M]
I/O ports at e000 [size=128]
Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities:
Kernel driver in use: vfio-pci
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia

02:00.1 Audio device [0403]: NVIDIA Corporation GM206 High Definition Audio Controller [10de:0fba] (rev a1)
Subsystem: eVga.com. Corp. GM206 High Definition Audio Controller [3842:3967]
Flags: fast devsel, IRQ 18, IOMMU group 15
Memory at f7080000 (32-bit, non-prefetchable) [size=16K]
Capabilities:
Kernel driver in use: vfio-pci
Kernel modules: snd_hda_intel

04:00.0 SATA controller [0106]: ASMedia Technology Inc. ASM1062 Serial ATA Controller [1b21:0612] (rev 02) (prog-if 01 [AHCI 1.0])
Subsystem: ASUSTeK Computer Inc. ASM1062 Serial ATA Controller [1043:858d]
Flags: bus master, fast devsel, latency 0, IRQ 35, IOMMU group 16
I/O ports at d050 [size=8]
I/O ports at d040 [size=4]
I/O ports at d030 [size=8]
I/O ports at d020 [size=4]
I/O ports at d000 [size=32]
Memory at f7900000 (32-bit, non-prefetchable) [size=512]
Capabilities:
Kernel driver in use: ahci
Kernel modules: ahci

05:00.0 Non-Volatile memory controller [0108]: Samsung Electronics Co Ltd NVMe SSD Controller SM961/PM961 [144d:a804] (prog-if 02 [NVM Express])
Subsystem: Samsung Electronics Co Ltd NVMe SSD Controller SM961/PM961 [144d:a801]
Flags: bus master, fast devsel, latency 0, IRQ 16, NUMA node 0, IOMMU group 17
Memory at f7800000 (64-bit, non-prefetchable) [size=16K]
Capabilities:
Kernel driver in use: nvme
Kernel modules: nvme

they have their own group now, but error 43 remains.

They used to be in group 1

yep, I forgot a bios setting.

while overclocking a while ago, i disabled the intel graphics. When re-enabling, I left the default as pcie. This was the source of the issue.

wow, so annoying. it’s always something dumb with me.

anyway, set the intel integrated graphics up as default and all seems well. Otherwise I followed this guy:

https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF#Video_card_driver_virtualisation_detection

What a mess I made, lol.
Please don’t suffer the same way I did.

Thanks,

1 Like