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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
index a68968fe..f50c37a7 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
@@ -645,6 +645,9 @@ struct channel_gk20a *gk20a_open_new_channel(struct gk20a *g,
645 /* Channel privilege level */ 645 /* Channel privilege level */
646 ch->is_privileged_channel = is_privileged_channel; 646 ch->is_privileged_channel = is_privileged_channel;
647 647
648 ch->pid = nvgpu_current_tid(g);
649 ch->tgid = nvgpu_current_pid(g); /* process granularity for FECS traces */
650
648 if (g->ops.fifo.alloc_inst(g, ch)) { 651 if (g->ops.fifo.alloc_inst(g, ch)) {
649 ch->g = NULL; 652 ch->g = NULL;
650 free_channel(f, ch); 653 free_channel(f, ch);
@@ -656,9 +659,6 @@ struct channel_gk20a *gk20a_open_new_channel(struct gk20a *g,
656 /* now the channel is in a limbo out of the free list but not marked as 659 /* now the channel is in a limbo out of the free list but not marked as
657 * alive and used (i.e. get-able) yet */ 660 * alive and used (i.e. get-able) yet */
658 661
659 ch->pid = nvgpu_current_tid(g);
660 ch->tgid = nvgpu_current_pid(g); /* process granularity for FECS traces */
661
662 /* By default, channel is regular (non-TSG) channel */ 662 /* By default, channel is regular (non-TSG) channel */
663 ch->tsgid = NVGPU_INVALID_TSG_ID; 663 ch->tsgid = NVGPU_INVALID_TSG_ID;
664 664