Commit e062cccc authored by Lu Baolu's avatar Lu Baolu Committed by Zheng Zengkai
Browse files

iommu/vt-d: Update domain geometry in iommu_ops.at(de)tach_dev



stable inclusion
from stable-5.10.9
commit 518606a84a0fb7c97afeb1746be07432190ff4c0
bugzilla: 47457

--------------------------------

[ Upstream commit c062db03 ]

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: default avatarLu Baolu <baolu.lu@linux.intel.com>
Tested-by: default avatarLogan Gunthorpe <logang@deltatee.com>
Link: https://lore.kernel.org/r/20201124082057.2614359-6-baolu.lu@linux.intel.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent fba47eae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment