]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:14:52 +0000 (10:14 +0100)
commit2ba843759a3ae4cf4eb5713a0cd157d51afa2216
tree35b890e5ecc82e3f53f8ddf5905ee6854c0804c4
parentc0cd4bfb729b43f2cfd9866d7619e2da5a971677
drm/amdgpu: add missing lock to amdgpu_ttm_access_memory_sdma

commit 4fa944255be521b1bbd9780383f77206303a3a5c upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c