summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm206/acr_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/acr_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/acr_gm206.c')
-rw-r--r--drivers/gpu/nvgpu/gm206/acr_gm206.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm206/acr_gm206.c b/drivers/gpu/nvgpu/gm206/acr_gm206.c
index 39b30ea6..872ff601 100644
--- a/drivers/gpu/nvgpu/gm206/acr_gm206.c
+++ b/drivers/gpu/nvgpu/gm206/acr_gm206.c
@@ -25,6 +25,7 @@
25#include "hw_pwr_gm206.h" 25#include "hw_pwr_gm206.h"
26#include "acr.h" 26#include "acr.h"
27#include "acr_gm206.h" 27#include "acr_gm206.h"
28#include "nvgpu_common.h"
28 29
29/*Defines*/ 30/*Defines*/
30#define gm206_dbg_pmu(fmt, arg...) \ 31#define gm206_dbg_pmu(fmt, arg...) \
@@ -226,7 +227,9 @@ static int gm206_bootstrap_hs_flcn(struct gk20a *g)
226 227
227 if (!acr_fw) { 228 if (!acr_fw) {
228 /*First time init case*/ 229 /*First time init case*/
229 acr_fw = gk20a_request_firmware(g, GM20B_HSBIN_PMU_UCODE_IMAGE); 230 acr_fw = nvgpu_request_firmware(g,
231 GM20B_HSBIN_PMU_UCODE_IMAGE,
232 NVGPU_REQUEST_FIRMWARE_NO_SOC);
230 if (!acr_fw) { 233 if (!acr_fw) {
231 gk20a_err(dev_from_gk20a(g), "pmu ucode get fail"); 234 gk20a_err(dev_from_gk20a(g), "pmu ucode get fail");
232 return -ENOENT; 235 return -ENOENT;