mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: enable CONFIG_NVGPU_LS_PMU for safety
Enable CONFIG_NVGPU_LS_PMU for dGPU safety build. Add missing #ifdefs for CONFIG_NVGPU_POWER_PG and CONFIG_NVGPU_CLK_ARB which are not defined for safety build. Moved gm20b_mc_is_enabled to fusa code. NVGPU_UNIT_PWR is only defined when CONFIG_NVGPU_HAL_NON_FUSA is defined. Added #ifdefs to compile out gk20a_pmu functions that are using it. Jira NVGPU-4661 Change-Id: Ieb552f9374bad6f3dad777322f118931e0bc94ec Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2317085 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@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> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
Alex Waterman
parent
1adf23eea5
commit
28ccd63f69
@@ -716,7 +716,7 @@ int nvgpu_gr_obj_ctx_alloc_golden_ctx_image(struct gk20a *g,
|
||||
}
|
||||
|
||||
golden_image->ready = true;
|
||||
#ifdef CONFIG_NVGPU_LS_PMU
|
||||
#ifdef CONFIG_NVGPU_POWER_PG
|
||||
nvgpu_pmu_set_golden_image_initialized(g, true);
|
||||
#endif
|
||||
g->ops.gr.falcon.set_current_ctx_invalid(g);
|
||||
@@ -923,7 +923,7 @@ void nvgpu_gr_obj_ctx_deinit(struct gk20a *g,
|
||||
golden_image->local_golden_image);
|
||||
golden_image->local_golden_image = NULL;
|
||||
}
|
||||
#ifdef CONFIG_NVGPU_LS_PMU
|
||||
#ifdef CONFIG_NVGPU_POWER_PG
|
||||
nvgpu_pmu_set_golden_image_initialized(g, false);
|
||||
#endif
|
||||
golden_image->ready = false;
|
||||
|
||||
Reference in New Issue
Block a user