IOMMU updates for 5.11

- IOVA allocation optimisations and removal of unused code

- Introduction of DOMAIN_ATTR_IO_PGTABLE_CFG for parameterising the
  page-table of an IOMMU domain

- Support for changing the default domain type in sysfs

- Optimisation to the way in which identity-mapped regions are created

- Driver updates:
  * Arm SMMU updates, including continued work on Shared Virtual Memory
  * Tegra SMMU updates, including support for PCI devices
  * Intel VT-D updates, including conversion to the IOMMU-DMA API

- Cleanup, kerneldoc and minor refactoring
iommu/amd: Add sanity check for interrupt remapping table length macros

Currently, macros related to the interrupt remapping table length are
defined separately. This has resulted in an oversight in which one of
the macros were missed when changing the length. To prevent this,
redefine the macros to add built-in sanity check.

Also, rename macros to use the name of the DTE[IntTabLen] field as
specified in the AMD IOMMU specification. There is no functional change.

Suggested-by: Linus Torvalds <>
Reviewed-by: Tom Lendacky <>
Signed-off-by: Suravee Suthikulpanit <>
Cc: Will Deacon <>
Cc: Jerry Snitselaar <>
Cc: Joerg Roedel <>
Reviewed-by: Jerry Snitselaar <>
Signed-off-by: Will Deacon <>
3 files changed