drm/amdgpu: fix duplicated mapping invoke bug
authormonk.liu <monk.liu@amd.com>
Fri, 14 Aug 2015 05:36:41 +0000 (13:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Aug 2015 20:51:20 +0000 (16:51 -0400)
fix the bug that there is duplicated bo_update_mapping issued

Signed-off-by: monk.liu <monk.liu@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c

index de882b0db3507acafdc01a7377d1e6f838365c8d..2fc909f5d710738f3fca1506e0bdbe5c7b6c74cb 100644 (file)
@@ -872,6 +872,7 @@ int amdgpu_vm_bo_update(struct amdgpu_device *adev,
        }
 
        spin_lock(&vm->status_lock);
+       list_splice_init(&bo_va->invalids, &bo_va->valids);
        list_del_init(&bo_va->vm_status);
        if (!mem)
                list_add(&bo_va->vm_status, &vm->cleared);