summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b
diff options
context:
space:
mode:
authorSeema Khowala <seemaj@nvidia.com>2018-07-10 14:32:02 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-07-19 16:55:14 -0400
commitea1a1942a63d57160565cab6638eacb85b8634ae (patch)
tree118a4bda97d9941bcc54c6168364eaa72cfe10f2 /drivers/gpu/nvgpu/gv11b
parentb1d0d8ece83ba0aa7b1e7ea9062eedc5cd9e4e33 (diff)
gpu: nvgpu: gv11b: do not issue preempt timeout rc
Since preempt timeout per pbdam/eng/runlist is set to fifo_eng_timeout_us converted to ms, there could be a scenario where preempt might time out. In case of preempt time out, do not issue recovery for si platform. ctxsw timeout will trigger recovery if needed. For non si platforms, issue preempt timeout rc if preempt times out. Bug 200426402 Change-Id: Ifd921280c0443ee9eda31157aaa03b481a529239 Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1775441 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
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}