summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/debug_fifo.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2018-04-18 22:39:46 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-05-09 21:26:04 -0400
commitdd739fcb039d51606e9a5454ec0aab17bcb01965 (patch)
tree806ba8575d146367ad1be00086ca0cdae35a6b28 /drivers/gpu/nvgpu/common/linux/debug_fifo.c
parent7e66f2a63d4855e763fa768047dfc32f6f96b771 (diff)
gpu: nvgpu: Remove gk20a_dbg* functions
Switch all logging to nvgpu_log*(). gk20a_dbg* macros are intentionally left there because of use from other repositories. Because the new functions do not work without a pointer to struct gk20a, and piping it just for logging is excessive, some log messages are deleted. Change-Id: I00e22e75fe4596a330bb0282ab4774b3639ee31e Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1704148 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/debug_fifo.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/debug_fifo.c7
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 = {
108static int gk20a_fifo_sched_debugfs_open(struct inode *inode, 108static 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);