summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2017-10-09 17:53:06 +0200
committerAlex Deucher <alexander.deucher@amd.com>2017-10-19 21:27:05 +0200
commit1f7251b73e08395dbf03602a57ca67cf7da7f9db (patch)
treeb38e541c99491379351c214899e30dfcd84d7127 /include/uapi
parentdrm/amdgpu: set -ECANCELED when dropping jobs (diff)
downloadlinux-1f7251b73e08395dbf03602a57ca67cf7da7f9db.tar.xz
linux-1f7251b73e08395dbf03602a57ca67cf7da7f9db.zip
drm/amdgpu: add VRAM lost query
Allows userspace to figure out if VRAM was 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 'include/uapi')
-rw-r--r--include/uapi/drm/amdgpu_drm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h
index d0a3ea69eab6..ff0181829f3d 100644
--- a/include/uapi/drm/amdgpu_drm.h
+++ b/include/uapi/drm/amdgpu_drm.h
@@ -657,6 +657,7 @@ struct drm_amdgpu_cs_chunk_data {
#define AMDGPU_INFO_SENSOR_VDDGFX 0x7
/* Number of VRAM page faults on CPU access. */
#define AMDGPU_INFO_NUM_VRAM_CPU_PAGE_FAULTS 0x1E
+#define AMDGPU_INFO_VRAM_LOST_COUNTER 0x1F
#define AMDGPU_INFO_MMR_SE_INDEX_SHIFT 0
#define AMDGPU_INFO_MMR_SE_INDEX_MASK 0xff