summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b')
-rw-r--r--drivers/gpu/nvgpu/gv11b/fifo_gv11b.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
index f30f2ae1..fcf05306 100644
--- a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
@@ -913,8 +913,13 @@ int gv11b_fifo_preempt_tsg(struct gk20a *g, u32 tsgid)
913 913
914 nvgpu_mutex_release(&f->runlist_info[runlist_id].runlist_lock); 914 nvgpu_mutex_release(&f->runlist_info[runlist_id].runlist_lock);
915 915
916 if (ret) 916 if (ret) {
917 gk20a_fifo_preempt_timeout_rc(g, tsgid, true); 917 if (nvgpu_platform_is_silicon(g))
918 nvgpu_err(g, "preempt timed out for tsgid: %u, "
919 "ctxsw timeout will trigger recovery if needed", tsgid);
920 else
921 gk20a_fifo_preempt_timeout_rc(g, tsgid, true);
922 }
918 923
919 return ret; 924 return ret;
920} 925}