]> www.infradead.org Git - users/hch/misc.git/commit
drm/amdgpu: immediately use GTT for new allocations
authorChristian König <christian.koenig@amd.com>
Thu, 20 Mar 2025 13:46:18 +0000 (14:46 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Apr 2025 18:30:57 +0000 (14:30 -0400)
commita755906fb2b8370c43e91ba437ae1b3e228e8b02
tree12ec4e57ca398690a007814da4f13489cb7ac79a
parentb71a2bb0ce07f40f92f59ed7f283068e41b10075
drm/amdgpu: immediately use GTT for new allocations

Only use GTT as a fallback if we already have a backing store. This
prevents evictions when an application constantly allocates and frees new
memory.

Partially fixes
https://gitlab.freedesktop.org/drm/amd/-/issues/3844#note_2833985.

Signed-off-by: Christian König <christian.koenig@amd.com>
Fixes: 216c1282dde3 ("drm/amdgpu: use GTT only as fallback for VRAM|GTT")
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c