summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/acr_gm20b.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2018-08-29 12:42:41 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-08-31 21:57:15 -0400
commitb25d5d86caa049201ddcea77cf1a733a85090698 (patch)
tree949766369ec1cd28f993f9d7c936fdc5e5e96139 /drivers/gpu/nvgpu/gm20b/acr_gm20b.c
parent0dc9daf28e3fe6831bc535c8a45d28d974a11dad (diff)
gpu: nvgpu: Use debug sig for NVDEC if on dbg SKU
Debug fused chips do not have production signature. Use debug signature for memory unlock binary. Requires also exporting a HAL for checking debug mode from PMU. Bug 200445202 Change-Id: I7f88ed6db2fe1c614fe9d4074dbf974c3817f453 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1809225 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/acr_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/acr_gm20b.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/acr_gm20b.c b/drivers/gpu/nvgpu/gm20b/acr_gm20b.c
index 9725ebe7..24112dd3 100644
--- a/drivers/gpu/nvgpu/gm20b/acr_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/acr_gm20b.c
@@ -1141,12 +1141,6 @@ err_release_acr_fw:
1141 return err; 1141 return err;
1142} 1142}
1143 1143
1144static u8 pmu_is_debug_mode_en(struct gk20a *g)
1145{
1146 u32 ctl_stat = gk20a_readl(g, pwr_pmu_scpctl_stat_r());
1147 return pwr_pmu_scpctl_stat_debug_mode_v(ctl_stat);
1148}
1149
1150/* 1144/*
1151 * @brief Patch signatures into ucode image 1145 * @brief Patch signatures into ucode image
1152 */ 1146 */
@@ -1160,7 +1154,7 @@ int acr_ucode_patch_sig(struct gk20a *g,
1160 unsigned int i, *p_sig; 1154 unsigned int i, *p_sig;
1161 nvgpu_pmu_dbg(g, " "); 1155 nvgpu_pmu_dbg(g, " ");
1162 1156
1163 if (!pmu_is_debug_mode_en(g)) { 1157 if (!g->ops.pmu.is_debug_mode_enabled(g)) {
1164 p_sig = p_prod_sig; 1158 p_sig = p_prod_sig;
1165 nvgpu_pmu_dbg(g, "PRODUCTION MODE\n"); 1159 nvgpu_pmu_dbg(g, "PRODUCTION MODE\n");
1166 } else { 1160 } else {