mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: disable LSPMU for ga10b safety
Bug 3456240 Change-Id: I0bb9581d2df46e5cb2dea57794ee0c918394eb66 Signed-off-by: mkumbar <mkumbar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2645646 (cherry picked from commit aab86a06485c94546e11809cdeeefe9906e9b680) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2629878 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: Shashank Singh <shashsingh@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
a372ec9a38
commit
61c6aeec41
@@ -336,22 +336,11 @@ void nvgpu_ga10b_acr_sw_init(struct gk20a *g, struct nvgpu_acr *acr)
|
||||
nvgpu_log_fn(g, " ");
|
||||
acr->g = g;
|
||||
|
||||
#ifdef CONFIG_NVGPU_NON_FUSA
|
||||
if (nvgpu_falcon_is_falcon2_enabled(&g->gsp_flcn)) {
|
||||
nvgpu_set_enabled(g, NVGPU_ACR_NEXT_CORE_ENABLED, true);
|
||||
nvgpu_set_enabled(g, NVGPU_PKC_LS_SIG_ENABLED, true);
|
||||
nvgpu_acr_dbg(g, "enabling PKC and next core for GSP/n");
|
||||
}
|
||||
#else
|
||||
if (nvgpu_falcon_is_falcon2_enabled(&g->pmu_flcn)) {
|
||||
/*
|
||||
* ACR will be booting on PMU engine so need changes
|
||||
* in ACR unit
|
||||
*/
|
||||
nvgpu_set_enabled(g, NVGPU_ACR_NEXT_CORE_ENABLED, true);
|
||||
nvgpu_set_enabled(g, NVGPU_PKC_LS_SIG_ENABLED, false);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* TODO: Make it generic for PMU/GSP */
|
||||
if (nvgpu_is_enabled(g, NVGPU_ACR_NEXT_CORE_ENABLED)) {
|
||||
|
||||
@@ -36,7 +36,12 @@
|
||||
|
||||
bool ga10b_is_pmu_supported(struct gk20a *g)
|
||||
{
|
||||
#ifdef CONFIG_NVGPU_LS_PMU
|
||||
return nvgpu_platform_is_simulation(g) ? false : true;
|
||||
#else
|
||||
/* set to false to disable LS PMU ucode support */
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
u32 ga10b_pmu_falcon2_base_addr(void)
|
||||
|
||||
Reference in New Issue
Block a user