summaryrefslogtreecommitdiffstats
path: root/include/uapi/drm/amdgpu_drm.h
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2017-05-17 20:05:08 +0200
committerAlex Deucher <alexander.deucher@amd.com>2017-05-25 00:24:38 +0200
commit68e2c5ffeb164f069692d00659d24dbda31178bc (patch)
tree80174509a262db0c1ca1e0c58c1c578bb51800c8 /include/uapi/drm/amdgpu_drm.h
parentdrm/amd/amdgpu: Return error if initiating read out of range on vram (diff)
downloadlinux-68e2c5ffeb164f069692d00659d24dbda31178bc.tar.xz
linux-68e2c5ffeb164f069692d00659d24dbda31178bc.zip
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/amdgpu_drm.h')
-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