]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: Configure max beneficial TTM pool allocation order
authorTvrtko Ursulin <tvrtko.ursulin@igalia.com>
Mon, 20 Oct 2025 11:54:10 +0000 (12:54 +0100)
committerTvrtko Ursulin <tursulin@ursulin.net>
Fri, 31 Oct 2025 09:14:50 +0000 (09:14 +0000)
commitccbadd9eea62aac0278d22a61a15a1d8f4df9a16
treef809cce6c7d0ba014e98d4f14ee7f2b2b6140d02
parent7e9c548d3709c76601c953834bed9c888f3e17b2
drm/amdgpu: Configure max beneficial TTM pool allocation order

Let the TTM pool allocator know that we can afford for it to expend less
effort for satisfying contiguous allocations larger than 2MiB. The latter
is the maximum relevant PTE entry size and the driver and hardware are
happy to get larger blocks only opportunistically.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Thadeu Lima de Souza Cascardo <cascardo@igalia.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Tvrtko Ursulin <tursulin@ursulin.net>
Link: https://lore.kernel.org/r/20251020115411.36818-6-tvrtko.ursulin@igalia.com
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c