diff options
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/nvgpu.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index 25c0472c..1fb633c8 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h | |||
@@ -777,6 +777,14 @@ struct nvgpu_gpu_get_temperature_args { | |||
777 | __s32 temp_f24_8; | 777 | __s32 temp_f24_8; |
778 | }; | 778 | }; |
779 | 779 | ||
780 | struct nvgpu_gpu_set_therm_alert_limit_args { | ||
781 | __u32 reserved[3]; | ||
782 | /* Temperature in signed fixed point format SFXP24.8 | ||
783 | * Celsius = temp_f24_8 / 256. | ||
784 | */ | ||
785 | __s32 temp_f24_8; | ||
786 | }; | ||
787 | |||
780 | #define NVGPU_GPU_IOCTL_ZCULL_GET_CTX_SIZE \ | 788 | #define NVGPU_GPU_IOCTL_ZCULL_GET_CTX_SIZE \ |
781 | _IOR(NVGPU_GPU_IOCTL_MAGIC, 1, struct nvgpu_gpu_zcull_get_ctx_size_args) | 789 | _IOR(NVGPU_GPU_IOCTL_MAGIC, 1, struct nvgpu_gpu_zcull_get_ctx_size_args) |
782 | #define NVGPU_GPU_IOCTL_ZCULL_GET_INFO \ | 790 | #define NVGPU_GPU_IOCTL_ZCULL_GET_INFO \ |
@@ -858,8 +866,11 @@ struct nvgpu_gpu_get_temperature_args { | |||
858 | _IOWR(NVGPU_GPU_IOCTL_MAGIC, 37, struct nvgpu_gpu_get_temperature_args) | 866 | _IOWR(NVGPU_GPU_IOCTL_MAGIC, 37, struct nvgpu_gpu_get_temperature_args) |
859 | #define NVGPU_GPU_IOCTL_GET_FBP_L2_MASKS \ | 867 | #define NVGPU_GPU_IOCTL_GET_FBP_L2_MASKS \ |
860 | _IOWR(NVGPU_GPU_IOCTL_MAGIC, 38, struct nvgpu_gpu_get_fbp_l2_masks_args) | 868 | _IOWR(NVGPU_GPU_IOCTL_MAGIC, 38, struct nvgpu_gpu_get_fbp_l2_masks_args) |
869 | #define NVGPU_GPU_IOCTL_SET_THERM_ALERT_LIMIT \ | ||
870 | _IOWR(NVGPU_GPU_IOCTL_MAGIC, 39, \ | ||
871 | struct nvgpu_gpu_set_therm_alert_limit_args) | ||
861 | #define NVGPU_GPU_IOCTL_LAST \ | 872 | #define NVGPU_GPU_IOCTL_LAST \ |
862 | _IOC_NR(NVGPU_GPU_IOCTL_GET_FBP_L2_MASKS) | 873 | _IOC_NR(NVGPU_GPU_IOCTL_SET_THERM_ALERT_LIMIT) |
863 | #define NVGPU_GPU_IOCTL_MAX_ARG_SIZE \ | 874 | #define NVGPU_GPU_IOCTL_MAX_ARG_SIZE \ |
864 | sizeof(struct nvgpu_gpu_get_cpu_time_correlation_info_args) | 875 | sizeof(struct nvgpu_gpu_get_cpu_time_correlation_info_args) |
865 | 876 | ||