summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/fifo/tsg.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/fifo/tsg.c')
-rw-r--r--drivers/gpu/nvgpu/common/fifo/tsg.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/fifo/tsg.c b/drivers/gpu/nvgpu/common/fifo/tsg.c
index 65cee225..f6c718f0 100644
--- a/drivers/gpu/nvgpu/common/fifo/tsg.c
+++ b/drivers/gpu/nvgpu/common/fifo/tsg.c
@@ -158,7 +158,7 @@ int gk20a_tsg_unbind_channel(struct channel_gk20a *ch)
158 return -EINVAL; 158 return -EINVAL;
159 } 159 }
160 160
161 err = g->ops.fifo.tsg_unbind_channel(ch); 161 err = gk20a_fifo_tsg_unbind_channel(ch);
162 if (err) { 162 if (err) {
163 nvgpu_err(g, "Channel %d unbind failed, tearing down TSG %d", 163 nvgpu_err(g, "Channel %d unbind failed, tearing down TSG %d",
164 ch->chid, tsg->tsgid); 164 ch->chid, tsg->tsgid);
@@ -172,6 +172,11 @@ int gk20a_tsg_unbind_channel(struct channel_gk20a *ch)
172 ch->tsgid = NVGPU_INVALID_TSG_ID; 172 ch->tsgid = NVGPU_INVALID_TSG_ID;
173 nvgpu_rwsem_up_write(&tsg->ch_list_lock); 173 nvgpu_rwsem_up_write(&tsg->ch_list_lock);
174 } 174 }
175
176 if (g->ops.fifo.tsg_unbind_channel != NULL) {
177 err = g->ops.fifo.tsg_unbind_channel(ch);
178 }
179
175 nvgpu_log(g, gpu_dbg_fn, "UNBIND tsg:%d channel:%d", 180 nvgpu_log(g, gpu_dbg_fn, "UNBIND tsg:%d channel:%d",
176 tsg->tsgid, ch->chid); 181 tsg->tsgid, ch->chid);
177 182