aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/pm/amdgpu_pm.c
diff options
context:
space:
mode:
authorTvrtko Ursulin <[email protected]>2024-05-06 16:59:56 +0000
committerAlex Deucher <[email protected]>2024-05-17 21:40:38 +0000
commit8fb0efb10184c8121719247e5d59e68e7f5617de (patch)
tree500dce0776004ca3dded6918b6c900ea57aa9720 /drivers/gpu/drm/amd/pm/amdgpu_pm.c
parentdrm/amdgpu: Add amdgpu_bo_is_vm_bo helper (diff)
downloadkernel-8fb0efb10184c8121719247e5d59e68e7f5617de.tar.gz
kernel-8fb0efb10184c8121719247e5d59e68e7f5617de.zip
drm/amdgpu: Reduce mem_type to domain double indirection
All apart from AMDGPU_GEM_DOMAIN_GTT memory domains map 1:1 to TTM placements. And the former be either AMDGPU_PL_PREEMPT or TTM_PL_TT, depending on AMDGPU_GEM_CREATE_PREEMPTIBLE. Simplify a few places in the code which convert the TTM placement into a domain by checking against the current placement directly. In the conversion AMDGPU_PL_PREEMPT either does not have to be handled because amdgpu_mem_type_to_domain() cannot return that value anyway. v2: * Remove AMDGPU_PL_PREEMPT handling. v3: * Rebase. Signed-off-by: Tvrtko Ursulin <[email protected]> Reviewed-by: Christian König <[email protected]> # v1 Reviewed-by: Felix Kuehling <[email protected]> # v2 Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions