diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2016-03-21 10:28:28 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-04-07 11:44:38 -0400 |
commit | 5f10073540acba056ccf905010dd400d8f32ca31 (patch) | |
tree | 4365f3e416dad7d9dae1801040b5274ae96bca44 /drivers/gpu/nvgpu/gk20a/tsg_gk20a.h | |
parent | e87ba53235151cccee181489ceb5e35b131e7d2d (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 'drivers/gpu/nvgpu/gk20a/tsg_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/tsg_gk20a.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h index 7e0a75d1..ac872e30 100644 --- a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h | |||
@@ -51,6 +51,9 @@ struct tsg_gk20a { | |||
51 | struct vm_gk20a *vm; | 51 | struct vm_gk20a *vm; |
52 | 52 | ||
53 | u32 interleave_level; | 53 | u32 interleave_level; |
54 | |||
55 | struct list_head event_id_list; | ||
56 | struct mutex event_id_list_lock; | ||
54 | }; | 57 | }; |
55 | 58 | ||
56 | int gk20a_enable_tsg(struct tsg_gk20a *tsg); | 59 | int gk20a_enable_tsg(struct tsg_gk20a *tsg); |