diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/debug_fifo.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/debug_fifo.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/debug_fifo.c b/drivers/gpu/nvgpu/common/linux/debug_fifo.c index aeab0c92..b2a87e0d 100644 --- a/drivers/gpu/nvgpu/common/linux/debug_fifo.c +++ b/drivers/gpu/nvgpu/common/linux/debug_fifo.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2017 NVIDIA Corporation. All rights reserved. | 2 | * Copyright (C) 2017-2018 NVIDIA Corporation. All rights reserved. |
3 | * | 3 | * |
4 | * This software is licensed under the terms of the GNU General Public | 4 | * This software is licensed under the terms of the GNU General Public |
5 | * License version 2, as published by the Free Software Foundation, and | 5 | * License version 2, as published by the Free Software Foundation, and |
@@ -108,6 +108,7 @@ static const struct seq_operations gk20a_fifo_sched_debugfs_seq_ops = { | |||
108 | static int gk20a_fifo_sched_debugfs_open(struct inode *inode, | 108 | static int gk20a_fifo_sched_debugfs_open(struct inode *inode, |
109 | struct file *file) | 109 | struct file *file) |
110 | { | 110 | { |
111 | struct gk20a *g = inode->i_private; | ||
111 | int err; | 112 | int err; |
112 | 113 | ||
113 | if (!capable(CAP_SYS_ADMIN)) | 114 | if (!capable(CAP_SYS_ADMIN)) |
@@ -117,7 +118,7 @@ static int gk20a_fifo_sched_debugfs_open(struct inode *inode, | |||
117 | if (err) | 118 | if (err) |
118 | return err; | 119 | return err; |
119 | 120 | ||
120 | gk20a_dbg(gpu_dbg_info, "i_private=%p", inode->i_private); | 121 | nvgpu_log(g, gpu_dbg_info, "i_private=%p", inode->i_private); |
121 | 122 | ||
122 | ((struct seq_file *)file->private_data)->private = inode->i_private; | 123 | ((struct seq_file *)file->private_data)->private = inode->i_private; |
123 | return 0; | 124 | return 0; |
@@ -301,7 +302,7 @@ void gk20a_fifo_debugfs_init(struct gk20a *g) | |||
301 | if (IS_ERR_OR_NULL(fifo_root)) | 302 | if (IS_ERR_OR_NULL(fifo_root)) |
302 | return; | 303 | return; |
303 | 304 | ||
304 | gk20a_dbg(gpu_dbg_info, "g=%p", g); | 305 | nvgpu_log(g, gpu_dbg_info, "g=%p", g); |
305 | 306 | ||
306 | debugfs_create_file("sched", 0600, fifo_root, g, | 307 | debugfs_create_file("sched", 0600, fifo_root, g, |
307 | &gk20a_fifo_sched_debugfs_fops); | 308 | &gk20a_fifo_sched_debugfs_fops); |