diff --git a/drivers/gpu/nvgpu/common/init/nvgpu_init.c b/drivers/gpu/nvgpu/common/init/nvgpu_init.c index 80f8f6c0e..78e5368f1 100644 --- a/drivers/gpu/nvgpu/common/init/nvgpu_init.c +++ b/drivers/gpu/nvgpu/common/init/nvgpu_init.c @@ -33,7 +33,6 @@ #include #include #include -#include #include #include #include @@ -376,12 +375,6 @@ int gk20a_finalize_poweron(struct gk20a *g) g->ops.chip_init_gpu_characteristics(g); -#ifdef CONFIG_GK20A_CTXSW_TRACE - err = gk20a_ctxsw_trace_init(g); - if (err != 0) - nvgpu_warn(g, "could not initialize ctxsw tracing"); -#endif - /* Restore the debug setting */ g->ops.fb.set_debug_mode(g, g->mmu_debug_ctrl); diff --git a/drivers/gpu/nvgpu/common/vgpu/vgpu.c b/drivers/gpu/nvgpu/common/vgpu/vgpu.c index a167d1dc7..cd312476d 100644 --- a/drivers/gpu/nvgpu/common/vgpu/vgpu.c +++ b/drivers/gpu/nvgpu/common/vgpu/vgpu.c @@ -456,9 +456,6 @@ int vgpu_finalize_poweron_common(struct gk20a *g) g->ops.chip_init_gpu_characteristics(g); -#ifdef CONFIG_GK20A_CTXSW_TRACE - gk20a_ctxsw_trace_init(g); -#endif g->ops.fifo.channel_resume(g); return 0; diff --git a/drivers/gpu/nvgpu/os/linux/module.c b/drivers/gpu/nvgpu/os/linux/module.c index f6a20b0ce..fd63aa3bf 100644 --- a/drivers/gpu/nvgpu/os/linux/module.c +++ b/drivers/gpu/nvgpu/os/linux/module.c @@ -209,6 +209,12 @@ int nvgpu_finalize_poweron_linux(struct nvgpu_os_linux *l) return err; } +#ifdef CONFIG_GK20A_CTXSW_TRACE + err = gk20a_ctxsw_trace_init(g); + if (err != 0) + nvgpu_warn(g, "could not initialize ctxsw tracing"); +#endif + if (l->ops.clk.init_debugfs) { err = l->ops.clk.init_debugfs(g); if (err) {