diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-03-16 18:36:28 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-04-04 22:00:45 -0400 |
commit | 29ff732702dbf146e99e69dc062a4d82f2040f6e (patch) | |
tree | 48eee534dce8f3691f8bde11338037c6a0563bb4 | |
parent | 78d8f8fe366d521e1acb62a96ca5f0d72e15c8f5 (diff) |
gpu: nvgpu: Infinite syncpt wait on presilicon
On presilicon, syncpt waits should have infinite timeout.
Change-Id: Ifa9b2fa0ef164e2f87a631bca77941e995b06ad4
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/717947
Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com>
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fence_gk20a.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fence_gk20a.c b/drivers/gpu/nvgpu/gk20a/fence_gk20a.c index 1c34d803..def916b3 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) | |||
64 | 64 | ||
65 | int gk20a_fence_wait(struct gk20a_fence *f, int timeout) | 65 | int gk20a_fence_wait(struct gk20a_fence *f, int timeout) |
66 | { | 66 | { |
67 | if (!tegra_platform_is_silicon()) | ||
68 | timeout = (u32)MAX_SCHEDULE_TIMEOUT; | ||
67 | return f->ops->wait(f, timeout); | 69 | return f->ops->wait(f, timeout); |
68 | } | 70 | } |
69 | 71 | ||