IOMMU groupings ASUS Pro WS X570-ACE USB passthrough

Hello! I am quite enjoying this new motherboard. GPU passthrough has been a breeze, and having a separate ethernet controller to passthrough to the VM is nice too.
I would like to passthrough some USB ports. Binding the USB controller in group 34 as well as in group 20 disable ALL usb ports from being used on the host machine. I had to ssh in to revert. Binding all of group 25 seemed to work, but qemu/kvm gave me a ‘your cpu does not support hyperthreading’ error when trying to launch a vm.

Any idea why the USB controller in group 20 and 35 (1022:149c) is the same controller? And how I may get around this? Or why I got the hyperthreading error with the group 25? I’m running a 5950x.

Group:  0   0000:00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
Group:  1   0000:00:01.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge [1022:1483]   Driver: pcieport
Group:  2   0000:00:01.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge [1022:1483]   Driver: pcieport
Group:  3   0000:00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
Group:  4   0000:00:03.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
Group:  5   0000:00:03.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge [1022:1483]   Driver: pcieport
Group:  6   0000:00:03.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge [1022:1483]   Driver: pcieport
Group:  7   0000:00:04.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
Group:  8   0000:00:05.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
Group:  9   0000:00:07.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
Group:  10  0000:00:07.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B] [1022:1484]   Driver: pcieport
Group:  11  0000:00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
Group:  12  0000:00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B] [1022:1484]   Driver: pcieport
Group:  13  0000:00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 61)   Driver: piix4_smbus
Group:  13  0000:00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
Group:  14  0000:00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 0 [1022:1440]
Group:  14  0000:00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 1 [1022:1441]
Group:  14  0000:00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 2 [1022:1442]
Group:  14  0000:00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 3 [1022:1443]   Driver: k10temp
Group:  14  0000:00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 4 [1022:1444]
Group:  14  0000:00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 5 [1022:1445]
Group:  14  0000:00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 6 [1022:1446]
Group:  14  0000:00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 7 [1022:1447]
Group:  15  0000:01:00.0 Non-Volatile memory controller [0108]: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983 [144d:a808]   Driver: nvme
Group:  16  0000:02:00.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Matisse Switch Upstream [1022:57ad]   Driver: pcieport
Group:  17  0000:03:00.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge [1022:57a3]   Driver: pcieport
Group:  18  0000:03:03.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge [1022:57a3]   Driver: pcieport
Group:  19  0000:03:04.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge [1022:57a3]   Driver: pcieport
Group:  20  0000:03:08.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge [1022:57a4]   Driver: pcieport
Group:  20  0000:07:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP [1022:1485]
Group:  20  0000:07:00.1 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller [1022:149c]   Driver: xhci_hcd
Group:  20  0000:07:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller [1022:149c]   Driver: xhci_hcd
Group:  21  0000:03:09.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge [1022:57a4]   Driver: pcieport
Group:  21  0000:08:00.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 51)   Driver: ahci
Group:  22  0000:03:0a.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge [1022:57a4]   Driver: pcieport
Group:  22  0000:09:00.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 51)   Driver: ahci
Group:  23  0000:04:00.0 SATA controller [0106]: ASMedia Technology Inc. ASM1166 Serial ATA Controller [1b21:1166] (rev 02)   Driver: ahci
Group:  24  0000:05:00.0 Ethernet controller [0200]: Intel Corporation I211 Gigabit Network Connection [8086:1539] (rev 03)   Driver: vfio-pci
Group:  25  0000:06:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Realtek RealManage BMC [10ec:816e] (rev 1a)
Group:  25  0000:06:00.1 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 1a)   Driver: r8169
Group:  25  0000:06:00.2 Serial controller [0700]: Realtek Semiconductor Co., Ltd. RTL8111xP UART #1 [10ec:816a] (rev 1a)   Driver: serial
Group:  25  0000:06:00.4 USB controller [0c03]: Realtek Semiconductor Co., Ltd. RTL811x EHCI host controller [10ec:816d] (rev 1a)   Driver: ehci-pci
Group:  25  0000:06:00.7 IPMI Interface [0c07]: Realtek Semiconductor Co., Ltd. RTL8111xP IPMI interface [10ec:816c] (rev 1a)
Group:  26  0000:0a:00.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Upstream Port of PCI Express Switch [1002:1478] (rev c1)   Driver: pcieport
Group:  27  0000:0b:00.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Downstream Port of PCI Express Switch [1002:1479]   Driver: pcieport
Group:  28  0000:0c:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] [1002:731f] (rev c1)   Driver: amdgpu
Group:  29  0000:0c:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 HDMI Audio [1002:ab38]   Driver: snd_hda_intel
Group:  30  0000:0d:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU104 [GeForce RTX 2070 SUPER] [10de:1e84] (rev a1)   Driver: vfio-pci
Group:  30  0000:0d:00.1 Audio device [0403]: NVIDIA Corporation TU104 HD Audio Controller [10de:10f8] (rev a1)   Driver: vfio-pci
Group:  30  0000:0d:00.2 USB controller [0c03]: NVIDIA Corporation TU104 USB 3.1 Host Controller [10de:1ad8] (rev a1)   Driver: vfio-pci
Group:  30  0000:0d:00.3 Serial bus controller [0c80]: NVIDIA Corporation TU104 USB Type-C UCSI Controller [10de:1ad9] (rev a1)   Driver: vfio-pci
Group:  31  0000:0e:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Function [1022:148a]
Group:  32  0000:0f:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP [1022:1485]
Group:  33  0000:0f:00.1 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Cryptographic Coprocessor PSPCPP [1022:1486]   Driver: ccp
Group:  34  0000:0f:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller [1022:149c]   Driver: xhci_hcd
Group:  35  0000:0f:00.4 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller [1022:1487]   Driver: snd_hda_intel

I think it is often easiest to pass through a dedicated USB controller card.

Can’t comment on this hypethreading business unfortunately.

I’d like to, but I haven’t any PCIe ports to spare

I’m not certain why you get the error and it may not be related to this device but I wouldn’t pass the host’s IPMI to the VM.
Sounds like a way to get into the host from the VM.

I wouldn’t pass those to the VM either.
Handing over a PCI bridge controller is a bad idea and may be why all the USB ports stopped working.

I don’t see many good options

Can you get a PCIe x1 riser under one of the GPUs (or a M.2 riser) and a USB adapter card?

(Don’t mistake the cheap M.2 risers that use a USB cable as if it was USB, those are PCIe signals going on that cable, you still need a PCIe riser slot and PCIe controller card)

https://www.aliexpress.com/item/1005003136139461.html
or like

Or a Radeon GPU with USB-C for your VM?

Thank you for the info! I ended up removing my PCIe sata controller and just adding a PCIe USB controller. I can pass that through just fine.

Losing my PCIe Sata controller card means losing my zfs pools, however. This MB is great minus only having 4 sata ports (8 by using a U.2 to 4 sata cable)
I am thinking about getting that M.2 to PCIe riser listed above in order to reconnect my PCIe sata controller. Would the MB count that as a PCIe device? The reason I ask is the manual lists the M.2_2 slot as compatible in "x2 (PCIe 4.0) " mode, but not in “Sata” mode in a dual or triple GPU configuration.

M.2 drives and slots can be PCIe (x1, x2 or x4), or SATA, or USB, or all of the above.

The M.2_2 slot on that motherboard is PCIe-only and has only 2 lanes even with just 1 GPU.

So you cannot plug a SATA drive directly to it (there’s no SATA signals, only PCIe) but you can plug a PCIe SATA card on a riser/cable.

And then there’s this thing which is a PCIe SATA controller (PCIe from motherboard, SATA to the drives) right on an M2 card:

https://bigamart.com/product/kalea-informatique-m2-card-m-2-ngff-pcie-3-0-key-m-or-bm-to-5-sata-6g-port-jmb585-chipset/

Disclaimer: I haven’t used it nor any similar devices so far. I can’t tell you if it’s great or total trash, just that it’s an option.

My ZFS server is a separate machine where I dump my backups over ssh, I just got a cheap 3200G with a SATA PCIe card for more drives so I never had to go this far to cram everything into one single box.

Another alternative is using a SATA port multiplier where you got 1 SATA cable going in and it switches into 4, 5 more cables.

eg: https://www.newegg.ca/p/1W7-00PX-07VD8

I’ve never tried those either, I read they’re sometimes hit-or-miss with different SATA motherboard controllers, SATA drives, or the multipliers themselves.
In a [either it works great or doesn’t but you’ll know quickly] way.

But I’m sure someone here would have recommendations on some of those different solutions / chipsets.