drm/amdgpu: revert "cleanup setting bulk_movable"
Subsystems (2)
PATCH 1/1 drm/amdgpu: revert "cleanup setting bulk_movable"
This reverts commit 4ef27005fefd4be102010b7d8552fec1ee13435a.
It can trigger a reference counter bug in TTM. Need to investigate further, but for now revert the offending change.
Signed-off-by Christian König <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +2 -0
@@ -693,6 +693,8 @@ int amdgpu_vm_validate_pt_bos(struct amdgpu_device *adev, struct amdgpu_vm *vm,struct amdgpu_vm_bo_base *bo_base, *tmp;int r =0 ; + vm->bulk_moveable &=list_empty (&vm->evicted); +list_for_each_entry_safe (bo_base, tmp, &vm->evicted, vm_status) {struct amdgpu_bo *bo = bo_base->bo;
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20190313083822.2273-1-christian.koenig-5C7GfCeVMHo@public.gmane.org
Quoted 16 lines · Christian König
This reverts commit
4ef27005fefd4be102010b7d8552fec1ee13435a.It can trigger a reference counter bug in TTM. Need to investigate further, but for now revert the offending change.
Signed-off-by Christian König <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c int amdgpu_vm_validate_pt_bos(struct amdgpu_device *adev, struct amdgpu_vm *vm, · line 700
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +2
-0@@ -693,6 +693,8 @@ int amdgpu_vm_validate_pt_bos(struct amdgpu_device *adev, struct amdgpu_vm *vm,struct amdgpu_vm_bo_base *bo_base, *tmp;int r =0 ; + vm->bulk_moveable &=list_empty (&vm->evicted); +list_for_each_entry_safe (bo_base, tmp, &vm->evicted, vm_status) {struct amdgpu_bo *bo = bo_base->bo;
Reviewed-by Michel Dänzer <[email protected]>
Tested-by Michel Dänzer <[email protected]>
Signature · 6 lines
Earthling Michel Dänzer | https://www.amd.com Libre software enthusiast | Mesa and X developer _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx