iommu/vt-d: Remove identity mappings from si_domain
authorLu Baolu <baolu.lu@linux.intel.com>
Mon, 2 Sep 2024 02:27:12 +0000 (10:27 +0800)
committerJoerg Roedel <jroedel@suse.de>
Mon, 2 Sep 2024 16:14:55 +0000 (18:14 +0200)
commit9e74e1b8198fd07fcbb4266771ca0f5195c71d9c
treefc57598a04e81e3b42289ffc28d8aeb94b32cbe5
parent184bee388d4661c3fea633f135a5c45ff03c7ec6
iommu/vt-d: Remove identity mappings from si_domain

As the driver has enforced DMA domains for devices managed by an IOMMU
hardware that doesn't support passthrough translation mode, there is no
need for static identity mappings in the si_domain. Remove the identity
mapping code to avoid dead code.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20240809055431.36513-3-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c