From e52c6ac1f2a8abfd51f933598b6368711c42a9fa Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 11 Jan 2017 10:55:30 -0800 Subject: gpu: nvgpu: Bump semaphore timeout Semaphore acquire timeout is configured to half of watchdog timeout. This is too short, so bump it to 80% of watchdog timeout. Bug 200261389 Change-Id: Ie906ea3d3520c2e3f547cff7ffbb1e37459e6d2f Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1283623 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers') 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) return val; timeout = gk20a_get_channel_watchdog_timeout(c); - do_div(timeout, 2); /* set acquire timeout to half of channel wdt */ + timeout *= 80UL; + do_div(timeout, 100); /* set acquire timeout to 80% of channel wdt */ timeout *= 1000000UL; /* ms -> ns */ do_div(timeout, 1024); /* in unit of 1024ns */ val_len = fls(timeout >> 32) + 32; -- cgit v1.2.2