From: Pierre-Eric Pelloux-Prayer Date: Mon, 15 Sep 2025 12:25:44 +0000 (+0200) Subject: drm/amdgpu: remove gart_window_lock usage from gmc v12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c79cf5a7d903a16459846b4296fc3cd988837c54;p=thirdparty%2Fkernel%2Flinux.git drm/amdgpu: remove gart_window_lock usage from gmc v12 This lock was part of the SDMA workaround originally implemented in gmc_v10_0_flush_gpu_tlb (a70cb2176f7ef6f moved it to amdgpu_gmc_flush_gpu_tlb). This means this lock is useless and be safely dropped. Signed-off-by: Pierre-Eric Pelloux-Prayer Reviewed-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c index f4a19357ccbc6..cad2d19105c4c 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c @@ -312,9 +312,7 @@ static void gmc_v12_0_flush_gpu_tlb(struct amdgpu_device *adev, uint32_t vmid, return; } - mutex_lock(&adev->mman.gtt_window_lock); gmc_v12_0_flush_vm_hub(adev, vmid, vmhub, 0); - mutex_unlock(&adev->mman.gtt_window_lock); return; }