Hey,
I have bit difficulties to passthrough a RTX2080 that has an USB-C port on it. I’m running PopOs as host and Windows 10 as guest. I can passthrough other GPUs that dont have USB-C ports. But with this RTX2080 I have difficulties. When I try to start up the VM in QEMU, I get the following error:
`(qemu) qemu-system-x86_64: -device vfio-pci,host=35:00.0,bus=port.1,multifunction=on: vfio 0000:35:00.0: group 45 is not viable`
So I noticed that eventhough I blacklisted everything related to the Nvidia card (vga controller, serial bus, audio, usb), still the host machine sees the USB port on the Nvidia card. Every other device related to the Nvidia card has ‘kernel driver in use: vfio-pci’ except for the USB. (Below the results from lspci -nnv):
35:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU104 [GeForce RTX 2080 Rev. A] [10de:1e87] (rev a1) (prog-if 00 [VGA controller])
Subsystem: Micro-Star International Co., Ltd. \[MSI\] TU104 \[GeForce RTX 2080 Rev. A\] \[1462:3728\]
Flags: fast devsel, IRQ 255
Memory at dc000000 (32-bit, non-prefetchable) \[size=16M\]
Memory at 90000000 (64-bit, prefetchable) \[size=256M\]
Memory at a0000000 (64-bit, prefetchable) \[size=32M\]
I/O ports at e000 \[size=128\]
Expansion ROM at dd000000 \[disabled\] \[size=512K\]
Capabilities: <access denied>
Kernel driver in use: vfio-pci
Kernel modules: nvidiafb, nouveau, nvidia\_drm, nvidia
35:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:10f8] (rev a1)
Subsystem: Micro-Star International Co., Ltd. \[MSI\] Device \[1462:3728\]
Flags: fast devsel, IRQ 255
Memory at dd080000 (32-bit, non-prefetchable) \[disabled\] \[size=16K\]
Capabilities: <access denied>
Kernel driver in use: vfio-pci
Kernel modules: snd\_hda\_intel
35:00.2 USB controller [0c03]: NVIDIA Corporation Device [10de:1ad8] (rev a1) (prog-if 30 [XHCI])
Subsystem: Micro-Star International Co., Ltd. \[MSI\] Device \[1462:3728\]
Flags: fast devsel, IRQ 80
Memory at a2000000 (64-bit, prefetchable) \[size=256K\]
Memory at a2040000 (64-bit, prefetchable) \[size=64K\]
Capabilities: <access denied>
Kernel driver in use: xhci\_hcd
35:00.3 Serial bus controller [0c80]: NVIDIA Corporation Device [10de:1ad9] (rev a1)
Subsystem: Micro-Star International Co., Ltd. \[MSI\] Device \[1462:3728\]
Flags: fast devsel, IRQ 255
Memory at dd084000 (32-bit, non-prefetchable) \[disabled\] \[size=4K\]
Capabilities: <access denied>
Kernel driver in use: vfio-pci
Kernel modules: i2c\_nvidia\_gpu
Then I tried to use a script to unbind the USB from github kholia OSX-KVM. This successfully changed the ‘kernel driver in use’ to ‘vfio-pci’ for the USB. But as a side effect it changed the VGA controller’s ‘kernel driver in use’ to ‘nvidia’. So now I cant passthrough the Nvidia card because the host now see the card, and doesnt allow to passthough it.
So I’m curious if anybody has successfully passthroughed a gpu with USB port? Or has encountered this same problem?