From 697fe17dd612769633f8c93e37b65cc51966d7e7 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Tue, 20 Sep 2016 08:48:16 -0700 Subject: 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 Reviewed-on: http://git-master/r/1223840 (cherry picked from commit cca44c3f010f15918cdd2259c15170ba1917828a) Reviewed-on: http://git-master/r/1233353 GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/gm206/bios_gm206.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gm206/bios_gm206.c') 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 @@ #include "hw_xve_gm206.h" #include "hw_top_gm206.h" #include "bios_gm206.h" +#include "nvgpu_common.h" #define BIT_HEADER_ID 0xb8ff #define BIT_HEADER_SIGNATURE 0x00544942 @@ -739,7 +740,9 @@ static int gm206_bios_init(struct gk20a *g) snprintf(rom_name, sizeof(rom_name), BIOS_OVERLAY_NAME, pdev->device); gk20a_dbg_info("checking for VBIOS overlay %s", rom_name); - bios_fw = gk20a_request_firmware(g, rom_name); + bios_fw = nvgpu_request_firmware(g, rom_name, + NVGPU_REQUEST_FIRMWARE_NO_WARN | + NVGPU_REQUEST_FIRMWARE_NO_SOC); if (bios_fw) { gk20a_dbg_info("using VBIOS overlay"); g->bios.size = bios_fw->size - ROM_FILE_PAYLOAD_OFFSET; -- cgit v1.2.2