USB controller passthrough as PCI

skylowe

Member
Dec 15, 2020
15
3
8
44
Hi.

on AMD platform - W11 guest - trying to passthrough USB - used to work a few proxmox versions ago - not sure where to start looking

0b:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller [1022:149c] (prog-if 30 [XHCI])
Subsystem: Gigabyte Technology Co., Ltd Matisse USB 3.0 Host Controller [1458:5007]
Flags: bus master, fast devsel, latency 0, IRQ 87, IOMMU group 27
Memory at fc800000 (64-bit, non-prefetchable) [size=1M]
Capabilities: [48] Vendor Specific Information: Len=08 <?>
Capabilities: [50] Power Management version 3
Capabilities: [64] Express Endpoint, MSI 00
Capabilities: [a0] MSI: Enable- Count=1/8 Maskable- 64bit+
Capabilities: [c0] MSI-X: Enable+ Count=8 Masked-
Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Capabilities: [150] Advanced Error Reporting
Capabilities: [2a0] Access Control Services
Capabilities: [370] Transaction Processing Hints
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci

when adding it to guest hardware config it causes instability or just causes guest to hang

vfio.conf contains 1022:149c

grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on video=vesafb: off hugepagesz=1G hugepages=20 acpi_enforce_resources=lax initcall_blacklist=sysfb_init"

Any ideas please...
 
Hi.

on AMD platform - W11 guest - trying to passthrough USB - used to work a few proxmox versions ago - not sure where to start looking

0b:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller [1022:149c] (prog-if 30 [XHCI])
Subsystem: Gigabyte Technology Co., Ltd Matisse USB 3.0 Host Controller [1458:5007]
Flags: bus master, fast devsel, latency 0, IRQ 87, IOMMU group 27
Memory at fc800000 (64-bit, non-prefetchable) [size=1M]
Capabilities: [48] Vendor Specific Information: Len=08 <?>
Capabilities: [50] Power Management version 3
Capabilities: [64] Express Endpoint, MSI 00
Capabilities: [a0] MSI: Enable- Count=1/8 Maskable- 64bit+
Capabilities: [c0] MSI-X: Enable+ Count=8 Masked-
Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Capabilities: [150] Advanced Error Reporting
Capabilities: [2a0] Access Control Services
Capabilities: [370] Transaction Processing Hints
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci

when adding it to guest hardware config it causes instability or just causes guest to hang

vfio.conf contains 1022:149c
Try adding softdep xhci_pci pre: vfio-pci, to make sure vfio-pci is loaded before xhci_pci. I used this for another USB controller (ASMedia 1b21:3241).
I do have a USB controller identical to yours (connected to a 5000-series CPU) that works fine with a Linux VM without this and I can even switch it back to working on the Proxmox host.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!