gpu: nvgpu: move FECS trace initialization call to linux

gk20a_ctxsw_trace_init() is defined in linux specific code, but it is
right now being called from common functions gk20a_finalize_poweron()
and vgpu_finalize_poweron_common() in common code

Move this call to linux specific common function
nvgpu_finalize_poweron_linux() instead

Jira NVGPU-1880

Change-Id: I2548683f1a0378194ff5dd84c94936ccf0f9d17b
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2069474
Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Deepak Nibade
2019-03-07 15:52:49 +05:30
committed by mobile promotions
parent b6febf2fdc
commit 2f5e5596d3
3 changed files with 6 additions and 10 deletions

View File

@@ -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) {