gpu: nvgpu: add compatible VBIOS version for PG189

Compatible VBIOS version for PG189 is .5A, but it must still boot
with VBIOS .18 and higher.

Added a vbios_compatible_version field in platform descriptor.

Do not boot if VBIOS version is < vbios_min_version.
Otherwise, warn if VBIOS version is not vbios_compatible_version.

Bug 2500899

Change-Id: Ib6be2d1da96221def7784c28f362b904ce770231
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2079527
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Thomas Fleury
2019-03-22 14:39:49 -07:00
committed by mobile promotions
parent 434931799a
commit c5f8edd8bf
5 changed files with 19 additions and 1 deletions

View File

@@ -274,9 +274,16 @@ struct gk20a_platform {
*/
u64 dma_mask;
/* minimum supported VBIOS version */
/* minimum supported VBIOS version.
* nvgpu driver is not loaded if VBIOS < min VBIOS version
*/
u32 vbios_min_version;
/* blessed VBIOS version
* if defined, a warning is given if VBIOS differs.
*/
u32 vbios_compatible_version;
/* true if we run preos microcode on this board */
bool run_preos;