Skip to content

RFC amd_iommu: Refactor IOMMU group and support virtual aliases

Alex Williamson linux-iommu lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5amd_iommu: Split IOMMU group initializationdrivers/iommu/amd_iommu.c+43 -182 replies
2/5amd_iommu: Split IOMMU Group topology walkdrivers/iommu/amd_iommu.c+33 -250 replies
3/5amd_iommu: Split upstream bus device lookupdrivers/iommu/amd_iommu.c+15 -90 replies
4/5amd_iommu: Split IOMMU group allocation and attachdrivers/iommu/amd_iommu.c+19 -110 replies
5/5amd_iommu: Properly account for virtual aliases in IOMMU groupsdrivers/iommu/amd_iommu.c drivers/iommu/amd_iommu_types.h+57 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/5] amd_iommu: Refactor IOMMU group and support virtual aliases

This series is meant to refactor IOMMU group support in amd_iommu to properly support virtual aliases. If multiple devices alias to the same virtual alias, they should be grouped together. This code also verifies whether the alias should be the root of the group vs devices above the alias.

This seems to do the right thing on my system, but that's not saying a lot since it doesn't do anything interesting with aliases. I'd appreciate if Joerg and Florian could test this on their systems. Thanks,

Alex

---

Alex Williamson (5):
amd_iommu: Properly account for virtual aliases in IOMMU groups
amd_iommu: Split IOMMU group allocation and attach
amd_iommu: Split upstream bus device lookup
amd_iommu: Split IOMMU Group topology walk
amd_iommu: Split IOMMU group initialization

 drivers/iommu/amd_iommu.c       |  184 ++++++++++++++++++++++++++++++---------
 drivers/iommu/amd_iommu_types.h |    1 
 2 files changed, 142 insertions(+), 43 deletions(-)