diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-02-19 12:41:14 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-04-04 21:07:36 -0400 |
commit | ecaa5c1b1fc298877ea54d8d8b02e75684f555af (patch) | |
tree | 2d22239514910c8e4922c1d4fa1b8864fa1ebc72 /drivers/gpu/nvgpu/gk20a/ltc_gk20a.c | |
parent | f9fd5bbabe0d188a06d25bacdb18b91ef65a147d (diff) |
gpu: nvgpu: Do not return timedout in emulation
We have infinite timeouts for loops in emulation. Some functions with
the loops still return error if we exceed the original retry count.
Change-Id: I1f9ddbfc0acd9f30f6bd49d9e748d8d8fbefa154
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/709491
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ltc_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/ltc_gk20a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c b/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c index 4c6543bb..4359f282 100644 --- a/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c | |||
@@ -217,7 +217,7 @@ static void gk20a_mm_g_elpg_flush_locked(struct gk20a *g) | |||
217 | break; | 217 | break; |
218 | } while (retry >= 0 || !tegra_platform_is_silicon()); | 218 | } while (retry >= 0 || !tegra_platform_is_silicon()); |
219 | 219 | ||
220 | if (retry < 0) | 220 | if (tegra_platform_is_silicon() && retry < 0) |
221 | gk20a_warn(dev_from_gk20a(g), | 221 | gk20a_warn(dev_from_gk20a(g), |
222 | "g_elpg_flush too many retries"); | 222 | "g_elpg_flush too many retries"); |
223 | 223 | ||