summaryrefslogtreecommitdiff
path: root/include/uapi/drm
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2017-05-17 21:05:08 +0300
committerAlex Deucher <alexander.deucher@amd.com>2017-05-25 01:24:38 +0300
commit68e2c5ffeb164f069692d00659d24dbda31178bc (patch)
tree80174509a262db0c1ca1e0c58c1c578bb51800c8 /include/uapi/drm
parent9156e723301c0a7a7def4cde820e018ce791b842 (diff)
downloadlinux-68e2c5ffeb164f069692d00659d24dbda31178bc.tar.xz
drm/amdgpu: add an INFO query for monitoring VRAM CPU page faults
v2: bump the DRM version Signed-off-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/uapi/drm')
-rw-r--r--include/uapi/drm/amdgpu_drm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h
index 0c0c4a491038..34128f698f5e 100644
--- a/include/uapi/drm/amdgpu_drm.h
+++ b/include/uapi/drm/amdgpu_drm.h
@@ -603,6 +603,8 @@ struct drm_amdgpu_cs_chunk_data {
#define AMDGPU_INFO_SENSOR_VDDNB 0x6
/* Subquery id: Query graphics voltage */
#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_MMR_SE_INDEX_SHIFT 0
#define AMDGPU_INFO_MMR_SE_INDEX_MASK 0xff