diff options
author | Philip Yang <Philip.Yang@amd.com> | 2021-12-06 21:10:52 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-12-13 16:33:16 -0500 |
commit | 4a74c38cd67b3e74a1dacc76c7ac5c276bfdeab5 (patch) | |
tree | 204607b4e431e064b479e76e890f95e8de225c6d /drivers/gpu/drm/amd/amdgpu/amdgpu_ioc32.c | |
parent | a723c6d0785acf9e4bf5b77167d6a0c32ecf8503 (diff) | |
download | linux-4a74c38cd67b3e74a1dacc76c7ac5c276bfdeab5.tar.gz linux-4a74c38cd67b3e74a1dacc76c7ac5c276bfdeab5.tar.bz2 linux-4a74c38cd67b3e74a1dacc76c7ac5c276bfdeab5.zip |
drm/amdgpu: Detect if amdgpu in IOMMU direct map mode
If host and amdgpu IOMMU is not enabled or IOMMU is pass through mode,
set adev->ram_is_direct_mapped flag which will be used to optimize
memory usage for multi GPU mappings.
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ioc32.c')
0 files changed, 0 insertions, 0 deletions