iommu/vt-d: Update domain geometry in iommu_ops.at(de)tach_dev
authorLu Baolu <baolu.lu@linux.intel.com>
Tue, 24 Nov 2020 08:20:55 +0000 (16:20 +0800)
committerWill Deacon <will@kernel.org>
Wed, 25 Nov 2020 12:03:48 +0000 (12:03 +0000)
commitc062db039f40e868c371c36afe8d0fac64305b5d
treed29005edd606e3250e6f845cf171309357ee8155
parent65f746e8285f0a67d43517d86fedb9e29ead49f2
iommu/vt-d: Update domain geometry in iommu_ops.at(de)tach_dev

The iommu-dma constrains IOVA allocation based on the domain geometry
that the driver reports. Update domain geometry everytime a domain is
attached to or detached from a device.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Tested-by: Logan Gunthorpe <logang@deltatee.com>
Link: https://lore.kernel.org/r/20201124082057.2614359-6-baolu.lu@linux.intel.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/intel/iommu.c