diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2017-05-04 14:17:31 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-10 17:16:01 -0400 |
commit | 8b981f3c64897128fd2a94c03a819bbca5edd4da (patch) | |
tree | f152a228b489bb78fe8a2489ae1dde562853611f /drivers/gpu/nvgpu/gk20a/debug_gk20a.c | |
parent | a1e80ec509ed650b21e6a58e2ec58b03779dbfb1 (diff) |
gpu: nvgpu: gp10b: create t18x debugfs nodes
Modifed code to create debugfs nodes correctly by
moving relevant code from gp10b_tegra_probe() to
gk20a_debug_init().
Bug 200292090
Change-Id: Ib5d0a57d8b600cd30dc2a37794d8208b5c57ccfa
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/1476484
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/debug_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/debug_gk20a.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/debug_gk20a.c b/drivers/gpu/nvgpu/gk20a/debug_gk20a.c index 885f0a83..029fefb8 100644 --- a/drivers/gpu/nvgpu/gk20a/debug_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/debug_gk20a.c | |||
@@ -388,6 +388,23 @@ void gk20a_debug_init(struct device *dev, const char *debugfs_symlink) | |||
388 | S_IRUGO|S_IWUSR, | 388 | S_IRUGO|S_IWUSR, |
389 | platform->debugfs, | 389 | platform->debugfs, |
390 | &g->runlist_interleave); | 390 | &g->runlist_interleave); |
391 | #ifdef CONFIG_ARCH_TEGRA_18x_SOC | ||
392 | g->gr.t18x.ctx_vars.debugfs_force_preemption_gfxp = | ||
393 | debugfs_create_bool("force_preemption_gfxp", S_IRUGO|S_IWUSR, | ||
394 | platform->debugfs, | ||
395 | &g->gr.t18x.ctx_vars.force_preemption_gfxp); | ||
396 | |||
397 | g->gr.t18x.ctx_vars.debugfs_force_preemption_cilp = | ||
398 | debugfs_create_bool("force_preemption_cilp", S_IRUGO|S_IWUSR, | ||
399 | platform->debugfs, | ||
400 | &g->gr.t18x.ctx_vars.force_preemption_cilp); | ||
401 | |||
402 | g->gr.t18x.ctx_vars.debugfs_dump_ctxsw_stats = | ||
403 | debugfs_create_bool("dump_ctxsw_stats_on_channel_close", | ||
404 | S_IRUGO|S_IWUSR, platform->debugfs, | ||
405 | &g->gr.t18x. | ||
406 | ctx_vars.dump_ctxsw_stats_on_channel_close); | ||
407 | #endif | ||
391 | 408 | ||
392 | gr_gk20a_debugfs_init(g); | 409 | gr_gk20a_debugfs_init(g); |
393 | gk20a_pmu_debugfs_init(g->dev); | 410 | gk20a_pmu_debugfs_init(g->dev); |