Skip to content

iommu/vt-d: Reset DMAR_UNITS_SUPPORTED

Lu Baolu linux-iommu lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 4 repliesIn review
  2. v16 patches 12 repliesSuperseded

Changes in v2 from the cover letter

- Set the right @max for ida_alloc_range() and return the right error when ida_alloc_range() returns failure.
- Replace xa_store() with xa_cmpxchg().
- Set domain->nid to NUMA_NO_NODE when domain is detached from an iommu.
- Avoid adding a new VTD_FLAG_IOMMU_PROBED flag. Remove the duplicate check directly.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6iommu/vt-d: Remove unused domain_get_iommu()drivers/iommu/intel/iommu.c drivers/iommu/intel/iommu.h+0 -190 replies
2/6iommu/vt-d: Use IDA interface to manage iommu sequence iddrivers/iommu/intel/dmar.c+8 -271 reply
3/6iommu/vt-d: Refactor iommu information of each domaindrivers/iommu/intel/iommu.c drivers/iommu/intel/iommu.h drivers/iommu/intel/pasid.c +1 more+94 -632 replies
4/6iommu/vt-d: Remove unnecessary check in intel_iommu_add()drivers/iommu/intel/iommu.c+0 -31 reply
5/6iommu/vt-d: Remove global g_iommus arraydrivers/iommu/intel/iommu.c+0 -440 replies
6/6iommu/vt-d: Make DMAR_UNITS_SUPPORTED default 1024include/linux/dmar.h+1 -50 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchKevin Tian
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/6] iommu/vt-d: Reset DMAR_UNITS_SUPPORTED

Hi folks,

This is a follow-up series of changes proposed by this patch:

https://lore.kernel.org/linux-iommu/[email protected]/

It removes several static arrays of size DMAR_UNITS_SUPPORTED and sets the DMAR_UNITS_SUPPORTED to 1024.

This series is also available on github:

https://github.com/LuBaolu/intel-iommu/commits/reset-DMAR_UNITS_SUPPORTED-v2

Please help review and suggest.

Best regards,
baolu

Change log:

v2:
- Set the right @max for ida_alloc_range() and return the right error when ida_alloc_range() returns failure.
- Replace xa_store() with xa_cmpxchg().
- Set domain->nid to NUMA_NO_NODE when domain is detached from an iommu.
- Avoid adding a new VTD_FLAG_IOMMU_PROBED flag. Remove the duplicate check directly.

v1:
- https://lore.kernel.org/lkml/[email protected]/
- Initial post.

Lu Baolu (6):
iommu/vt-d: Remove unused domain_get_iommu() iommu/vt-d: Use IDA interface to manage iommu sequence id iommu/vt-d: Refactor iommu information of each domain iommu/vt-d: Remove unnecessary check in intel_iommu_add() iommu/vt-d: Remove global g_iommus array iommu/vt-d: Make DMAR_UNITS_SUPPORTED default 1024

 include/linux/dmar.h        |   6 +-
 drivers/iommu/intel/iommu.h |  30 ++++--
 drivers/iommu/intel/dmar.c  |  35 ++-----
 drivers/iommu/intel/iommu.c | 189 ++++++++++++++----------------------
 drivers/iommu/intel/pasid.c |   2 +-
 drivers/iommu/intel/svm.c   |   2 +-
 6 files changed, 103 insertions(+), 161 deletions(-)
Signature · 1 line
2.25.1