diff options
| author | Christian König <[email protected]> | 2017-10-09 12:45:09 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2017-10-19 19:27:03 +0000 |
| commit | 396bcb41e035df7b98fb150ca950bf213e70ae7b (patch) | |
| tree | 09ec736839cc47c275c6dd677271af1520b11cc9 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | drm/ttm: add transparent huge page support for wc or uc allocations v2 (diff) | |
| download | kernel-396bcb41e035df7b98fb150ca950bf213e70ae7b.tar.gz kernel-396bcb41e035df7b98fb150ca950bf213e70ae7b.zip | |
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 <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 5 |
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, args->operation); return -EINVAL; } - if ((args->operation == AMDGPU_VA_OP_MAP) || - (args->operation == AMDGPU_VA_OP_REPLACE)) { - if (amdgpu_kms_vram_lost(adev, fpriv)) - return -ENODEV; - } INIT_LIST_HEAD(&list); INIT_LIST_HEAD(&duplicates); |
