summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2018-07-05 16:10:50 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-07-07 14:06:06 -0400
commite899ec032e46f1b2d19b76ed27e69de3b08e4699 (patch)
treed67e369f17b00c1dfa341729c2a92045559125ea /drivers/gpu/nvgpu/gv11b
parent5f8bb126a0ca473b2e0c9cbdb91f011b2b49c4ea (diff)
gpu: nvgpu: Remove gv11b specific BAR2 deinit
gp10b and gv11b variants of remove_bar2_vm are now identical, so delete the gv11b version and use only gp10b version. JIRA NVGPU-714 Change-Id: Ie98cb29803358ddcad8aae2cf865f3baeddebfb1 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1773007 Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b')
-rw-r--r--drivers/gpu/nvgpu/gv11b/hal_gv11b.c2
-rw-r--r--drivers/gpu/nvgpu/gv11b/mm_gv11b.c10
-rw-r--r--drivers/gpu/nvgpu/gv11b/mm_gv11b.h1
3 files changed, 1 insertions, 12 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c
index a243e81c..9e9387d0 100644
--- a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c
@@ -648,7 +648,7 @@ static const struct gpu_ops gv11b_ops = {
648 .get_kind_invalid = gm20b_get_kind_invalid, 648 .get_kind_invalid = gm20b_get_kind_invalid,
649 .get_kind_pitch = gm20b_get_kind_pitch, 649 .get_kind_pitch = gm20b_get_kind_pitch,
650 .init_bar2_vm = gp10b_init_bar2_vm, 650 .init_bar2_vm = gp10b_init_bar2_vm,
651 .remove_bar2_vm = gv11b_mm_remove_bar2_vm, 651 .remove_bar2_vm = gp10b_remove_bar2_vm,
652 .fault_info_mem_destroy = gv11b_mm_fault_info_mem_destroy, 652 .fault_info_mem_destroy = gv11b_mm_fault_info_mem_destroy,
653 }, 653 },
654 .therm = { 654 .therm = {
diff --git a/drivers/gpu/nvgpu/gv11b/mm_gv11b.c b/drivers/gpu/nvgpu/gv11b/mm_gv11b.c
index aa2e2cf1..e37ea158 100644
--- a/drivers/gpu/nvgpu/gv11b/mm_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/mm_gv11b.c
@@ -153,16 +153,6 @@ static void gv11b_mm_mmu_hw_fault_buf_init(struct gk20a *g,
153 *hub_intr_types |= HUB_INTR_TYPE_REPLAY; 153 *hub_intr_types |= HUB_INTR_TYPE_REPLAY;
154} 154}
155 155
156void gv11b_mm_remove_bar2_vm(struct gk20a *g)
157{
158 struct mm_gk20a *mm = &g->mm;
159
160 nvgpu_log_fn(g, " ");
161
162 nvgpu_free_inst_block(g, &mm->bar2.inst_block);
163 nvgpu_vm_put(mm->bar2.vm);
164}
165
166static void gv11b_mm_mmu_fault_setup_hw(struct gk20a *g) 156static void gv11b_mm_mmu_fault_setup_hw(struct gk20a *g)
167{ 157{
168 if (nvgpu_mem_is_valid( 158 if (nvgpu_mem_is_valid(
diff --git a/drivers/gpu/nvgpu/gv11b/mm_gv11b.h b/drivers/gpu/nvgpu/gv11b/mm_gv11b.h
index f5f89d94..6ad4a91a 100644
--- a/drivers/gpu/nvgpu/gv11b/mm_gv11b.h
+++ b/drivers/gpu/nvgpu/gv11b/mm_gv11b.h
@@ -32,7 +32,6 @@ bool gv11b_mm_is_bar1_supported(struct gk20a *g);
32void gv11b_init_inst_block(struct nvgpu_mem *inst_block, 32void gv11b_init_inst_block(struct nvgpu_mem *inst_block,
33 struct vm_gk20a *vm, u32 big_page_size); 33 struct vm_gk20a *vm, u32 big_page_size);
34bool gv11b_mm_mmu_fault_pending(struct gk20a *g); 34bool gv11b_mm_mmu_fault_pending(struct gk20a *g);
35void gv11b_mm_remove_bar2_vm(struct gk20a *g);
36int gv11b_init_mm_setup_hw(struct gk20a *g); 35int gv11b_init_mm_setup_hw(struct gk20a *g);
37void gv11b_mm_l2_flush(struct gk20a *g, bool invalidate); 36void gv11b_mm_l2_flush(struct gk20a *g, bool invalidate);
38u64 gv11b_gpu_phys_addr(struct gk20a *g, 37u64 gv11b_gpu_phys_addr(struct gk20a *g,