drm/amdgpu: revert "disable bulk moves for now"
authorChristian König <christian.koenig@amd.com>
Thu, 12 Sep 2019 10:13:50 +0000 (12:13 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Sep 2019 20:29:37 +0000 (15:29 -0500)
This reverts commit a213c2c7e235cfc0e0a161a558f7fdf2fb3a624a.

The changes to fix this should have landed in 5.1.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Zhou, David(ChunMing) <David1.Zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c

index 8327469f5722116dce821e463b5a08a9f4ee2ff4..9f3cfc78a8c4bffa7f4078aed9e8ff991dbe91ae 100644 (file)
@@ -603,14 +603,12 @@ void amdgpu_vm_move_to_lru_tail(struct amdgpu_device *adev,
        struct ttm_bo_global *glob = adev->mman.bdev.glob;
        struct amdgpu_vm_bo_base *bo_base;
 
-#if 0
        if (vm->bulk_moveable) {
                spin_lock(&glob->lru_lock);
                ttm_bo_bulk_move_lru_tail(&vm->lru_bulk_move);
                spin_unlock(&glob->lru_lock);
                return;
        }
-#endif
 
        memset(&vm->lru_bulk_move, 0, sizeof(vm->lru_bulk_move));