gpu: nvgpu: gsp sched: get the binary file names as per debug fuse

Changes
 1. Created gsp hal function to read the hardware config register
    to tell whether the board is debug fused.
 2. Created function to get the binary file names as per debug fuse.

NVGPU-9295
Bug 3897331

Signed-off-by: rmylavarapu <rmylavarapu@nvidia.com>
Change-Id: Ia8462aa6f3d8d0d538c06f35245c965e106b3d37
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2822443
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: Mahantesh Kumbar <mkumbar@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
rmylavarapu
2022-12-06 09:13:43 +00:00
committed by mobile promotions
parent 1840b95aca
commit 398a30a546
8 changed files with 39 additions and 11 deletions

View File

@@ -35,11 +35,15 @@
static void gsp_sched_get_file_names(struct gk20a *g, struct gsp_fw *gsp_ucode)
{
nvgpu_gsp_dbg(g, " ");
gsp_ucode->code_name = GSP_DBG_RISCV_FW_CODE;
gsp_ucode->data_name = GSP_DBG_RISCV_FW_DATA;
gsp_ucode->manifest_name = GSP_DBG_RISCV_FW_MANIFEST;
if (!g->ops.gsp.is_debug_mode_enabled(g)) {
gsp_ucode->code_name = SAFETY_SCHED_RISCV_FW_CODE_PROD;
gsp_ucode->data_name = SAFETY_SCHED_RISCV_FW_DATA_PROD;
gsp_ucode->manifest_name = SAFETY_SCHED_RISCV_FW_MANIFEST_PROD;
} else {
gsp_ucode->code_name = SAFETY_SCHED_RISCV_FW_CODE;
gsp_ucode->data_name = SAFETY_SCHED_RISCV_FW_DATA;
gsp_ucode->manifest_name = SAFETY_SCHED_RISCV_FW_MANIFEST;
}
}
void nvgpu_gsp_sched_suspend(struct gk20a *g, struct nvgpu_gsp_sched *gsp_sched)