mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
d0a77f558e
commit
dfd42c2b28
@@ -153,7 +153,7 @@ static int gm206_bios_preos(struct gk20a *g)
|
||||
nvgpu_flcn_bootstrap(g->pmu.flcn, g->bios.preos.code_entry_point);
|
||||
|
||||
if (nvgpu_flcn_wait_for_halt(g->pmu.flcn,
|
||||
PMU_BOOT_TIMEOUT_MAX / PMU_BOOT_TIMEOUT_DEFAULT)) {
|
||||
PMU_BOOT_TIMEOUT_MAX / 1000)) {
|
||||
err = -ETIMEDOUT;
|
||||
goto out;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user