]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: return -ENODEV to user space when vram is lost v2
authorChunming Zhou <David1.Zhou@amd.com>
Mon, 15 May 2017 08:48:27 +0000 (16:48 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 22:11:52 +0000 (18:11 -0400)
commit02f09f96a09819b0fefc5327158cb35120819e45
tree127e78746b85e17adb9793c4d38f5aadab8e9f92
parentd4e8640bf37548824609558763b6366d29868830
drm/amdgpu: return -ENODEV to user space when vram is lost v2

below ioctl will return -ENODEV:
amdgpu_cs_ioctl
amdgpu_cs_wait_ioctl
amdgpu_cs_wait_fences_ioctl
amdgpu_gem_va_ioctl
amdgpu_info_ioctl

v2: only for map and replace cases in amdgpu_gem_va_ioctl

Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c