summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAshutosh Jain <ashutoshj@nvidia.com>2015-12-09 11:18:39 -0500
committerTerje Bergstrom <tbergstrom@nvidia.com>2015-12-14 11:30:36 -0500
commitf6eb64fcb56bebb61894272f26498bc0cc92169e (patch)
tree74196cfcc0faa96e43ff89a16ca6155e0a34649a /include
parent14f43e8a976c5b3d45be12aaf972c891d0c756c3 (diff)
gpu: nvgpu: Add 3 functions to regops interface.
This change adds the following IOCTLS: - NVGPU_GPU_IOCTL_RESUME_FROM_PAUSE - NVGPU_GPU_IOCTL_TRIGGER_SUSPEND - NVGPU_GPU_IOCTL_CLEAR_SM_ERRORS Bug 1619430 Change-Id: Iac37d515a753d8b799e631224eae2fa168b43e2c Signed-off-by: ashutosh jain <ashutoshj@nvidia.com> Reviewed-on: http://git-master/r/921378 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/nvgpu.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h
index 748c9612..1172a07e 100644
--- a/include/uapi/linux/nvgpu.h
+++ b/include/uapi/linux/nvgpu.h
@@ -387,9 +387,15 @@ struct nvgpu_gpu_get_buffer_info_args {
387 _IOWR(NVGPU_GPU_IOCTL_MAGIC, 19, struct nvgpu_gpu_vsms_mapping) 387 _IOWR(NVGPU_GPU_IOCTL_MAGIC, 19, struct nvgpu_gpu_vsms_mapping)
388#define NVGPU_GPU_IOCTL_GET_BUFFER_INFO \ 388#define NVGPU_GPU_IOCTL_GET_BUFFER_INFO \
389 _IOWR(NVGPU_GPU_IOCTL_MAGIC, 20, struct nvgpu_gpu_get_buffer_info_args) 389 _IOWR(NVGPU_GPU_IOCTL_MAGIC, 20, struct nvgpu_gpu_get_buffer_info_args)
390#define NVGPU_GPU_IOCTL_RESUME_FROM_PAUSE \
391 _IO(NVGPU_GPU_IOCTL_MAGIC, 21)
392#define NVGPU_GPU_IOCTL_TRIGGER_SUSPEND \
393 _IO(NVGPU_GPU_IOCTL_MAGIC, 22)
394#define NVGPU_GPU_IOCTL_CLEAR_SM_ERRORS \
395 _IO(NVGPU_GPU_IOCTL_MAGIC, 23)
390 396
391#define NVGPU_GPU_IOCTL_LAST \ 397#define NVGPU_GPU_IOCTL_LAST \
392 _IOC_NR(NVGPU_GPU_IOCTL_GET_BUFFER_INFO) 398 _IOC_NR(NVGPU_GPU_IOCTL_CLEAR_SM_ERRORS)
393#define NVGPU_GPU_IOCTL_MAX_ARG_SIZE \ 399#define NVGPU_GPU_IOCTL_MAX_ARG_SIZE \
394 sizeof(struct nvgpu_gpu_prepare_compressible_read_args) 400 sizeof(struct nvgpu_gpu_prepare_compressible_read_args)
395 401