From 5f10073540acba056ccf905010dd400d8f32ca31 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Mon, 21 Mar 2016 19:58:28 +0530 Subject: gpu: nvgpu: add TSG support to channel event id Add NVGPU_IOCTL_TSG_EVENT_ID_CTRL API for channel event id support to TSGs This API will accept an event_id (like BPT.INT or BPT.PAUSE), a command to enable the event, and return a file descriptor on which we can raise the event (if cmd=enable) Events generated for TSGs will reuse file operations "gk20a_event_id_ops" Bug 200089620 Change-Id: I2f563c6d3a0988eb670caac2d3c7c6795724792c Signed-off-by: Deepak Nibade Reviewed-on: http://git-master/r/1030776 (cherry picked from commit 72b61fa266279038f013e582be80c21808e1038d) Reviewed-on: http://git-master/r/1120319 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani --- include/uapi/linux/nvgpu.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include/uapi/linux/nvgpu.h') diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index 6fed9e9f..45d1c217 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h @@ -448,11 +448,15 @@ struct nvgpu_gpu_get_cpu_time_correlation_info_args { _IO(NVGPU_TSG_IOCTL_MAGIC, 5) #define NVGPU_IOCTL_TSG_SET_PRIORITY \ _IOW(NVGPU_TSG_IOCTL_MAGIC, 6, struct nvgpu_set_priority_args) +#define NVGPU_IOCTL_TSG_EVENT_ID_CTRL \ + _IOWR(NVGPU_TSG_IOCTL_MAGIC, 7, struct nvgpu_event_id_ctrl_args) #define NVGPU_TSG_IOCTL_MAX_ARG_SIZE \ - sizeof(struct nvgpu_set_priority_args) + sizeof(struct nvgpu_event_id_ctrl_args) #define NVGPU_TSG_IOCTL_LAST \ - _IOC_NR(NVGPU_IOCTL_TSG_SET_PRIORITY) + _IOC_NR(NVGPU_IOCTL_TSG_EVENT_ID_CTRL) + + /* * /dev/nvhost-dbg-gpu device * -- cgit v1.2.2