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:24 +0000
committerWill Deacon <[email protected]>2025-07-14 10:18:03 +0000
commitb33125296b5047115469b8a3b74c0fdbf4976548 (patch)
tree25ba4920498963e7b6e941998a4e4e2f4959cf6e /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentiommu/vt-d: Split intel_iommu_domain_alloc_paging_flags() (diff)
downloadkernel-b33125296b5047115469b8a3b74c0fdbf4976548.tar.gz
kernel-b33125296b5047115469b8a3b74c0fdbf4976548.zip
iommu/vt-d: Create unique domain ops for each stage
Use the domain ops pointer to tell what kind of domain it is instead of the internal use_first_level indication. This also protects against wrongly using a SVA/nested/IDENTITY/BLOCKED domain type in places they should not be. The only remaining uses of use_first_level outside the paging domain are in paging_domain_compatible() and intel_iommu_enforce_cache_coherency(). Thus, remove the useless sets of use_first_level in intel_svm_domain_alloc() and intel_iommu_domain_alloc_nested(). None of the unique ops for these domain types ever reference it on their call chains. Add a WARN_ON() check in domain_context_mapping_one() as it only works with second stage. This is preparation for iommupt which will have different ops for each of the stages. 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