From e93a4ca50b6b24d3db1f8fdc0e5030fecb5ea8d2 Mon Sep 17 00:00:00 2001 From: Nitin Kumbhar Date: Tue, 4 Sep 2018 16:19:47 +0530 Subject: gpu: nvgpu: move fecs trace debugfs to linux Add fecs trace debugfs initialization as an os op. The debugfs nodes are set up for gpu versions which call gk20a_fecs_trace_init(). JIRA NVGPU-602 Change-Id: I606ec31acbf04f633500be4c342db32f3f537794 Signed-off-by: Nitin Kumbhar Reviewed-on: https://git-master.nvidia.com/r/1812449 Reviewed-by: Deepak Nibade GVS: Gerrit_Virtual_Submit Reviewed-by: svc-misra-checker Reviewed-by: Alex Waterman Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/os/linux/module.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'drivers/gpu/nvgpu/os/linux/module.c') diff --git a/drivers/gpu/nvgpu/os/linux/module.c b/drivers/gpu/nvgpu/os/linux/module.c index 85439b88..ff4d9a4c 100644 --- a/drivers/gpu/nvgpu/os/linux/module.c +++ b/drivers/gpu/nvgpu/os/linux/module.c @@ -216,6 +216,14 @@ int nvgpu_finalize_poweron_linux(struct nvgpu_os_linux *l) } } + if (l->ops.fecs_trace.init_debugfs) { + err = l->ops.fecs_trace.init_debugfs(g); + if (err) { + nvgpu_err(g, "failed to init linux fecs trace debugfs"); + return err; + } + } + err = nvgpu_pmgr_init_debugfs_linux(l); if (err) { nvgpu_err(g, "failed to init linux pmgr debugfs"); -- cgit v1.2.2