summaryrefslogtreecommitdiffstats
path: root/include/uapi/drm/amdgpu_drm.h
diff options
context:
space:
mode:
authorRex Zhu2018-01-17 06:18:47 +0100
committerAlex Deucher2018-02-19 20:17:57 +0100
commit60bbade2a63de363a7acdb5e3b0f166a883fe3be (patch)
tree904ef0ca6508bc6d2b3d2e85f842500f36c70a56 /include/uapi/drm/amdgpu_drm.h
parentdrm/amdgpu: all vram is visible for APU (v2) (diff)
downloadkernel-qcow2-linux-60bbade2a63de363a7acdb5e3b0f166a883fe3be.tar.gz
kernel-qcow2-linux-60bbade2a63de363a7acdb5e3b0f166a883fe3be.tar.xz
kernel-qcow2-linux-60bbade2a63de363a7acdb5e3b0f166a883fe3be.zip
drm/amdgpu: Expose more GPU sensor queries
Add sub-queries for stable pstate shader/memory clock. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Rex Zhu <Rex.Zhu@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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h
index 4d21191aaed0..1816bd8200d1 100644
--- a/include/uapi/drm/amdgpu_drm.h
+++ b/include/uapi/drm/amdgpu_drm.h
@@ -664,6 +664,10 @@ struct drm_amdgpu_cs_chunk_data {
#define AMDGPU_INFO_SENSOR_VDDNB 0x6
/* Subquery id: Query graphics voltage */
#define AMDGPU_INFO_SENSOR_VDDGFX 0x7
+ /* Subquery id: Query GPU stable pstate shader clock */
+ #define AMDGPU_INFO_SENSOR_STABLE_PSTATE_GFX_SCLK 0x8
+ /* Subquery id: Query GPU stable pstate memory clock */
+ #define AMDGPU_INFO_SENSOR_STABLE_PSTATE_GFX_MCLK 0x9
/* Number of VRAM page faults on CPU access. */
#define AMDGPU_INFO_NUM_VRAM_CPU_PAGE_FAULTS 0x1E
#define AMDGPU_INFO_VRAM_LOST_COUNTER 0x1F