]> 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:17:15 +0000 (10:17 +0100)
commit431b9cd093635b8a650df3fcf351180260d8c04b
tree123faf0f4a24c94bf09f9033629187d46fe85107
parent0b48f98f092bd246964465f16f2e321ee619988c
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