Skip to content

Commit e8fc090

Browse files
ChristianKoenigAMDalexdeucher
authored andcommitted
drm/amdgpu: enable GTT fallback handling for dGPUs only
That is just a waste of time on APUs. Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3704 Fixes: 216c128 ("drm/amdgpu: use GTT only as fallback for VRAM|GTT") Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 8521e3c commit e8fc090

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_object.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ void amdgpu_bo_placement_from_domain(struct amdgpu_bo *abo, u32 domain)
162162
* When GTT is just an alternative to VRAM make sure that we
163163
* only use it as fallback and still try to fill up VRAM first.
164164
*/
165-
if (domain & abo->preferred_domains & AMDGPU_GEM_DOMAIN_VRAM)
165+
if (domain & abo->preferred_domains & AMDGPU_GEM_DOMAIN_VRAM &&
166+
!(adev->flags & AMD_IS_APU))
166167
places[c].flags |= TTM_PL_FLAG_FALLBACK;
167168
c++;
168169
}

0 commit comments

Comments
 (0)