]> Gentwo Git Trees - linux/.git/commit
drm/amdgpu: add missing lock to amdgpu_ttm_access_memory_sdma
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 25 Nov 2025 09:48:39 +0000 (10:48 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Dec 2025 16:01:21 +0000 (11:01 -0500)
commit4fa944255be521b1bbd9780383f77206303a3a5c
tree82ba21213b9a89e4bcd70cb5c53ccc75eeca9ed3
parent5427e32fa3a0ba9a016db83877851ed277b065fb
drm/amdgpu: add missing lock to amdgpu_ttm_access_memory_sdma

Users of ttm entities need to hold the gtt_window_lock before using them
to guarantee proper ordering of jobs.

Cc: stable@vger.kernel.org
Fixes: cb5cc4f573e1 ("drm/amdgpu: improve debug VRAM access performance using sdma")
Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.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