]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: remove gart_window_lock usage from gmc v12
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Mon, 15 Sep 2025 12:25:44 +0000 (14:25 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Oct 2025 18:14:33 +0000 (14:14 -0400)
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 <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/gmc_v12_0.c

index f4a19357ccbc65e9d387d6c027a8e790635120e7..cad2d19105c4c8b5dd726120091eec4b43c34eb7 100644 (file)
@@ -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;
 }