diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp106')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/bios_gp106.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gp106/bios_gp106.c b/drivers/gpu/nvgpu/gp106/bios_gp106.c index e30baf38..09d7b9af 100644 --- a/drivers/gpu/nvgpu/gp106/bios_gp106.c +++ b/drivers/gpu/nvgpu/gp106/bios_gp106.c | |||
@@ -196,7 +196,9 @@ int gp106_bios_init(struct gk20a *g) | |||
196 | g->bios.data = nvgpu_vmalloc(g, BIOS_SIZE); | 196 | g->bios.data = nvgpu_vmalloc(g, BIOS_SIZE); |
197 | if (!g->bios.data) | 197 | if (!g->bios.data) |
198 | return -ENOMEM; | 198 | return -ENOMEM; |
199 | g->ops.xve.disable_shadow_rom(g); | 199 | |
200 | if (g->ops.xve.disable_shadow_rom) | ||
201 | g->ops.xve.disable_shadow_rom(g); | ||
200 | for (i = 0; i < g->bios.size/4; i++) { | 202 | for (i = 0; i < g->bios.size/4; i++) { |
201 | u32 val = be32_to_cpu(gk20a_readl(g, 0x300000 + i*4)); | 203 | u32 val = be32_to_cpu(gk20a_readl(g, 0x300000 + i*4)); |
202 | 204 | ||
@@ -205,7 +207,8 @@ int gp106_bios_init(struct gk20a *g) | |||
205 | g->bios.data[(i*4)+2] = (val >> 8) & 0xff; | 207 | g->bios.data[(i*4)+2] = (val >> 8) & 0xff; |
206 | g->bios.data[(i*4)+3] = val & 0xff; | 208 | g->bios.data[(i*4)+3] = val & 0xff; |
207 | } | 209 | } |
208 | g->ops.xve.enable_shadow_rom(g); | 210 | if (g->ops.xve.enable_shadow_rom) |
211 | g->ops.xve.enable_shadow_rom(g); | ||
209 | 212 | ||
210 | err = nvgpu_bios_parse_rom(g); | 213 | err = nvgpu_bios_parse_rom(g); |
211 | if (err) | 214 | if (err) |