aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2025-07-14 04:50:25 +0000
committerWill Deacon <[email protected]>2025-07-14 10:18:04 +0000
commit0fa6f0893466c9fc0a149d215cfcee760e41cb00 (patch)
tree5042b7ab7465650c936e6b618f9a1cf27fad8a28 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentiommu/vt-d: Create unique domain ops for each stage (diff)
downloadkernel-0fa6f0893466c9fc0a149d215cfcee760e41cb00.tar.gz
kernel-0fa6f0893466c9fc0a149d215cfcee760e41cb00.zip
iommu/vt-d: Split intel_iommu_enforce_cache_coherency()
First Stage and Second Stage have very different ways to deny no-snoop. The first stage uses the PGSNP bit which is global per-PASID so enabling requires loading new PASID entries for all the attached devices. Second stage uses a bit per PTE, so enabling just requires telling future maps to set the bit. Since we now have two domain ops we can have two functions that can directly code their required actions instead of a bunch of logic dancing around use_first_level. Combine domain_set_force_snooping() into the new functions since they are the only caller. Reviewed-by: Kevin Tian <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lu Baolu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions