summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorLakshmanan M <lm@nvidia.com>2016-11-08 00:45:56 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-01-10 06:54:56 -0500
commit8a63a431c4ab42e8531614fd69e460b7fdc5e31f (patch)
tree65dcee38d779bcf57bce6a41e49e44b46efb3f69 /include/uapi
parenteaeb5ff20f7663738cea2a415a7d923febf7ff85 (diff)
gpu: nvgpu: Add thermal alert limit IOCTL for UMD
Added the thermal alert lmit IOCTL for UMD JIRA DNVGPU-130 Bug 200231080 Change-Id: I4a84157d90b12b576fa144567a3bdd5d39f5278e Signed-off-by: Lakshmanan M <lm@nvidia.com> Reviewed-on: http://git-master/r/1249483 (cherry picked from commit d3458008cc3dd98d3a51841b6ed8cea1aed9eb89) Reviewed-on: http://git-master/r/1253457 GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/nvgpu.h13
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
780struct 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