mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Compile out PMU PG/LSFM code for safety
Compile out PMU PG & LSFM calls called from other unit when PMU RTOS support is disabled for safety build by setting NVGPU_LS_PMU build flag to 0 NVGPU JIRA-3418 Change-Id: I6a5089b37344697ffb0cc9ad301f4e7cf03f9f55 Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2117770 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
cd6f926c1b
commit
b6dfba15fa
@@ -527,8 +527,9 @@ restore_fe_go_idle:
|
||||
}
|
||||
|
||||
golden_image->ready = true;
|
||||
|
||||
#ifdef NVGPU_LS_PMU
|
||||
nvgpu_pmu_set_golden_image_initialized(g, true);
|
||||
#endif
|
||||
g->ops.gr.falcon.set_current_ctx_invalid(g);
|
||||
|
||||
clean_up:
|
||||
@@ -726,8 +727,9 @@ void nvgpu_gr_obj_ctx_deinit(struct gk20a *g,
|
||||
golden_image->local_golden_image);
|
||||
golden_image->local_golden_image = NULL;
|
||||
}
|
||||
|
||||
#ifdef NVGPU_LS_PMU
|
||||
nvgpu_pmu_set_golden_image_initialized(g, false);
|
||||
#endif
|
||||
golden_image->ready = false;
|
||||
nvgpu_kfree(g, golden_image);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user