aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2017-10-09 08:45:09 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-10-19 15:27:03 -0400
commit396bcb41e035df7b98fb150ca950bf213e70ae7b (patch)
tree09ec736839cc47c275c6dd677271af1520b11cc9 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parent6ed4e2e673d348df6623012a628a8ab8624e3222 (diff)
drm/amdgpu: partial revert VRAM lost handling v2
Keep blocking the CS, but revert everything else. Mapping BOs and info IOCTL are harmless and can still happen even when VRAM content ist lost. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
index 21e99366cab3..fb72edc4c026 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
@@ -579,11 +579,6 @@ int amdgpu_gem_va_ioctl(struct drm_device *dev, void *data,
579 args->operation); 579 args->operation);
580 return -EINVAL; 580 return -EINVAL;
581 } 581 }
582 if ((args->operation == AMDGPU_VA_OP_MAP) ||
583 (args->operation == AMDGPU_VA_OP_REPLACE)) {
584 if (amdgpu_kms_vram_lost(adev, fpriv))
585 return -ENODEV;
586 }
587 582
588 INIT_LIST_HEAD(&list); 583 INIT_LIST_HEAD(&list);
589 INIT_LIST_HEAD(&duplicates); 584 INIT_LIST_HEAD(&duplicates);