diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c index 8c39ecb7..802ccd76 100644 --- a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <nvgpu/log.h> | 26 | #include <nvgpu/log.h> |
27 | #include <nvgpu/vm.h> | 27 | #include <nvgpu/vm.h> |
28 | #include <nvgpu/atomic.h> | 28 | #include <nvgpu/atomic.h> |
29 | #include <nvgpu/mm.h> | ||
29 | 30 | ||
30 | #include "gk20a.h" | 31 | #include "gk20a.h" |
31 | #include "gk20a/platform_gk20a.h" | 32 | #include "gk20a/platform_gk20a.h" |
@@ -305,7 +306,7 @@ int gk20a_perfbuf_enable_locked(struct gk20a *g, u64 offset, u32 size) | |||
305 | return err; | 306 | return err; |
306 | } | 307 | } |
307 | 308 | ||
308 | err = gk20a_alloc_inst_block(g, &mm->perfbuf.inst_block); | 309 | err = g->ops.mm.alloc_inst_block(g, &mm->perfbuf.inst_block); |
309 | if (err) | 310 | if (err) |
310 | return err; | 311 | return err; |
311 | 312 | ||
@@ -322,8 +323,7 @@ int gk20a_perfbuf_enable_locked(struct gk20a *g, u64 offset, u32 size) | |||
322 | gk20a_writel(g, perf_pmasys_outsize_r(), size); | 323 | gk20a_writel(g, perf_pmasys_outsize_r(), size); |
323 | 324 | ||
324 | /* this field is aligned to 4K */ | 325 | /* this field is aligned to 4K */ |
325 | inst_pa_page = gk20a_mm_inst_block_addr(g, | 326 | inst_pa_page = nvgpu_inst_block_addr(g, &mm->perfbuf.inst_block) >> 12; |
326 | &mm->perfbuf.inst_block) >> 12; | ||
327 | 327 | ||
328 | /* A write to MEM_BLOCK triggers the block bind operation. MEM_BLOCK | 328 | /* A write to MEM_BLOCK triggers the block bind operation. MEM_BLOCK |
329 | * should be written last */ | 329 | * should be written last */ |