summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
diff options
context:
space:
mode:
authorThomas Fleury <tfleury@nvidia.com>2018-05-23 14:29:08 -0400
committerTejal Kudav <tkudav@nvidia.com>2018-06-14 09:44:06 -0400
commit943e3158bc2071757677e184e715baec620b6683 (patch)
tree69eb089773f57305037dbb0a2c8f5e4dc0202342 /drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
parent69f481ded8ccb65e01effa5fe3b8ea7771e8defe (diff)
gpu: nvgpu: add g->fifo_eng_timeout_us
Add g->fifo_eng_timeout_us to define engine timeout in microseconds. It is initialized with GRFIFO_TIMEOUT_CHECK_PERIOD_US. In RM server case, it can be overriden with value defined in device tree. Jira EVLR-2674 Change-Id: I69ac2ce779fe575566c8ba48e8cd2d0e6b2d93cf Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1728391 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/fifo_gv11b.c')
-rw-r--r--drivers/gpu/nvgpu/gv11b/fifo_gv11b.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
index fd014971..fdd9ecf0 100644
--- a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
@@ -1231,7 +1231,7 @@ int gv11b_init_fifo_reset_enable_hw(struct gk20a *g)
1231 1231
1232 if (nvgpu_platform_is_silicon(g)) { 1232 if (nvgpu_platform_is_silicon(g)) {
1233 /* enable ctxsw timeout */ 1233 /* enable ctxsw timeout */
1234 timeout = GRFIFO_TIMEOUT_CHECK_PERIOD_US; 1234 timeout = g->fifo_eng_timeout_us;
1235 timeout = scale_ptimer(timeout, 1235 timeout = scale_ptimer(timeout,
1236 ptimer_scalingfactor10x(g->ptimer_src_freq)); 1236 ptimer_scalingfactor10x(g->ptimer_src_freq));
1237 timeout |= fifo_eng_ctxsw_timeout_detection_enabled_f(); 1237 timeout |= fifo_eng_ctxsw_timeout_detection_enabled_f();