summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.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/gk20a/gr_gk20a.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/gk20a/gr_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index 883cacdc..9a201cb6 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -34,6 +34,7 @@
34#include "gk20a.h" 34#include "gk20a.h"
35#include "kind_gk20a.h" 35#include "kind_gk20a.h"
36#include "gr_ctx_gk20a.h" 36#include "gr_ctx_gk20a.h"
37#include "nvgpu_common.h"
37 38
38#include "hw_ccsr_gk20a.h" 39#include "hw_ccsr_gk20a.h"
39#include "hw_ctxsw_prog_gk20a.h" 40#include "hw_ctxsw_prog_gk20a.h"
@@ -2124,7 +2125,7 @@ int gr_gk20a_init_ctxsw_ucode(struct gk20a *g)
2124 u32 ucode_size; 2125 u32 ucode_size;
2125 int err = 0; 2126 int err = 0;
2126 2127
2127 fecs_fw = gk20a_request_firmware(g, GK20A_FECS_UCODE_IMAGE); 2128 fecs_fw = nvgpu_request_firmware(g, GK20A_FECS_UCODE_IMAGE, 0);
2128 if (!fecs_fw) { 2129 if (!fecs_fw) {
2129 gk20a_err(d, "failed to load fecs ucode!!"); 2130 gk20a_err(d, "failed to load fecs ucode!!");
2130 return -ENOENT; 2131 return -ENOENT;
@@ -2134,7 +2135,7 @@ int gr_gk20a_init_ctxsw_ucode(struct gk20a *g)
2134 fecs_boot_image = (void *)(fecs_fw->data + 2135 fecs_boot_image = (void *)(fecs_fw->data +
2135 sizeof(struct gk20a_ctxsw_bootloader_desc)); 2136 sizeof(struct gk20a_ctxsw_bootloader_desc));
2136 2137
2137 gpccs_fw = gk20a_request_firmware(g, GK20A_GPCCS_UCODE_IMAGE); 2138 gpccs_fw = nvgpu_request_firmware(g, GK20A_GPCCS_UCODE_IMAGE, 0);
2138 if (!gpccs_fw) { 2139 if (!gpccs_fw) {
2139 release_firmware(fecs_fw); 2140 release_firmware(fecs_fw);
2140 gk20a_err(d, "failed to load gpccs ucode!!"); 2141 gk20a_err(d, "failed to load gpccs ucode!!");