diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/bus')
-rw-r--r-- | drivers/gpu/nvgpu/common/bus/bus_gk20a.c | 18 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/common/bus/bus_gk20a.h | 1 |
2 files changed, 0 insertions, 19 deletions
diff --git a/drivers/gpu/nvgpu/common/bus/bus_gk20a.c b/drivers/gpu/nvgpu/common/bus/bus_gk20a.c index 532fc9c6..d4ef41c1 100644 --- a/drivers/gpu/nvgpu/common/bus/bus_gk20a.c +++ b/drivers/gpu/nvgpu/common/bus/bus_gk20a.c | |||
@@ -59,24 +59,6 @@ void gk20a_bus_isr(struct gk20a *g) | |||
59 | gk20a_writel(g, bus_intr_0_r(), val); | 59 | gk20a_writel(g, bus_intr_0_r(), val); |
60 | } | 60 | } |
61 | 61 | ||
62 | int gk20a_bus_bar1_bind(struct gk20a *g, struct nvgpu_mem *bar1_inst) | ||
63 | { | ||
64 | u64 iova = nvgpu_inst_block_addr(g, bar1_inst); | ||
65 | u32 ptr_v = (u32)(iova >> bus_bar1_block_ptr_shift_v()); | ||
66 | |||
67 | nvgpu_log(g, gpu_dbg_info, "bar1 inst block ptr: 0x%08x", ptr_v); | ||
68 | |||
69 | gk20a_writel(g, bus_bar1_block_r(), | ||
70 | nvgpu_aperture_mask(g, bar1_inst, | ||
71 | bus_bar1_block_target_sys_mem_ncoh_f(), | ||
72 | bus_bar1_block_target_sys_mem_coh_f(), | ||
73 | bus_bar1_block_target_vid_mem_f()) | | ||
74 | bus_bar1_block_mode_virtual_f() | | ||
75 | bus_bar1_block_ptr_f(ptr_v)); | ||
76 | |||
77 | return 0; | ||
78 | } | ||
79 | |||
80 | u32 gk20a_bus_set_bar0_window(struct gk20a *g, struct nvgpu_mem *mem, | 62 | u32 gk20a_bus_set_bar0_window(struct gk20a *g, struct nvgpu_mem *mem, |
81 | struct nvgpu_sgt *sgt, struct nvgpu_sgl *sgl, u32 w) | 63 | struct nvgpu_sgt *sgt, struct nvgpu_sgl *sgl, u32 w) |
82 | { | 64 | { |
diff --git a/drivers/gpu/nvgpu/common/bus/bus_gk20a.h b/drivers/gpu/nvgpu/common/bus/bus_gk20a.h index 541472cd..4c7e62d9 100644 --- a/drivers/gpu/nvgpu/common/bus/bus_gk20a.h +++ b/drivers/gpu/nvgpu/common/bus/bus_gk20a.h | |||
@@ -31,7 +31,6 @@ struct nvgpu_sgl; | |||
31 | 31 | ||
32 | void gk20a_bus_isr(struct gk20a *g); | 32 | void gk20a_bus_isr(struct gk20a *g); |
33 | void gk20a_bus_init_hw(struct gk20a *g); | 33 | void gk20a_bus_init_hw(struct gk20a *g); |
34 | int gk20a_bus_bar1_bind(struct gk20a *g, struct nvgpu_mem *bar1_inst); | ||
35 | u32 gk20a_bus_set_bar0_window(struct gk20a *g, struct nvgpu_mem *mem, | 34 | u32 gk20a_bus_set_bar0_window(struct gk20a *g, struct nvgpu_mem *mem, |
36 | struct nvgpu_sgt *sgt, | 35 | struct nvgpu_sgt *sgt, |
37 | struct nvgpu_sgl *sgl, | 36 | struct nvgpu_sgl *sgl, |