]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: Add helper to alloc GART entries
authorPhilip Yang <Philip.Yang@amd.com>
Tue, 9 Dec 2025 23:15:23 +0000 (18:15 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 8 Jan 2026 16:42:53 +0000 (11:42 -0500)
commit698fa62f56aa3600efcfb11dd04f84e938dfc5fa
treeb707acaa356d38b87150ac2af42d8ff02522876c
parentec9243d1b4f59ae5365add0f52fac7af2e4c18ce
drm/amdgpu: Add helper to alloc GART entries

Add helper amdgpu_gtt_mgr_alloc/free_entries, define
GART_ENTRY_WITHOUT_BO_COLOR color for GART node not allocated with GTT
bo, then amdgpu_gtt_mgr_recover skip those mm_node.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h