kernel support for separate IOMMU groups or ACS

ng0177

New Member
Aug 25, 2024
14
1
3
The grub based kernel patch
Code:
pcie_acs_override=downstream
as documented has been implemented successfully.

All possible BIOS settings such as
  • AMD IOMMU
  • SR-IOV
are activated on a MSI B450 Gaming Plus Max AMD.

However, the groups are still not separated. The goal is to passthrough ASM1042 to avoid mouse lag. Any ideas?

pvesh get /nodes/pve/hardware/pci --pci-class-blacklist ""
1730552826087.png
 
Last edited:
Using a X570(S) motherboard will give you much better groups (as all other AM4 chipsets have limited groups). Is there no other USB controller (coming from the CPU) that is in an isolated group? Maybe buy a USB add-in PCIe card (that is known to work with passthrough) and put it in the PCIe x16 slot (coming from the CPU)?
You could try pcie_acs_override=downstream,multifunction (check with cat /proc/cmdline whether it is active) but that allows the VM to read all of the system memory and is therefore not secure.
 
  • Like
Reactions: ng0177
Maybe buy a USB add-in PCIe card (that is known to work with passthrough) and put it in the PCIe x16 slot (coming from the CPU)?
I forgot to mention that the ASMedia ASM1042 Superspeed is such a card was bought for that purpose. However, it is in a PCIe x1 slot as it fits in it - the x16 looks to wide to me (and has the obligatory graphics card in it anyway); but there is a x4 slot free which again looks too wide.

I just tried pcie_acs_override=downstream,multifunction which is active and [B]multifunction[/B] separates the groups albeit a security risk. Thank you.
 
I forgot to mention that the ASMedia ASM1042 Superspeed is such a card was bought for that purpose. However, it is in a PCIe x1 slot as it fits in it - the x16 looks to wide to me (and has the obligatory graphics card in it anyway); but there is a x4 slot free which again looks too wide.
PCIe is fully compatible in larger and smaller slots (as long as the end of the slot is open, with reduced bandwidth).
Unfortunately, your B450 motherboard only support passthrough on the PCIe x16 slot.
I just tried pcie_acs_override=downstream,multifunction which is active and [B]multifunction[/B] separates the groups albeit a security risk. Thank you.
I would advise against it. But as long as you are aware of the security issue that comes with it, it's your choice of course.
 
  • Like
Reactions: ng0177

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!