Userspace will be able to tell whether a GPU reset occured by comparing an old referece value of the counter with a new value.
Showing the changes to include/uapi (1 of 5 files). Show all
Unified · Split
| @@ -1038,6 +1038,7 @@ struct drm_radeon_cs { · 1037 unmodified lines | ||
| 1038 | 1038 | #define RADEON_INFO_CURRENT_GPU_SCLK 0x22 |
| 1039 | 1039 | #define RADEON_INFO_CURRENT_GPU_MCLK 0x23 |
| 1040 | 1040 | #define RADEON_INFO_READ_REG 0x24 |
| 1041 | +#define RADEON_INFO_GPU_RESET_COUNTER 0x25 | |
| 1041 | 1042 | |
| 1042 | 1043 | struct drm_radeon_info { |
| 1043 | 1044 | uint32_t request; |