gpu: nvgpu: gsp: bootstrap gsp scheduler firmware

This change will call nvgpu_gsp_sched_bootstrap_hs which will bootstrap
the gsp with gsp scheduler firmware.

NVGPU-9297

Change-Id: If5de945dc7994666fd87ecf99e15ca2014c13573
Signed-off-by: rmylavarapu <rmylavarapu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2826165
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
rmylavarapu
2022-12-12 11:07:27 +00:00
committed by mobile promotions
parent e9c6bcaf5c
commit 7bbf10b04a
4 changed files with 4 additions and 3 deletions

View File

@@ -168,7 +168,7 @@ de_init:
return err; return err;
} }
int nvgpu_gsp_sched_bootstrap_ns(struct gk20a *g) int nvgpu_gsp_sched_bootstrap_hs(struct gk20a *g)
{ {
struct nvgpu_gsp_sched *gsp_sched = g->gsp_sched; struct nvgpu_gsp_sched *gsp_sched = g->gsp_sched;
int status = 0; int status = 0;

View File

@@ -995,6 +995,7 @@ int nvgpu_finalize_poweron(struct gk20a *g)
#ifdef CONFIG_NVGPU_GSP_SCHEDULER #ifdef CONFIG_NVGPU_GSP_SCHEDULER
/* Init gsp ops */ /* Init gsp ops */
NVGPU_INIT_TABLE_ENTRY(&nvgpu_gsp_sched_sw_init, NVGPU_SUPPORT_GSP_SCHED), NVGPU_INIT_TABLE_ENTRY(&nvgpu_gsp_sched_sw_init, NVGPU_SUPPORT_GSP_SCHED),
NVGPU_INIT_TABLE_ENTRY(&nvgpu_gsp_sched_bootstrap_hs, NVGPU_SUPPORT_GSP_SCHED),
#endif #endif
#ifndef CONFIG_NVGPU_DGPU #ifndef CONFIG_NVGPU_DGPU
#ifdef CONFIG_NVGPU_GSP_STRESS_TEST #ifdef CONFIG_NVGPU_GSP_STRESS_TEST

View File

@@ -99,7 +99,7 @@ struct nvgpu_gsp_domain_info {
struct nvgpu_gsp_runlist_info runlist_info[TOTAL_NO_OF_RUNLISTS]; struct nvgpu_gsp_runlist_info runlist_info[TOTAL_NO_OF_RUNLISTS];
}; };
int nvgpu_gsp_sched_bootstrap_ns(struct gk20a *g); int nvgpu_gsp_sched_bootstrap_hs(struct gk20a *g);
int nvgpu_gsp_sched_sw_init(struct gk20a *g); int nvgpu_gsp_sched_sw_init(struct gk20a *g);
void nvgpu_gsp_sched_sw_deinit(struct gk20a *g); void nvgpu_gsp_sched_sw_deinit(struct gk20a *g);
void nvgpu_gsp_sched_suspend(struct gk20a *g, struct nvgpu_gsp_sched *gsp_sched); void nvgpu_gsp_sched_suspend(struct gk20a *g, struct nvgpu_gsp_sched *gsp_sched);

View File

@@ -524,7 +524,7 @@ void nvgpu_cg_elcg_ce_load_enable(struct gk20a *g);
* *
* Checks the platform software capability slcg_enabled and programs registers * Checks the platform software capability slcg_enabled and programs registers
* for configuring production gating values for SLCG for GSP. This is called * for configuring production gating values for SLCG for GSP. This is called
* in #nvgpu_gsp_sched_bootstrap_ns. * in #nvgpu_gsp_sched_bootstrap_hs.
* *
* Steps: * Steps:
* - Acquire the mutex #cg_pg_lock. * - Acquire the mutex #cg_pg_lock.