diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index 46cbfd8c..9e4d3c37 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -8077,6 +8077,7 @@ bool gk20a_is_channel_ctx_resident(struct channel_gk20a *ch) | |||
8077 | struct gk20a *g = ch->g; | 8077 | struct gk20a *g = ch->g; |
8078 | struct channel_gk20a *curr_ch; | 8078 | struct channel_gk20a *curr_ch; |
8079 | bool ret = false; | 8079 | bool ret = false; |
8080 | struct tsg_gk20a *tsg; | ||
8080 | 8081 | ||
8081 | curr_gr_ctx = gk20a_readl(g, gr_fecs_current_ctx_r()); | 8082 | curr_gr_ctx = gk20a_readl(g, gr_fecs_current_ctx_r()); |
8082 | 8083 | ||
@@ -8108,7 +8109,8 @@ bool gk20a_is_channel_ctx_resident(struct channel_gk20a *ch) | |||
8108 | ret = true; | 8109 | ret = true; |
8109 | } | 8110 | } |
8110 | 8111 | ||
8111 | if (gk20a_is_channel_marked_as_tsg(ch) && (ch->tsgid == curr_gr_tsgid)) { | 8112 | tsg = tsg_gk20a_from_ch(ch); |
8113 | if ((tsg != NULL) && (tsg->tsgid == curr_gr_tsgid)) { | ||
8112 | ret = true; | 8114 | ret = true; |
8113 | } | 8115 | } |
8114 | 8116 | ||