diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2017-07-06 02:55:38 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-07-07 13:35:37 -0400 |
commit | dfd42c2b2800a9d4c0d99a1694e7040346418aaf (patch) | |
tree | 27577ffe78e0cb7ddb0405d83553249b3c352d6f /drivers/gpu/nvgpu/gm206 | |
parent | d0a77f558ef8d101059c6238abd46a9a97191564 (diff) |
gpu: nvgpu: use correct units for bios wait
nvgpu_flcn_wait_for_halt() takes a timeout value in milliseconds, so
pass it the millisecond value instead of number of iterations to sleep
if one iteration took a specific amount of time, a bug left over from
refactoring.
Change-Id: Ifddea16522c14c52d765f1c1bfaa69d1f7dfd011
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: https://git-master/r/1514396
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm206')
-rw-r--r-- | drivers/gpu/nvgpu/gm206/bios_gm206.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm206/bios_gm206.c b/drivers/gpu/nvgpu/gm206/bios_gm206.c index bcc46c83..9407bf3a 100644 --- a/drivers/gpu/nvgpu/gm206/bios_gm206.c +++ b/drivers/gpu/nvgpu/gm206/bios_gm206.c | |||
@@ -153,7 +153,7 @@ static int gm206_bios_preos(struct gk20a *g) | |||
153 | nvgpu_flcn_bootstrap(g->pmu.flcn, g->bios.preos.code_entry_point); | 153 | nvgpu_flcn_bootstrap(g->pmu.flcn, g->bios.preos.code_entry_point); |
154 | 154 | ||
155 | if (nvgpu_flcn_wait_for_halt(g->pmu.flcn, | 155 | if (nvgpu_flcn_wait_for_halt(g->pmu.flcn, |
156 | PMU_BOOT_TIMEOUT_MAX / PMU_BOOT_TIMEOUT_DEFAULT)) { | 156 | PMU_BOOT_TIMEOUT_MAX / 1000)) { |
157 | err = -ETIMEDOUT; | 157 | err = -ETIMEDOUT; |
158 | goto out; | 158 | goto out; |
159 | } | 159 | } |