drm/amdgpu/ttm: Consider concurrent VM flushes for buffer entities
authorTimur Kristóf <timur.kristof@gmail.com>
Sat, 11 Jul 2026 11:49:58 +0000 (13:49 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 15 Jul 2026 13:15:43 +0000 (09:15 -0400)
commita8171229bc836607fbc225d323ebc4d14489cfbb
tree0a6451bc7dd74263237ee1fc231ca312a832b979
parentfaad8105e9a7362ef3eba1f0fc4fe446191856e8
drm/amdgpu/ttm: Consider concurrent VM flushes for buffer entities

Allow using multiple SDMA schedulers only on GPUs where
we are allowed to do concurrent VM flushes.
This consideration is necessary because all GART windows
are mapped in VMID 0 (the kernel VMID) so each buffer
entity would flush VMID 0 concurrently.

Practically this means that we can't use multiple SDMA
engines for TTM on GFX6-8 and Navi 1x.

Fixes: 01c836788b37 ("drm/amdgpu: pass all the sdma scheds to amdgpu_mman")
Fixes: e4029f7a9474 ("drm/amdgpu: only use working sdma schedulers for ttm")
Cc: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c