summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorseshendra Gadagottu <sgadagottu@nvidia.com>2017-05-04 14:17:31 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-05-10 17:16:01 -0400
commit8b981f3c64897128fd2a94c03a819bbca5edd4da (patch)
treef152a228b489bb78fe8a2489ae1dde562853611f /drivers/gpu
parenta1e80ec509ed650b21e6a58e2ec58b03779dbfb1 (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')
-rw-r--r--drivers/gpu/nvgpu/gk20a/debug_gk20a.c17
-rw-r--r--drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c17
2 files changed, 17 insertions, 17 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);
diff --git a/drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c
index 01defa00..77b4b536 100644
--- a/drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c
+++ b/drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c
@@ -159,23 +159,6 @@ static int gp10b_tegra_probe(struct device *dev)
159 platform->g->gr.t18x.ctx_vars.force_preemption_gfxp = false; 159 platform->g->gr.t18x.ctx_vars.force_preemption_gfxp = false;
160 platform->g->gr.t18x.ctx_vars.force_preemption_cilp = false; 160 platform->g->gr.t18x.ctx_vars.force_preemption_cilp = false;
161 161
162 platform->g->gr.t18x.ctx_vars.debugfs_force_preemption_gfxp =
163 debugfs_create_bool("force_preemption_gfxp", S_IRUGO|S_IWUSR,
164 platform->debugfs,
165 &platform->g->gr.t18x.ctx_vars.force_preemption_gfxp);
166
167 platform->g->gr.t18x.ctx_vars.debugfs_force_preemption_cilp =
168 debugfs_create_bool("force_preemption_cilp", S_IRUGO|S_IWUSR,
169 platform->debugfs,
170 &platform->g->gr.t18x.ctx_vars.force_preemption_cilp);
171
172 platform->g->gr.t18x.ctx_vars.debugfs_dump_ctxsw_stats =
173 debugfs_create_bool("dump_ctxsw_stats_on_channel_close",
174 S_IRUGO|S_IWUSR,
175 platform->debugfs,
176 &platform->g->gr.t18x.
177 ctx_vars.dump_ctxsw_stats_on_channel_close);
178
179 platform->g->mm.vidmem_is_vidmem = platform->vidmem_is_vidmem; 162 platform->g->mm.vidmem_is_vidmem = platform->vidmem_is_vidmem;
180 163
181 gp10b_tegra_get_clocks(dev); 164 gp10b_tegra_get_clocks(dev);