diff options
author | Sunny He <suhe@nvidia.com> | 2017-08-11 17:41:33 -0400 |
---|---|---|
committer | Shu Zhong <shuz@nvidia.com> | 2017-08-11 17:57:15 -0400 |
commit | f8399cfa553b6fb6d82c7fa762c372f03bf59d5f (patch) | |
tree | 3966af83cf9abdf687667afe120cc6648a9ed360 /drivers/gpu/nvgpu/gp10b/hal_gp10b.c | |
parent | 8d63cd3995d4a650b478ad69d7e29ed2b1b2d927 (diff) |
Revert "gpu: nvgpu: Reorg mm HAL initialization"
Conflicts with gv100 changes
This reverts commit 8d63cd3995d4a650b478ad69d7e29ed2b1b2d927.
Change-Id: Ie2f88d281b2b87a9a794d79164a61c4d883626b7
Signed-off-by: Sunny He <suhe@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1537668
Reviewed-by: Shu Zhong <shuz@nvidia.com>
Tested-by: Shu Zhong <shuz@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/hal_gp10b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/hal_gp10b.c | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c index a70565c3..b0871155 100644 --- a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c | |||
@@ -17,7 +17,6 @@ | |||
17 | #include "gk20a/fifo_gk20a.h" | 17 | #include "gk20a/fifo_gk20a.h" |
18 | #include "gk20a/ctxsw_trace_gk20a.h" | 18 | #include "gk20a/ctxsw_trace_gk20a.h" |
19 | #include "gk20a/fecs_trace_gk20a.h" | 19 | #include "gk20a/fecs_trace_gk20a.h" |
20 | #include "gk20a/mm_gk20a.h" | ||
21 | #include "gk20a/dbg_gpu_gk20a.h" | 20 | #include "gk20a/dbg_gpu_gk20a.h" |
22 | #include "gk20a/css_gr_gk20a.h" | 21 | #include "gk20a/css_gr_gk20a.h" |
23 | #include "gk20a/bus_gk20a.h" | 22 | #include "gk20a/bus_gk20a.h" |
@@ -48,14 +47,12 @@ | |||
48 | #include "gm20b/fifo_gm20b.h" | 47 | #include "gm20b/fifo_gm20b.h" |
49 | #include "gm20b/pmu_gm20b.h" | 48 | #include "gm20b/pmu_gm20b.h" |
50 | #include "gm20b/clk_gm20b.h" | 49 | #include "gm20b/clk_gm20b.h" |
50 | #include "gm20b/fifo_gm20b.h" | ||
51 | #include "gm20b/fb_gm20b.h" | 51 | #include "gm20b/fb_gm20b.h" |
52 | #include "gm20b/mm_gm20b.h" | ||
53 | 52 | ||
54 | #include "gp10b.h" | 53 | #include "gp10b.h" |
55 | #include "hal_gp10b.h" | 54 | #include "hal_gp10b.h" |
56 | 55 | ||
57 | #include "common/linux/platform_gk20a_tegra.h" | ||
58 | |||
59 | #include <nvgpu/debug.h> | 56 | #include <nvgpu/debug.h> |
60 | #include <nvgpu/bug.h> | 57 | #include <nvgpu/bug.h> |
61 | #include <nvgpu/enabled.h> | 58 | #include <nvgpu/enabled.h> |
@@ -322,30 +319,6 @@ static const struct gpu_ops gp10b_ops = { | |||
322 | .max_entries = gk20a_gr_max_entries, | 319 | .max_entries = gk20a_gr_max_entries, |
323 | }, | 320 | }, |
324 | #endif /* CONFIG_GK20A_CTXSW_TRACE */ | 321 | #endif /* CONFIG_GK20A_CTXSW_TRACE */ |
325 | .mm = { | ||
326 | .support_sparse = gm20b_mm_support_sparse, | ||
327 | .gmmu_map = gk20a_locked_gmmu_map, | ||
328 | .gmmu_unmap = gk20a_locked_gmmu_unmap, | ||
329 | .vm_bind_channel = gk20a_vm_bind_channel, | ||
330 | .fb_flush = gk20a_mm_fb_flush, | ||
331 | .l2_invalidate = gk20a_mm_l2_invalidate, | ||
332 | .l2_flush = gk20a_mm_l2_flush, | ||
333 | .cbc_clean = gk20a_mm_cbc_clean, | ||
334 | .set_big_page_size = gm20b_mm_set_big_page_size, | ||
335 | .get_big_page_sizes = gm20b_mm_get_big_page_sizes, | ||
336 | .get_default_big_page_size = gp10b_mm_get_default_big_page_size, | ||
337 | .gpu_phys_addr = gm20b_gpu_phys_addr, | ||
338 | .get_physical_addr_bits = gp10b_mm_get_physical_addr_bits, | ||
339 | .get_mmu_levels = gp10b_mm_get_mmu_levels, | ||
340 | .init_pdb = gp10b_mm_init_pdb, | ||
341 | .init_mm_setup_hw = gp10b_init_mm_setup_hw, | ||
342 | .is_bar1_supported = gm20b_mm_is_bar1_supported, | ||
343 | .init_inst_block = gk20a_init_inst_block, | ||
344 | .mmu_fault_pending = gk20a_fifo_mmu_fault_pending, | ||
345 | .init_bar2_vm = gb10b_init_bar2_vm, | ||
346 | .init_bar2_mm_hw_setup = gb10b_init_bar2_mm_hw_setup, | ||
347 | .remove_bar2_vm = gp10b_remove_bar2_vm, | ||
348 | }, | ||
349 | .pramin = { | 322 | .pramin = { |
350 | .enter = gk20a_pramin_enter, | 323 | .enter = gk20a_pramin_enter, |
351 | .exit = gk20a_pramin_exit, | 324 | .exit = gk20a_pramin_exit, |
@@ -454,7 +427,6 @@ int gp10b_init_hal(struct gk20a *g) | |||
454 | gops->fifo = gp10b_ops.fifo; | 427 | gops->fifo = gp10b_ops.fifo; |
455 | gops->gr_ctx = gp10b_ops.gr_ctx; | 428 | gops->gr_ctx = gp10b_ops.gr_ctx; |
456 | gops->fecs_trace = gp10b_ops.fecs_trace; | 429 | gops->fecs_trace = gp10b_ops.fecs_trace; |
457 | gops->mm = gp10b_ops.mm; | ||
458 | gops->pramin = gp10b_ops.pramin; | 430 | gops->pramin = gp10b_ops.pramin; |
459 | gops->therm = gp10b_ops.therm; | 431 | gops->therm = gp10b_ops.therm; |
460 | gops->regops = gp10b_ops.regops; | 432 | gops->regops = gp10b_ops.regops; |
@@ -517,6 +489,7 @@ int gp10b_init_hal(struct gk20a *g) | |||
517 | 489 | ||
518 | g->bootstrap_owner = LSF_BOOTSTRAP_OWNER_DEFAULT; | 490 | g->bootstrap_owner = LSF_BOOTSTRAP_OWNER_DEFAULT; |
519 | gp10b_init_gr(g); | 491 | gp10b_init_gr(g); |
492 | gp10b_init_mm(gops); | ||
520 | gp10b_init_pmu_ops(g); | 493 | gp10b_init_pmu_ops(g); |
521 | 494 | ||
522 | gp10b_init_uncompressed_kind_map(); | 495 | gp10b_init_uncompressed_kind_map(); |