summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
index f50c37a7..2f5514a8 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
@@ -615,7 +615,8 @@ void __gk20a_channel_kill(struct channel_gk20a *ch)
615 615
616struct channel_gk20a *gk20a_open_new_channel(struct gk20a *g, 616struct channel_gk20a *gk20a_open_new_channel(struct gk20a *g,
617 s32 runlist_id, 617 s32 runlist_id,
618 bool is_privileged_channel) 618 bool is_privileged_channel,
619 pid_t pid, pid_t tid)
619{ 620{
620 struct fifo_gk20a *f = &g->fifo; 621 struct fifo_gk20a *f = &g->fifo;
621 struct channel_gk20a *ch; 622 struct channel_gk20a *ch;
@@ -645,8 +646,8 @@ struct channel_gk20a *gk20a_open_new_channel(struct gk20a *g,
645 /* Channel privilege level */ 646 /* Channel privilege level */
646 ch->is_privileged_channel = is_privileged_channel; 647 ch->is_privileged_channel = is_privileged_channel;
647 648
648 ch->pid = nvgpu_current_tid(g); 649 ch->pid = tid;
649 ch->tgid = nvgpu_current_pid(g); /* process granularity for FECS traces */ 650 ch->tgid = pid; /* process granularity for FECS traces */
650 651
651 if (g->ops.fifo.alloc_inst(g, ch)) { 652 if (g->ops.fifo.alloc_inst(g, ch)) {
652 ch->g = NULL; 653 ch->g = NULL;