summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm206/bios_gm206.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2016-09-20 11:48:16 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2016-10-09 16:03:35 -0400
commit697fe17dd612769633f8c93e37b65cc51966d7e7 (patch)
treecbf09661d91c10ca9149f40661aab119a7850302 /drivers/gpu/nvgpu/gm206/bios_gm206.c
parent4cff26cd5b0096eeb26114cf36df8e2cb91821a8 (diff)
gpu: nvgpu: Suppress error msg from VBIOS overlay
Suppress error message when nvgpu tries to load VBIOS overlay, but one is not found. This situation is normal. This is done by moving gk20a_request_firmware() to be nvgpu generic function nvgpu_request_firmware(), and adding a NO_WARN flag to it. Introduce also a NO_SOC flag to suppress attempt to load firmware from SoC specific directory in addition to the chip specific directory. Use it for dGPU firmware files. Bug 200236777 Change-Id: I0294d3308f029a6a6d3c2effa579d5f69a91e418 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1223840 (cherry picked from commit cca44c3f010f15918cdd2259c15170ba1917828a) Reviewed-on: http://git-master/r/1233353 GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gm206/bios_gm206.c')
-rw-r--r--drivers/gpu/nvgpu/gm206/bios_gm206.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm206/bios_gm206.c b/drivers/gpu/nvgpu/gm206/bios_gm206.c
index 6a509b04..a8f3f1d5 100644
--- a/drivers/gpu/nvgpu/gm206/bios_gm206.c
+++ b/drivers/gpu/nvgpu/gm206/bios_gm206.c
@@ -24,6 +24,7 @@
24#include "hw_xve_gm206.h" 24#include "hw_xve_gm206.h"
25#include "hw_top_gm206.h" 25#include "hw_top_gm206.h"
26#include "bios_gm206.h" 26#include "bios_gm206.h"
27#include "nvgpu_common.h"
27 28
28#define BIT_HEADER_ID 0xb8ff 29#define BIT_HEADER_ID 0xb8ff
29#define BIT_HEADER_SIGNATURE 0x00544942 30#define BIT_HEADER_SIGNATURE 0x00544942
@@ -739,7 +740,9 @@ static int gm206_bios_init(struct gk20a *g)
739 740
740 snprintf(rom_name, sizeof(rom_name), BIOS_OVERLAY_NAME, pdev->device); 741 snprintf(rom_name, sizeof(rom_name), BIOS_OVERLAY_NAME, pdev->device);
741 gk20a_dbg_info("checking for VBIOS overlay %s", rom_name); 742 gk20a_dbg_info("checking for VBIOS overlay %s", rom_name);
742 bios_fw = gk20a_request_firmware(g, rom_name); 743 bios_fw = nvgpu_request_firmware(g, rom_name,
744 NVGPU_REQUEST_FIRMWARE_NO_WARN |
745 NVGPU_REQUEST_FIRMWARE_NO_SOC);
743 if (bios_fw) { 746 if (bios_fw) {
744 gk20a_dbg_info("using VBIOS overlay"); 747 gk20a_dbg_info("using VBIOS overlay");
745 g->bios.size = bios_fw->size - ROM_FILE_PAYLOAD_OFFSET; 748 g->bios.size = bios_fw->size - ROM_FILE_PAYLOAD_OFFSET;