diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/bus_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/bus_gm20b.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/bus_gm20b.c b/drivers/gpu/nvgpu/gm20b/bus_gm20b.c index b8d42f7a..34c8d4b7 100644 --- a/drivers/gpu/nvgpu/gm20b/bus_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/bus_gm20b.c | |||
@@ -24,6 +24,7 @@ | |||
24 | 24 | ||
25 | #include <nvgpu/timers.h> | 25 | #include <nvgpu/timers.h> |
26 | #include <nvgpu/bus.h> | 26 | #include <nvgpu/bus.h> |
27 | #include <nvgpu/mm.h> | ||
27 | 28 | ||
28 | #include "bus_gm20b.h" | 29 | #include "bus_gm20b.h" |
29 | #include "gk20a/gk20a.h" | 30 | #include "gk20a/gk20a.h" |
@@ -35,8 +36,8 @@ int gm20b_bus_bar1_bind(struct gk20a *g, struct nvgpu_mem *bar1_inst) | |||
35 | { | 36 | { |
36 | struct nvgpu_timeout timeout; | 37 | struct nvgpu_timeout timeout; |
37 | int err = 0; | 38 | int err = 0; |
38 | u64 iova = gk20a_mm_inst_block_addr(g, bar1_inst); | 39 | u64 iova = nvgpu_inst_block_addr(g, bar1_inst); |
39 | u32 ptr_v = (u32)(iova >> bar1_instance_block_shift_gk20a()); | 40 | u32 ptr_v = (u32)(iova >> bus_bar1_block_ptr_shift_v()); |
40 | 41 | ||
41 | gk20a_dbg_info("bar1 inst block ptr: 0x%08x", ptr_v); | 42 | gk20a_dbg_info("bar1 inst block ptr: 0x%08x", ptr_v); |
42 | 43 | ||