summaryrefslogtreecommitdiff
path: root/mm/interval_tree.c
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@nvidia.com>2024-10-30 21:20:55 -0300
committerJason Gunthorpe <jgg@nvidia.com>2024-11-12 14:11:03 -0400
commitf27298a82ba09a1c8aecee8a209b2a312beac672 (patch)
tree1a9af9919e4ea1207dda19db18948ff28adcfd23 /mm/interval_tree.c
parent67e4fe3985138325c9b21193be52266750616182 (diff)
iommu/arm-smmu-v3: Allow ATS for IOMMU_DOMAIN_NESTED
The EATS flag needs to flow through the vSTE and into the pSTE, and ensure physical ATS is enabled on the PCI device. The physical ATS state must match the VM's idea of EATS as we rely on the VM to issue the ATS invalidation commands. Thus ATS must remain off at the device until EATS on a nesting domain turns it on. Attaching a nesting domain is the point where the invalidation responsibility transfers to userspace. Update the ATS logic to track EATS for nesting domains and flush the ATC whenever the S2 nesting parent changes. Link: https://patch.msgid.link/r/11-v4-9e99b76f3518+3a8-smmuv3_nesting_jgg@nvidia.com Signed-off-by: Nicolin Chen <nicolinc@nvidia.com> Tested-by: Nicolin Chen <nicolinc@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'mm/interval_tree.c')
0 files changed, 0 insertions, 0 deletions