summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106/bios_gp106.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-11-07 12:40:15 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-11-08 01:19:05 -0500
commita51219e526cca5fdee33faf25268662bdd9453cb (patch)
treec5fb8e63a972dd849eb9492104c32cbdc83a41aa /drivers/gpu/nvgpu/gp106/bios_gp106.c
parentac5d3fcf04c9599626fd205aa4e85536390841a1 (diff)
gpu: nvgpu: Store VBIOS version in g->bios
Store VBIOS version in g->bios instead of GPU characteristics. This removes a few Linux dependencies from common code, because GPU characteristics is defined in Linux IOCTL header. JIRA NVGPU-259 Change-Id: I9aab3d37b7ca000edd59c92b8601a96ee288e2bb Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1593684 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/bios_gp106.c')
-rw-r--r--drivers/gpu/nvgpu/gp106/bios_gp106.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gp106/bios_gp106.c b/drivers/gpu/nvgpu/gp106/bios_gp106.c
index d42f2e14..8511d3c2 100644
--- a/drivers/gpu/nvgpu/gp106/bios_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/bios_gp106.c
@@ -211,9 +211,9 @@ int gp106_bios_init(struct gk20a *g)
211 if (err) 211 if (err)
212 goto free_firmware; 212 goto free_firmware;
213 213
214 if (g->gpu_characteristics.vbios_version < g->vbios_min_version) { 214 if (g->bios.vbios_version < g->vbios_min_version) {
215 nvgpu_err(g, "unsupported VBIOS version %08x", 215 nvgpu_err(g, "unsupported VBIOS version %08x",
216 g->gpu_characteristics.vbios_version); 216 g->bios.vbios_version);
217 err = -EINVAL; 217 err = -EINVAL;
218 goto free_firmware; 218 goto free_firmware;
219 } 219 }