summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/fifo_gk20a.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
index 7fc773f8..8e78b95e 100644
--- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
@@ -1908,7 +1908,7 @@ int gk20a_fifo_force_reset_ch(struct channel_gk20a *ch,
1908 return 0; 1908 return 0;
1909} 1909}
1910 1910
1911static int gk20a_fifo_tsg_unbind_channel_verify_status(struct channel_gk20a *ch) 1911int gk20a_fifo_tsg_unbind_channel_verify_status(struct channel_gk20a *ch)
1912{ 1912{
1913 struct gk20a *g = ch->g; 1913 struct gk20a *g = ch->g;
1914 1914
@@ -1939,9 +1939,11 @@ int gk20a_fifo_tsg_unbind_channel(struct channel_gk20a *ch)
1939 if (err) 1939 if (err)
1940 goto fail_enable_tsg; 1940 goto fail_enable_tsg;
1941 1941
1942 err = gk20a_fifo_tsg_unbind_channel_verify_status(ch); 1942 if (g->ops.fifo.tsg_verify_channel_status) {
1943 if (err) 1943 err = g->ops.fifo.tsg_verify_channel_status(ch);
1944 goto fail_enable_tsg; 1944 if (err)
1945 goto fail_enable_tsg;
1946 }
1945 1947
1946 /* Channel should be seen as TSG channel while updating runlist */ 1948 /* Channel should be seen as TSG channel while updating runlist */
1947 err = channel_gk20a_update_runlist(ch, false); 1949 err = channel_gk20a_update_runlist(ch, false);