mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: gsp sched: enable gsp sw init for safety build
Changes 1. Remove dGPU flag dependency on calling gsp sw init on tot. 2. Created Enable flag for gsp scheduler to enable them on ga10b platforms. 3. Engine config flag is only enabled for dGPU enabled platforms, as gsp is using engine functions it need to be enabled for all gsp sched enabled builds. 4. Changes in gsp_sequence_init/de_init where on qnx we are seeing issues. NVGPU-9297 Change-Id: Ia4bce85ae8fd2794da1553e9ea418c76845a10ac Signed-off-by: rmylavarapu <rmylavarapu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2822537 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
398a30a546
commit
01eb416745
@@ -363,9 +363,11 @@ int nvgpu_prepare_poweroff(struct gk20a *g)
|
||||
nvgpu_err(g, "Failed to halt GSP stress test");
|
||||
}
|
||||
#endif
|
||||
#ifdef CONFIG_NVGPU_GSP_SCHEDULER
|
||||
nvgpu_gsp_sched_suspend(g, g->gsp_sched);
|
||||
#endif
|
||||
#ifdef CONFIG_NVGPU_GSP_SCHEDULER
|
||||
if (nvgpu_is_enabled(g, NVGPU_SUPPORT_GSP_SCHED)) {
|
||||
nvgpu_gsp_sched_suspend(g, g->gsp_sched);
|
||||
}
|
||||
#endif
|
||||
|
||||
nvgpu_falcons_sw_free(g);
|
||||
@@ -990,13 +992,14 @@ int nvgpu_finalize_poweron(struct gk20a *g)
|
||||
NVGPU_INIT_TABLE_ENTRY(nvgpu_nvs_init, NO_FLAG),
|
||||
NVGPU_INIT_TABLE_ENTRY(g->ops.channel.resume_all_serviceable_ch,
|
||||
NO_FLAG),
|
||||
#ifndef CONFIG_NVGPU_DGPU
|
||||
#ifdef CONFIG_NVGPU_GSP_SCHEDULER
|
||||
/* Init gsp ops */
|
||||
NVGPU_INIT_TABLE_ENTRY(&nvgpu_gsp_sched_sw_init, NO_FLAG),
|
||||
NVGPU_INIT_TABLE_ENTRY(&nvgpu_gsp_sched_sw_init, NVGPU_SUPPORT_GSP_SCHED),
|
||||
#endif
|
||||
#ifndef CONFIG_NVGPU_DGPU
|
||||
#ifdef CONFIG_NVGPU_GSP_STRESS_TEST
|
||||
NVGPU_INIT_TABLE_ENTRY(&nvgpu_gsp_stress_test_sw_init, NO_FLAG),
|
||||
NVGPU_INIT_TABLE_ENTRY(&nvgpu_gsp_stress_test_sw_init,
|
||||
NO_FLAG),
|
||||
#endif
|
||||
#endif
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user