gpu: nvgpu: Add flag for running preos ucode

Add per-platform flag run_preos, which indicates whether to run
preos ucode or not. Leave it to false for all known boards.

Bug 1799537
Bug 1815139

Change-Id: I1818970b0f70f636277443d6de199d3683fc565a
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1233410
(cherry picked from commit 8bea05dbfa64af88587edb8927a8ec71c6b0d807)
Reviewed-on: http://git-master/r/1239956
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Terje Bergstrom
2016-10-07 15:07:07 -07:00
committed by mobile promotions
parent f5ed470794
commit 55dba9f1a9
2 changed files with 9 additions and 4 deletions

View File

@@ -227,6 +227,9 @@ struct gk20a_platform {
/* minimum supported VBIOS version */ /* minimum supported VBIOS version */
u32 vbios_min_version; u32 vbios_min_version;
/* true if we run preos microcode on this board */
bool run_preos;
}; };
static inline struct gk20a_platform *gk20a_get_platform( static inline struct gk20a_platform *gk20a_get_platform(

View File

@@ -918,10 +918,12 @@ static int gm206_bios_init(struct gk20a *g)
return err; return err;
} }
err = gm206_bios_preos(g); if (platform->run_preos) {
if (err) { err = gm206_bios_preos(g);
gk20a_err(g->dev, "pre-os failed"); if (err) {
return err; gk20a_err(g->dev, "pre-os failed");
return err;
}
} }
return 0; return 0;