diff options
author | Marek Olšák <marek.olsak@amd.com> | 2015-04-29 19:40:33 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-05-26 16:31:19 +0200 |
commit | 72b9076b2887add930d3b102760f09d02ffbfbe7 (patch) | |
tree | 8eba67d708f9d5c79661d65fc72122fe5f2ac241 /include/uapi/drm/radeon_drm.h | |
parent | Merge branch 'drm/next/adv7511' of git://linuxtv.org/pinchartl/fbdev into drm... (diff) | |
download | linux-72b9076b2887add930d3b102760f09d02ffbfbe7.tar.xz linux-72b9076b2887add930d3b102760f09d02ffbfbe7.zip |
drm/radeon: add a GPU reset counter queryable by userspace
Userspace will be able to tell whether a GPU reset occured by comparing
an old referece value of the counter with a new value.
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-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 871e73f99a4d..573cb86a3d6e 100644 --- a/include/uapi/drm/radeon_drm.h +++ b/include/uapi/drm/radeon_drm.h @@ -1038,6 +1038,7 @@ struct drm_radeon_cs { #define RADEON_INFO_CURRENT_GPU_SCLK 0x22 #define RADEON_INFO_CURRENT_GPU_MCLK 0x23 #define RADEON_INFO_READ_REG 0x24 +#define RADEON_INFO_GPU_RESET_COUNTER 0x25 struct drm_radeon_info { uint32_t request; |