summaryrefslogtreecommitdiffstats
path: root/include/uapi
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-24 18:24:38 -0400
commit68e2c5ffeb164f069692d00659d24dbda31178bc (patch)
tree80174509a262db0c1ca1e0c58c1c578bb51800c8 /include/uapi
parent9156e723301c0a7a7def4cde820e018ce791b842 (diff)
downloadop-kernel-dev-68e2c5ffeb164f069692d00659d24dbda31178bc.zip
op-kernel-dev-68e2c5ffeb164f069692d00659d24dbda31178bc.tar.gz
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')
-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 0c0c4a4..34128f6 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
OpenPOWER on IntegriCloud