summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/nvgpu.h
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2016-03-21 10:28:28 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2016-04-07 11:44:38 -0400
commit5f10073540acba056ccf905010dd400d8f32ca31 (patch)
tree4365f3e416dad7d9dae1801040b5274ae96bca44 /include/uapi/linux/nvgpu.h
parente87ba53235151cccee181489ceb5e35b131e7d2d (diff)
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 <dnibade@nvidia.com> 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 <bnihalani@nvidia.com>
Diffstat (limited to 'include/uapi/linux/nvgpu.h')
-rw-r--r--include/uapi/linux/nvgpu.h8
1 files changed, 6 insertions, 2 deletions
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 {
448 _IO(NVGPU_TSG_IOCTL_MAGIC, 5) 448 _IO(NVGPU_TSG_IOCTL_MAGIC, 5)
449#define NVGPU_IOCTL_TSG_SET_PRIORITY \ 449#define NVGPU_IOCTL_TSG_SET_PRIORITY \
450 _IOW(NVGPU_TSG_IOCTL_MAGIC, 6, struct nvgpu_set_priority_args) 450 _IOW(NVGPU_TSG_IOCTL_MAGIC, 6, struct nvgpu_set_priority_args)
451#define NVGPU_IOCTL_TSG_EVENT_ID_CTRL \
452 _IOWR(NVGPU_TSG_IOCTL_MAGIC, 7, struct nvgpu_event_id_ctrl_args)
451 453
452#define NVGPU_TSG_IOCTL_MAX_ARG_SIZE \ 454#define NVGPU_TSG_IOCTL_MAX_ARG_SIZE \
453 sizeof(struct nvgpu_set_priority_args) 455 sizeof(struct nvgpu_event_id_ctrl_args)
454#define NVGPU_TSG_IOCTL_LAST \ 456#define NVGPU_TSG_IOCTL_LAST \
455 _IOC_NR(NVGPU_IOCTL_TSG_SET_PRIORITY) 457 _IOC_NR(NVGPU_IOCTL_TSG_EVENT_ID_CTRL)
458
459
456/* 460/*
457 * /dev/nvhost-dbg-gpu device 461 * /dev/nvhost-dbg-gpu device
458 * 462 *