diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/debug_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/debug_gk20a.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/debug_gk20a.c b/drivers/gpu/nvgpu/gk20a/debug_gk20a.c index b666bb16..a8b9c5fb 100644 --- a/drivers/gpu/nvgpu/gk20a/debug_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/debug_gk20a.c | |||
@@ -16,8 +16,9 @@ | |||
16 | #include <linux/seq_file.h> | 16 | #include <linux/seq_file.h> |
17 | #include <linux/io.h> | 17 | #include <linux/io.h> |
18 | 18 | ||
19 | #include <nvgpu/semaphore.h> | 19 | #include <nvgpu/log.h> |
20 | #include <nvgpu/kmem.h> | 20 | #include <nvgpu/kmem.h> |
21 | #include <nvgpu/semaphore.h> | ||
21 | 22 | ||
22 | #include "gk20a.h" | 23 | #include "gk20a.h" |
23 | #include "debug_gk20a.h" | 24 | #include "debug_gk20a.h" |
@@ -232,7 +233,6 @@ void gk20a_debug_init(struct device *dev, const char *debugfs_symlink) | |||
232 | struct gk20a_platform *platform = dev_get_drvdata(dev); | 233 | struct gk20a_platform *platform = dev_get_drvdata(dev); |
233 | #ifdef CONFIG_DEBUG_FS | 234 | #ifdef CONFIG_DEBUG_FS |
234 | struct gk20a *g = platform->g; | 235 | struct gk20a *g = platform->g; |
235 | #endif | ||
236 | 236 | ||
237 | platform->debugfs = debugfs_create_dir(dev_name(dev), NULL); | 237 | platform->debugfs = debugfs_create_dir(dev_name(dev), NULL); |
238 | if (!platform->debugfs) | 238 | if (!platform->debugfs) |
@@ -256,15 +256,16 @@ void gk20a_debug_init(struct device *dev, const char *debugfs_symlink) | |||
256 | debugfs_create_bool("disable_syncpoints", S_IRUGO|S_IWUSR, | 256 | debugfs_create_bool("disable_syncpoints", S_IRUGO|S_IWUSR, |
257 | platform->debugfs, &platform->disable_syncpoints); | 257 | platform->debugfs, &platform->disable_syncpoints); |
258 | 258 | ||
259 | /* Legacy debugging API. */ | ||
259 | debugfs_create_u32("dbg_mask", S_IRUGO|S_IWUSR, | 260 | debugfs_create_u32("dbg_mask", S_IRUGO|S_IWUSR, |
260 | platform->debugfs, &gk20a_dbg_mask); | 261 | platform->debugfs, &nvgpu_dbg_mask); |
261 | 262 | ||
262 | #ifdef CONFIG_GK20A_TRACE_PRINTK | 263 | /* New debug logging API. */ |
263 | debugfs_create_u32("dbg_ftrace", S_IRUGO|S_IWUSR, | 264 | debugfs_create_u32("log_mask", S_IRUGO|S_IWUSR, |
264 | platform->debugfs, &gk20a_dbg_ftrace); | 265 | platform->debugfs, &g->log_mask); |
265 | #endif | 266 | debugfs_create_u32("log_trace", S_IRUGO|S_IWUSR, |
267 | platform->debugfs, &g->log_trace); | ||
266 | 268 | ||
267 | #ifdef CONFIG_DEBUG_FS | ||
268 | nvgpu_spinlock_init(&g->debugfs_lock); | 269 | nvgpu_spinlock_init(&g->debugfs_lock); |
269 | 270 | ||
270 | g->mm.ltc_enabled = true; | 271 | g->mm.ltc_enabled = true; |