mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: gsp: gsp isr and debug trace support
- Created GSP NVRISCV interrupt handle and respective functions and register reads. - Created Debug trace support for GSP firmware. NVGPU-7084 Signed-off-by: Ramesh Mylavarapu <rmylavarapu@nvidia.com> Change-Id: I2728150c4db00403aa6e3c043bc19c51677dd9cf Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2589430 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
2afd601a40
commit
ffd0d3962f
@@ -96,13 +96,6 @@ static int gsp_ucode_load_and_bootstrap(struct gk20a *g,
|
||||
|
||||
nvgpu_log_fn(g, " ");
|
||||
|
||||
/* core reset */
|
||||
err = nvgpu_falcon_reset(flcn);
|
||||
if (err != 0) {
|
||||
nvgpu_err(g, "gsp core reset failed err=%d", err);
|
||||
goto exit;
|
||||
}
|
||||
|
||||
g->ops.falcon.set_bcr(flcn);
|
||||
err = nvgpu_falcon_get_mem_size(flcn, MEM_DMEM, &dmem_size);
|
||||
if (err != 0) {
|
||||
@@ -225,6 +218,16 @@ int gsp_bootstrap_ns(struct gk20a *g, struct nvgpu_gsp *gsp)
|
||||
goto exit;
|
||||
}
|
||||
|
||||
/* core reset */
|
||||
err = nvgpu_falcon_reset(gsp->gsp_flcn);
|
||||
if (err != 0) {
|
||||
nvgpu_err(g, "gsp core reset failed err=%d", err);
|
||||
goto exit;
|
||||
}
|
||||
|
||||
/* Enable required interrupts support and isr */
|
||||
nvgpu_gsp_isr_support(g, true);
|
||||
|
||||
err = gsp_ucode_load_and_bootstrap(g, gsp->gsp_flcn, gsp_ucode);
|
||||
if (err != 0) {
|
||||
nvgpu_err(g, "gsp load and bootstrap failed");
|
||||
|
||||
Reference in New Issue
Block a user