summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
index 793c97c3..1ee9b59a 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
@@ -247,7 +247,8 @@ u32 channel_gk20a_pbdma_acquire_val(struct channel_gk20a *c)
247 return val; 247 return val;
248 248
249 timeout = gk20a_get_channel_watchdog_timeout(c); 249 timeout = gk20a_get_channel_watchdog_timeout(c);
250 do_div(timeout, 2); /* set acquire timeout to half of channel wdt */ 250 timeout *= 80UL;
251 do_div(timeout, 100); /* set acquire timeout to 80% of channel wdt */
251 timeout *= 1000000UL; /* ms -> ns */ 252 timeout *= 1000000UL; /* ms -> ns */
252 do_div(timeout, 1024); /* in unit of 1024ns */ 253 do_div(timeout, 1024); /* in unit of 1024ns */
253 val_len = fls(timeout >> 32) + 32; 254 val_len = fls(timeout >> 32) + 32;