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:
rmylavarapu
2022-12-06 11:39:33 +00:00
committed by mobile promotions
parent 398a30a546
commit 01eb416745
14 changed files with 83 additions and 56 deletions

View File

@@ -1955,6 +1955,13 @@ int ga10b_init_hal(struct gk20a *g)
nvgpu_set_enabled(g, NVGPU_SUPPORT_PMU_SUPER_SURFACE, true);
}
#ifdef CONFIG_NVGPU_GSP_SCHEDULER
/*
* enable gsp scheduler
*/
nvgpu_set_enabled(g, NVGPU_SUPPORT_GSP_SCHED, true);
#endif
/*
* enable GSP VM for gsp scheduler firmware
*/