mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: conditional compilation of dgpu code
There were few more dgpu related references unprotected by the config flag. Fix those. Bug 2834141 Change-Id: Ia9fd58d97552efeff84d6c0c52b8d5de481fab31 Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2306430 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
00eec69b3f
commit
92db0b3048
@@ -320,6 +320,7 @@ void gk20a_init_linux_characteristics(struct gk20a *g)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef CONFIG_NVGPU_DGPU
|
||||
static void therm_alert_work_queue(struct work_struct *work)
|
||||
{
|
||||
|
||||
@@ -390,7 +391,7 @@ static int nvgpu_request_therm_irq(struct nvgpu_os_linux *l)
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
int gk20a_pm_finalize_poweron(struct device *dev)
|
||||
{
|
||||
@@ -443,6 +444,7 @@ int gk20a_pm_finalize_poweron(struct device *dev)
|
||||
g->sim->sim_init_late(g);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_NVGPU_DGPU
|
||||
if (nvgpu_is_enabled(g, NVGPU_SUPPORT_DGPU_PCIE_SCRIPT_EXECUTE) &&
|
||||
nvgpu_platform_is_silicon(g)) {
|
||||
g->ops.clk.change_host_clk_source(g);
|
||||
@@ -462,6 +464,7 @@ int gk20a_pm_finalize_poweron(struct device *dev)
|
||||
"Thermal Alert feature will not be enabled");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
err = nvgpu_enable_irqs(g);
|
||||
if (err) {
|
||||
@@ -488,9 +491,10 @@ int gk20a_pm_finalize_poweron(struct device *dev)
|
||||
|
||||
#ifdef CONFIG_NVGPU_DGPU
|
||||
nvgpu_init_mm_ce_context(g);
|
||||
#endif
|
||||
|
||||
nvgpu_vidmem_thread_unpause(&g->mm);
|
||||
#endif
|
||||
|
||||
|
||||
/* Initialise scaling: it will initialize scaling drive only once */
|
||||
if (IS_ENABLED(CONFIG_GK20A_DEVFREQ) &&
|
||||
@@ -998,8 +1002,10 @@ void gk20a_remove_support(struct gk20a *g)
|
||||
|
||||
nvgpu_gr_remove_support(g);
|
||||
|
||||
#ifdef CONFIG_NVGPU_DGPU
|
||||
if (g->mm.remove_ce_support)
|
||||
g->mm.remove_ce_support(&g->mm);
|
||||
#endif
|
||||
|
||||
if (g->fifo.remove_support)
|
||||
g->fifo.remove_support(&g->fifo);
|
||||
|
||||
Reference in New Issue
Block a user