aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/drm/radeon_drm.h
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2014-09-30 11:33:30 -0400
committerAlex Deucher <alexander.deucher@amd.com>2015-03-19 12:26:36 -0400
commit5c363a860398e2a09e5cff7f4654cf82ed8485e1 (patch)
tree4f9ead64d2eaad9495c39b51d752b3d1f3bf233f /include/uapi/drm/radeon_drm.h
parentdrm/radeon/kv: implement get_current_sclk/mclk (diff)
downloadlinux-dev-5c363a860398e2a09e5cff7f4654cf82ed8485e1.tar.xz
linux-dev-5c363a860398e2a09e5cff7f4654cf82ed8485e1.zip
drm/radeon: add INFO query for current sclk/mclk
Allow the UMDs to query the current sclk/mclk for profiling, etc. Tested-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/uapi/drm/radeon_drm.h')
-rw-r--r--include/uapi/drm/radeon_drm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/drm/radeon_drm.h b/include/uapi/drm/radeon_drm.h
index 66b1131bb296..de7ee21efea2 100644
--- a/include/uapi/drm/radeon_drm.h
+++ b/include/uapi/drm/radeon_drm.h
@@ -1035,6 +1035,8 @@ struct drm_radeon_cs {
#define RADEON_INFO_GTT_USAGE 0x1f
#define RADEON_INFO_ACTIVE_CU_COUNT 0x20
#define RADEON_INFO_CURRENT_GPU_TEMP 0x21
+#define RADEON_INFO_CURRENT_GPU_SCLK 0x22
+#define RADEON_INFO_CURRENT_GPU_MCLK 0x23
struct drm_radeon_info {
uint32_t request;