summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2014-06-11 07:15:54 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:10:16 -0400
commite6eb4b59f6e8753c64133a4b86c6278ceef98e93 (patch)
tree9c718a8a033e559daf4fc90cee2bc4429c788c32 /drivers/gpu/nvgpu/gk20a/channel_gk20a.c
parent6f492c3834fe18fe3d00d0024b8178250bed7276 (diff)
gpu: nvgpu: add kernel APIs for TSG support
Add support to create/destroy TSGs using node "/dev/nvhost-tsg-gpu" Provide below IOCTLs to bind/unbind channels to/from TSGs : NVGPU_TSG_IOCTL_BIND_CHANNEL NVGPU_TSG_IOCTL_UNBIND_CHANNEL Bug 1470692 Change-Id: Iaf9f16a522379eb943906624548f8d28fc6d4486 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/416610
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
index 486e815c..ef7195a7 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
@@ -747,6 +747,9 @@ static struct channel_gk20a *gk20a_open_new_channel(struct gk20a *g)
747 g->ops.fifo.bind_channel(ch); 747 g->ops.fifo.bind_channel(ch);
748 ch->pid = current->pid; 748 ch->pid = current->pid;
749 749
750 /* By default, channel is regular (non-TSG) channel */
751 ch->tsgid = NVGPU_INVALID_TSG_ID;
752
750 /* reset timeout counter and update timestamp */ 753 /* reset timeout counter and update timestamp */
751 ch->timeout_accumulated_ms = 0; 754 ch->timeout_accumulated_ms = 0;
752 ch->timeout_gpfifo_get = 0; 755 ch->timeout_gpfifo_get = 0;