summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2018-05-25 13:27:10 -0400
committerTejal Kudav <tkudav@nvidia.com>2018-06-14 09:44:07 -0400
commit27694ca572c4d7698b107c6713f0f0604b41c186 (patch)
tree60dc8a1a8518797fd95f82d1e02892a984911667 /drivers/gpu/nvgpu/gk20a/gk20a.h
parent5c8f1619ce5ab1cf46484c8914fa29bcc208b9a0 (diff)
gpu: nvgpu: Implement bus HAL for bar2 bind
Implement BAR2 bind as a bus HAL and remove the corresponding MM HAL. BAR2 bind HW API is in bus. JIRA NVGPU-588 Change-Id: I3a8391b00f1ba65f9ed28b633f1d52bf7c984230 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1730896 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 08a1fc10..d8941cdf 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -895,7 +895,6 @@ struct gpu_ops {
895 int (*init_mm_setup_hw)(struct gk20a *g); 895 int (*init_mm_setup_hw)(struct gk20a *g);
896 bool (*is_bar1_supported)(struct gk20a *g); 896 bool (*is_bar1_supported)(struct gk20a *g);
897 int (*init_bar2_vm)(struct gk20a *g); 897 int (*init_bar2_vm)(struct gk20a *g);
898 int (*init_bar2_mm_hw_setup)(struct gk20a *g);
899 void (*remove_bar2_vm)(struct gk20a *g); 898 void (*remove_bar2_vm)(struct gk20a *g);
900 const struct gk20a_mmu_level * 899 const struct gk20a_mmu_level *
901 (*get_mmu_levels)(struct gk20a *g, u32 big_page_size); 900 (*get_mmu_levels)(struct gk20a *g, u32 big_page_size);
@@ -1121,6 +1120,7 @@ struct gpu_ops {
1121 void (*init_hw)(struct gk20a *g); 1120 void (*init_hw)(struct gk20a *g);
1122 void (*isr)(struct gk20a *g); 1121 void (*isr)(struct gk20a *g);
1123 int (*bar1_bind)(struct gk20a *g, struct nvgpu_mem *bar1_inst); 1122 int (*bar1_bind)(struct gk20a *g, struct nvgpu_mem *bar1_inst);
1123 int (*bar2_bind)(struct gk20a *g, struct nvgpu_mem *bar1_inst);
1124 u32 (*set_bar0_window)(struct gk20a *g, struct nvgpu_mem *mem, 1124 u32 (*set_bar0_window)(struct gk20a *g, struct nvgpu_mem *mem,
1125 struct nvgpu_sgt *sgt, struct nvgpu_sgl *sgl, 1125 struct nvgpu_sgt *sgt, struct nvgpu_sgl *sgl,
1126 u32 w); 1126 u32 w);