diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2014-10-01 11:26:50 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-03-19 12:26:42 -0400 |
commit | 4535cb9cefbc736b47bc1e7f8628065aba5ca0d7 (patch) | |
tree | 61ac646bcce16d863c023e05510200e735036ec7 /include/uapi/drm/radeon_drm.h | |
parent | 353eec2ab229867d59a12375a48fc65e2d749e8b (diff) | |
download | linux-stable-4535cb9cefbc736b47bc1e7f8628065aba5ca0d7.tar.gz linux-stable-4535cb9cefbc736b47bc1e7f8628065aba5ca0d7.tar.bz2 linux-stable-4535cb9cefbc736b47bc1e7f8628065aba5ca0d7.zip |
drm/radeon: add support for read reg query from radeon info ioctl
This allows us to query certain registers from userspace
for profiling and harvest configuration. E.g., it can
be used by the GALLIUM_HUD for profiling the status of
various gfx blocks.
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/drm/radeon_drm.h b/include/uapi/drm/radeon_drm.h index de7ee21efea2..871e73f99a4d 100644 --- a/include/uapi/drm/radeon_drm.h +++ b/include/uapi/drm/radeon_drm.h @@ -1037,6 +1037,7 @@ struct drm_radeon_cs { #define RADEON_INFO_CURRENT_GPU_TEMP 0x21 #define RADEON_INFO_CURRENT_GPU_SCLK 0x22 #define RADEON_INFO_CURRENT_GPU_MCLK 0x23 +#define RADEON_INFO_READ_REG 0x24 struct drm_radeon_info { uint32_t request; |