summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/rpfb_gp10b.c
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2018-02-21 18:55:45 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-03-16 10:34:53 -0400
commiteb54945f1804e1aefa1e1e4f1fa9c5f12aa6bc92 (patch)
tree15986c2cbd6ded5a1a7b718834035d76f9bfd5c8 /drivers/gpu/nvgpu/gp10b/rpfb_gp10b.c
parentb77d7837c1c0f695422440e885624d1b56f1536d (diff)
gpu: nvgpu: convert debug function to use nvgpu_info()
A RPFB debug function was still using pr_info() instead of nvgpu_info() so make that conversion. JIRA NVGPU-525 Change-Id: Ib157dfd2f743374215bc16230c7f422601133d2f Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1673814 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/rpfb_gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/rpfb_gp10b.c43
1 files changed, 21 insertions, 22 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/rpfb_gp10b.c b/drivers/gpu/nvgpu/gp10b/rpfb_gp10b.c
index 3bbfde0a..385bebbd 100644
--- a/drivers/gpu/nvgpu/gp10b/rpfb_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/rpfb_gp10b.c
@@ -133,28 +133,27 @@ void gp10b_replayable_pagefault_buffer_clear_overflow(struct gk20a *g)
133 133
134} 134}
135 135
136/*
137 * Debug function.
138 */
136void gp10b_replayable_pagefault_buffer_info(struct gk20a *g) 139void gp10b_replayable_pagefault_buffer_info(struct gk20a *g)
137{ 140{
138 141 nvgpu_info(g, "rpfb low: 0x%x\n",
139 gk20a_dbg_fn(""); 142 gk20a_readl(g, fifo_replay_fault_buffer_lo_r()) >> 12);
140 pr_info("rpfb low: 0x%x\n", 143 nvgpu_info(g, "rpfb hi: 0x%x\n",
141 (gk20a_readl(g, fifo_replay_fault_buffer_lo_r()) >> 12)); 144 gk20a_readl(g, fifo_replay_fault_buffer_hi_r()));
142 pr_info("rpfb hi: 0x%x\n", 145 nvgpu_info(g, "rpfb enabled: 0x%x\n",
143 gk20a_readl(g, fifo_replay_fault_buffer_hi_r())); 146 gk20a_readl(g, fifo_replay_fault_buffer_lo_r()) & 0x1);
144 pr_info("rpfb enabled: 0x%x\n", 147 nvgpu_info(g, "rpfb size: %d\n",
145 (gk20a_readl(g, fifo_replay_fault_buffer_lo_r()) & 0x1)); 148 gk20a_readl(g, fifo_replay_fault_buffer_size_r()));
146 pr_info("rpfb size: %d\n", 149 nvgpu_info(g, "rpfb get index: %d\n",
147 gk20a_readl(g, fifo_replay_fault_buffer_size_r())); 150 gp10b_replayable_pagefault_buffer_get_index(g));
148 pr_info("rpfb get index: %d\n", 151 nvgpu_info(g, "rpfb put index: %d\n",
149 gp10b_replayable_pagefault_buffer_get_index(g)); 152 gp10b_replayable_pagefault_buffer_put_index(g));
150 pr_info("rpfb put index: %d\n", 153 nvgpu_info(g, "rpfb empty: %d\n",
151 gp10b_replayable_pagefault_buffer_put_index(g)); 154 gp10b_replayable_pagefault_buffer_is_empty(g));
152 pr_info("rpfb empty: %d\n", 155 nvgpu_info(g, "rpfb full %d\n",
153 gp10b_replayable_pagefault_buffer_is_empty(g)); 156 gp10b_replayable_pagefault_buffer_is_full(g));
154 pr_info("rpfb full %d\n", 157 nvgpu_info(g, "rpfb overflow %d\n",
155 gp10b_replayable_pagefault_buffer_is_full(g)); 158 gp10b_replayable_pagefault_buffer_is_overflow(g));
156 pr_info("rpfb overflow %d\n",
157 gp10b_replayable_pagefault_buffer_is_overflow(g));
158
159 gk20a_dbg_fn("done");
160} 159}