summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
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);