From 29ff732702dbf146e99e69dc062a4d82f2040f6e Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Mon, 16 Mar 2015 15:36:28 -0700 Subject: [PATCH] gpu: nvgpu: Infinite syncpt wait on presilicon On presilicon, syncpt waits should have infinite timeout. Change-Id: Ifa9b2fa0ef164e2f87a631bca77941e995b06ad4 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/717947 Reviewed-by: Kirill Artamonov --- drivers/gpu/nvgpu/gk20a/fence_gk20a.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/nvgpu/gk20a/fence_gk20a.c b/drivers/gpu/nvgpu/gk20a/fence_gk20a.c index 1c34d8035..def916b32 100644 --- a/drivers/gpu/nvgpu/gk20a/fence_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fence_gk20a.c @@ -64,6 +64,8 @@ struct gk20a_fence *gk20a_fence_get(struct gk20a_fence *f) int gk20a_fence_wait(struct gk20a_fence *f, int timeout) { + if (!tegra_platform_is_silicon()) + timeout = (u32)MAX_SCHEDULE_TIMEOUT; return f->ops->wait(f, timeout); }