summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-03-24 13:55:46 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-03-28 15:05:03 -0400
commit3e39798997f0726472e18a17462216094c084074 (patch)
treecf68b3fff464c1217fa28ec27f6c612d5cfc66fb /drivers/gpu/nvgpu/gk20a/mm_gk20a.c
parent580c8112f08281332cefea16243fcfbf27cd6bdd (diff)
gpu: nvgpu: Remove unnecessary use of dev_name()
Move the name field from struct gpu_ops up to struct gk20a. The field is not a function op, so it doesn't belong in gpu_ops. Replace all uses of dev_name() with use of g->name when possible. JIRA NVGPU-16 Change-Id: Ic6e99e39258cbf3bb7c806962cbbd7de5126688f Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1328534 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
index 1beff9b9..102aae75 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
@@ -5146,7 +5146,7 @@ int gk20a_mm_fb_flush(struct gk20a *g)
5146 guarantee that writes are to DRAM. This will be a sysmembar internal 5146 guarantee that writes are to DRAM. This will be a sysmembar internal
5147 to the L2. */ 5147 to the L2. */
5148 5148
5149 trace_gk20a_mm_fb_flush(dev_name(g->dev)); 5149 trace_gk20a_mm_fb_flush(g->name);
5150 5150
5151 gk20a_writel(g, flush_fb_flush_r(), 5151 gk20a_writel(g, flush_fb_flush_r(),
5152 flush_fb_flush_pending_busy_f()); 5152 flush_fb_flush_pending_busy_f());
@@ -5170,7 +5170,7 @@ int gk20a_mm_fb_flush(struct gk20a *g)
5170 ret = -EBUSY; 5170 ret = -EBUSY;
5171 } 5171 }
5172 5172
5173 trace_gk20a_mm_fb_flush_done(dev_name(g->dev)); 5173 trace_gk20a_mm_fb_flush_done(g->name);
5174 5174
5175 nvgpu_mutex_release(&mm->l2_op_lock); 5175 nvgpu_mutex_release(&mm->l2_op_lock);
5176 5176
@@ -5184,7 +5184,7 @@ static void gk20a_mm_l2_invalidate_locked(struct gk20a *g)
5184 u32 data; 5184 u32 data;
5185 struct nvgpu_timeout timeout; 5185 struct nvgpu_timeout timeout;
5186 5186
5187 trace_gk20a_mm_l2_invalidate(dev_name(g->dev)); 5187 trace_gk20a_mm_l2_invalidate(g->name);
5188 5188
5189 nvgpu_timeout_init(g, &timeout, 200, NVGPU_TIMER_RETRY_TIMER); 5189 nvgpu_timeout_init(g, &timeout, 200, NVGPU_TIMER_RETRY_TIMER);
5190 5190
@@ -5211,7 +5211,7 @@ static void gk20a_mm_l2_invalidate_locked(struct gk20a *g)
5211 gk20a_warn(dev_from_gk20a(g), 5211 gk20a_warn(dev_from_gk20a(g),
5212 "l2_system_invalidate too many retries"); 5212 "l2_system_invalidate too many retries");
5213 5213
5214 trace_gk20a_mm_l2_invalidate_done(dev_name(g->dev)); 5214 trace_gk20a_mm_l2_invalidate_done(g->name);
5215} 5215}
5216 5216
5217void gk20a_mm_l2_invalidate(struct gk20a *g) 5217void gk20a_mm_l2_invalidate(struct gk20a *g)
@@ -5242,7 +5242,7 @@ void gk20a_mm_l2_flush(struct gk20a *g, bool invalidate)
5242 5242
5243 nvgpu_mutex_acquire(&mm->l2_op_lock); 5243 nvgpu_mutex_acquire(&mm->l2_op_lock);
5244 5244
5245 trace_gk20a_mm_l2_flush(dev_name(g->dev)); 5245 trace_gk20a_mm_l2_flush(g->name);
5246 5246
5247 /* Flush all dirty lines from the L2 to DRAM. Lines are left in the L2 5247 /* Flush all dirty lines from the L2 to DRAM. Lines are left in the L2
5248 as clean, so subsequent reads might hit in the L2. */ 5248 as clean, so subsequent reads might hit in the L2. */
@@ -5263,7 +5263,7 @@ void gk20a_mm_l2_flush(struct gk20a *g, bool invalidate)
5263 } while (!nvgpu_timeout_expired_msg(&timeout, 5263 } while (!nvgpu_timeout_expired_msg(&timeout,
5264 "l2_flush_dirty too many retries")); 5264 "l2_flush_dirty too many retries"));
5265 5265
5266 trace_gk20a_mm_l2_flush_done(dev_name(g->dev)); 5266 trace_gk20a_mm_l2_flush_done(g->name);
5267 5267
5268 if (invalidate) 5268 if (invalidate)
5269 gk20a_mm_l2_invalidate_locked(g); 5269 gk20a_mm_l2_invalidate_locked(g);