aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorLu Baolu <[email protected]>2024-09-02 02:27:16 +0000
committerJoerg Roedel <[email protected]>2024-09-02 16:14:57 +0000
commit2031c469f8161abe74189cb74f50da224f340b71 (patch)
tree35f347a59ab93a604d8f4afa8e673ce9b0baa4c8 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentiommu/vt-d: Factor out helpers from domain_context_mapping_one() (diff)
downloadkernel-2031c469f8161abe74189cb74f50da224f340b71.tar.gz
kernel-2031c469f8161abe74189cb74f50da224f340b71.zip
iommu/vt-d: Add support for static identity domain
Software determines VT-d hardware support for passthrough translation by inspecting the capability register. If passthrough translation is not supported, the device is instructed to use DMA domain for its default domain. Add a global static identity domain with guaranteed attach semantics for IOMMUs that support passthrough translation mode. The global static identity domain is a dummy domain without corresponding dmar_domain structure. Consequently, the device's info->domain will be NULL with the identity domain is attached. Refactor the code accordingly. Signed-off-by: Lu Baolu <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Reviewed-by: Kevin Tian <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions