drm/amdgpu: fix the list movement
Subsystems (2)
PATCH 1/1 drm/amdgpu: fix the list movement
This patch adds a fix for list object movement, which was introduced in the TLB flush series.
Fixes 0a29a49f3ed4 ("drm/amdgpu: sync page table freeing with tlb flush")
Cc Christian König <[email protected]>
Suggested-by Christian König <[email protected]>
Signed-off-by Shashank Sharma <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c +1 -1
@@ -641,7 +641,7 @@ void amdgpu_vm_pt_free_list(struct amdgpu_device *adev,if (unlocked) {spin_lock (&vm->status_lock); -list_splice_init (&vm->pt_freed, ¶ms->tlb_flush_waitlist); +list_splice_init (¶ms->tlb_flush_waitlist, &vm->pt_freed);spin_unlock (&vm->status_lock);schedule_work (&vm->pt_free_work);return ;
Signature · 1 line
2.43.2
Am 22.03.24 um 12:14 schrieb Shashank Sharma:
Quoted 7 lines
This patch adds a fix for list object movement, which was introduced in the TLB flush series.
Fixes 0a29a49f3ed4 ("drm/amdgpu: sync page table freeing with tlb flush")Cc Christian König <[email protected]>Suggested-by Christian König <[email protected]>Signed-off-by Shashank Sharma <[email protected]>
Reviewed-by Christian König <[email protected]>
Quoted 17 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c +1
-1@@ -641,7 +641,7 @@ void amdgpu_vm_pt_free_list(struct amdgpu_device *adev,if (unlocked) {spin_lock (&vm->status_lock); -list_splice_init (&vm->pt_freed, ¶ms->tlb_flush_waitlist); +list_splice_init (¶ms->tlb_flush_waitlist, &vm->pt_freed);spin_unlock (&vm->status_lock);schedule_work (&vm->pt_free_work);return ;