diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index 995ad5e83611..7d7d7e532246 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |||
@@ -291,11 +291,11 @@ int amdgpu_vm_validate_pt_bos(struct amdgpu_device *adev, struct amdgpu_vm *vm, | |||
291 | list_for_each_entry_safe(bo_base, tmp, &vm->evicted, vm_status) { | 291 | list_for_each_entry_safe(bo_base, tmp, &vm->evicted, vm_status) { |
292 | struct amdgpu_bo *bo = bo_base->bo; | 292 | struct amdgpu_bo *bo = bo_base->bo; |
293 | 293 | ||
294 | if (bo->parent) { | 294 | r = validate(param, bo); |
295 | r = validate(param, bo); | 295 | if (r) |
296 | if (r) | 296 | break; |
297 | break; | ||
298 | 297 | ||
298 | if (bo->parent) { | ||
299 | spin_lock(&glob->lru_lock); | 299 | spin_lock(&glob->lru_lock); |
300 | ttm_bo_move_to_lru_tail(&bo->tbo); | 300 | ttm_bo_move_to_lru_tail(&bo->tbo); |
301 | if (bo->shadow) | 301 | if (bo->shadow) |