diff options
author | Nitin Kumbhar <nkumbhar@nvidia.com> | 2018-09-04 06:49:47 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-09 20:22:24 -0400 |
commit | e93a4ca50b6b24d3db1f8fdc0e5030fecb5ea8d2 (patch) | |
tree | 204853d4398aaab0a5d69bbc4426e7f78d1753a7 /drivers/gpu/nvgpu/os/linux/module.c | |
parent | b2ba12ed55e9b7079b4216d091003ad6f49a4433 (diff) |
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 <nkumbhar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1812449
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/module.c')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/module.c | 8 |
1 files changed, 8 insertions, 0 deletions
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) | |||
216 | } | 216 | } |
217 | } | 217 | } |
218 | 218 | ||
219 | if (l->ops.fecs_trace.init_debugfs) { | ||
220 | err = l->ops.fecs_trace.init_debugfs(g); | ||
221 | if (err) { | ||
222 | nvgpu_err(g, "failed to init linux fecs trace debugfs"); | ||
223 | return err; | ||
224 | } | ||
225 | } | ||
226 | |||
219 | err = nvgpu_pmgr_init_debugfs_linux(l); | 227 | err = nvgpu_pmgr_init_debugfs_linux(l); |
220 | if (err) { | 228 | if (err) { |
221 | nvgpu_err(g, "failed to init linux pmgr debugfs"); | 229 | nvgpu_err(g, "failed to init linux pmgr debugfs"); |