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(-) -- 2.25.1 _______________________________________________ iommu mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/iommu
