summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/bus/bus_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/bus/bus_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/common/bus/bus_gk20a.c18
1 files changed, 0 insertions, 18 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
62int 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
80u32 gk20a_bus_set_bar0_window(struct gk20a *g, struct nvgpu_mem *mem, 62u32 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{