Re: [PATCH 2/4] drm/amdgpu: return -ENODEV to user space when vram is lost v2

2017-05-23 Thread zhoucm1
, David(ChunMing) Subject: [PATCH 2/4] 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 Do we want to block the info ioctl? Isn't that where the lost

Re: [PATCH 2/4] drm/amdgpu: return -ENODEV to user space when vram is lost v2

2017-05-23 Thread Christian König
: 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 Do we want to block the info ioctl? Isn't that where the lost context query is? No, that's amdgpu_ctx_ioctl

RE: [PATCH 2/4] drm/amdgpu: return -ENODEV to user space when vram is lost v2

2017-05-23 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Chunming Zhou > Sent: Tuesday, May 16, 2017 5:26 AM > To: amd-gfx@lists.freedesktop.org > Cc: Zhou, David(ChunMing) > Subject: [PATCH 2/4] drm/amdgpu: return -ENODEV to u

[PATCH 2/4] drm/amdgpu: return -ENODEV to user space when vram is lost v2

2017-05-16 Thread Chunming Zhou
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 Change-Id: I8970cde3301b7cfeb4263cc0f0e54aece215c98e Signed-off-by: Chunming Zhou