mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: compiled out clk_arb unit
clk_arb is a non safe unit, it should be compiled out of safe build JIRA NVGPU-3499 Change-Id: I9cce04570e52fe3ec73f3a1d3c2744a9a8940592 Signed-off-by: Sagar Kadamati <skadamati@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2143538 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Shashank Singh <shashsingh@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Ankur Kishore <ankkishore@nvidia.com> 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
92f42b293b
commit
d24bff61e6
@@ -152,9 +152,11 @@ int gk20a_prepare_poweroff(struct gk20a *g)
|
||||
if (g->ops.clk.suspend_clk_support != NULL) {
|
||||
g->ops.clk.suspend_clk_support(g);
|
||||
}
|
||||
#ifdef CONFIG_NVGPU_CLK_ARB
|
||||
if (g->ops.clk_arb.stop_clk_arb_threads != NULL) {
|
||||
g->ops.clk_arb.stop_clk_arb_threads(g);
|
||||
}
|
||||
#endif
|
||||
gk20a_mask_interrupts(g);
|
||||
|
||||
g->power_on = false;
|
||||
@@ -454,11 +456,13 @@ int gk20a_finalize_poweron(struct gk20a *g)
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
#ifdef CONFIG_NVGPU_CLK_ARB
|
||||
err = nvgpu_clk_arb_init_arbiter(g);
|
||||
if (err != 0) {
|
||||
nvgpu_err(g, "failed to init clk arb");
|
||||
goto done;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
err = nvgpu_init_therm_support(g);
|
||||
@@ -628,12 +632,14 @@ void gk20a_init_gpu_characteristics(struct gk20a *g)
|
||||
|
||||
nvgpu_set_enabled(g, NVGPU_SUPPORT_TSG, true);
|
||||
|
||||
#ifdef CONFIG_NVGPU_CLK_ARB
|
||||
if (g->ops.clk_arb.check_clk_arb_support != NULL) {
|
||||
if (g->ops.clk_arb.check_clk_arb_support(g)) {
|
||||
nvgpu_set_enabled(g, NVGPU_SUPPORT_CLOCK_CONTROLS,
|
||||
true);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
g->ops.gr.init.detect_sm_arch(g);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user