summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/fb/fb_gm20b.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/fb/fb_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/common/fb/fb_gm20b.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/common/fb/fb_gm20b.c b/drivers/gpu/nvgpu/common/fb/fb_gm20b.c
index f62bf9df..739274c5 100644
--- a/drivers/gpu/nvgpu/common/fb/fb_gm20b.c
+++ b/drivers/gpu/nvgpu/common/fb/fb_gm20b.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * GM20B GPC MMU 2 * GM20B GPC MMU
3 * 3 *
4 * Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2014-2020, NVIDIA CORPORATION. All rights reserved.
5* 5*
6 * Permission is hereby granted, free of charge, to any person obtaining a 6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"), 7 * copy of this software and associated documentation files (the "Software"),
@@ -311,7 +311,7 @@ bool gm20b_fb_debug_mode_enabled(struct gk20a *g)
311 fb_mmu_debug_ctrl_debug_enabled_v(); 311 fb_mmu_debug_ctrl_debug_enabled_v();
312} 312}
313 313
314void gm20b_fb_set_debug_mode(struct gk20a *g, bool enable) 314void gm20b_fb_set_mmu_debug_mode(struct gk20a *g, bool enable)
315{ 315{
316 u32 reg_val, fb_debug_ctrl; 316 u32 reg_val, fb_debug_ctrl;
317 317
@@ -323,10 +323,15 @@ void gm20b_fb_set_debug_mode(struct gk20a *g, bool enable)
323 g->mmu_debug_ctrl = false; 323 g->mmu_debug_ctrl = false;
324 } 324 }
325 325
326 reg_val = gk20a_readl(g, fb_mmu_debug_ctrl_r()); 326 reg_val = nvgpu_readl(g, fb_mmu_debug_ctrl_r());
327 reg_val = set_field(reg_val, 327 reg_val = set_field(reg_val,
328 fb_mmu_debug_ctrl_debug_m(), fb_debug_ctrl); 328 fb_mmu_debug_ctrl_debug_m(), fb_debug_ctrl);
329 gk20a_writel(g, fb_mmu_debug_ctrl_r(), reg_val); 329 nvgpu_writel(g, fb_mmu_debug_ctrl_r(), reg_val);
330}
330 331
332void gm20b_fb_set_debug_mode(struct gk20a *g, bool enable)
333{
334 gm20b_fb_set_mmu_debug_mode(g, enable);
331 g->ops.gr.set_debug_mode(g, enable); 335 g->ops.gr.set_debug_mode(g, enable);
332} 336}
337