Skip to content

Commit 39bbd33

Browse files
ChristianKoenigAMDalexdeucher
authored andcommitted
drm/amdgpu: revert "cleanup setting bulk_movable"
This reverts commit 8466cc6. 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> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 9e98c67 commit 39bbd33

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,8 @@ int amdgpu_vm_validate_pt_bos(struct amdgpu_device *adev, struct amdgpu_vm *vm,
700700
struct amdgpu_vm_bo_base *bo_base, *tmp;
701701
int r = 0;
702702

703+
vm->bulk_moveable &= list_empty(&vm->evicted);
704+
703705
list_for_each_entry_safe(bo_base, tmp, &vm->evicted, vm_status) {
704706
struct amdgpu_bo *bo = bo_base->bo;
705707

0 commit comments

Comments
 (0)