Skip to content

Commit

Permalink
drm/amdgpu: revert "cleanup setting bulk_movable"
Browse files Browse the repository at this point in the history
This reverts commit 4ef2700.

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 <christian.koenig@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Tested-by: Michel Dänzer <michel.daenzer@amd.com>
  • Loading branch information
Christian König authored and changzhu committed Mar 15, 2019
1 parent 19b261a commit c004573
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,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;

Expand Down

0 comments on commit c004573

Please sign in to comment.