summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/hal_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/hal_gm20b.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
index 1fb5b2bc..a540de64 100644
--- a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
@@ -19,7 +19,6 @@
19#include "gk20a/fb_gk20a.h" 19#include "gk20a/fb_gk20a.h"
20#include "gk20a/fifo_gk20a.h" 20#include "gk20a/fifo_gk20a.h"
21#include "gk20a/therm_gk20a.h" 21#include "gk20a/therm_gk20a.h"
22#include "gk20a/mm_gk20a.h"
23#include "gk20a/css_gr_gk20a.h" 22#include "gk20a/css_gr_gk20a.h"
24#include "gk20a/mc_gk20a.h" 23#include "gk20a/mc_gk20a.h"
25#include "gk20a/bus_gk20a.h" 24#include "gk20a/bus_gk20a.h"
@@ -43,8 +42,6 @@
43#include "bus_gm20b.h" 42#include "bus_gm20b.h"
44#include "hal_gm20b.h" 43#include "hal_gm20b.h"
45 44
46#include "common/linux/platform_gk20a_tegra.h"
47
48#include <nvgpu/debug.h> 45#include <nvgpu/debug.h>
49#include <nvgpu/bug.h> 46#include <nvgpu/bug.h>
50#include <nvgpu/enabled.h> 47#include <nvgpu/enabled.h>
@@ -290,27 +287,6 @@ static const struct gpu_ops gm20b_ops = {
290 .get_netlist_name = gr_gm20b_get_netlist_name, 287 .get_netlist_name = gr_gm20b_get_netlist_name,
291 .is_fw_defined = gr_gm20b_is_firmware_defined, 288 .is_fw_defined = gr_gm20b_is_firmware_defined,
292 }, 289 },
293 .mm = {
294 .support_sparse = gm20b_mm_support_sparse,
295 .gmmu_map = gk20a_locked_gmmu_map,
296 .gmmu_unmap = gk20a_locked_gmmu_unmap,
297 .vm_bind_channel = gk20a_vm_bind_channel,
298 .fb_flush = gk20a_mm_fb_flush,
299 .l2_invalidate = gk20a_mm_l2_invalidate,
300 .l2_flush = gk20a_mm_l2_flush,
301 .cbc_clean = gk20a_mm_cbc_clean,
302 .set_big_page_size = gm20b_mm_set_big_page_size,
303 .get_big_page_sizes = gm20b_mm_get_big_page_sizes,
304 .get_default_big_page_size = gm20b_mm_get_default_big_page_size,
305 .gpu_phys_addr = gm20b_gpu_phys_addr,
306 .get_physical_addr_bits = gk20a_mm_get_physical_addr_bits,
307 .get_mmu_levels = gk20a_mm_get_mmu_levels,
308 .init_pdb = gk20a_mm_init_pdb,
309 .init_mm_setup_hw = gk20a_init_mm_setup_hw,
310 .is_bar1_supported = gm20b_mm_is_bar1_supported,
311 .init_inst_block = gk20a_init_inst_block,
312 .mmu_fault_pending = gk20a_fifo_mmu_fault_pending,
313 },
314 .therm = { 290 .therm = {
315 .init_therm_setup_hw = gm20b_init_therm_setup_hw, 291 .init_therm_setup_hw = gm20b_init_therm_setup_hw,
316 .elcg_init_idle_filters = gk20a_elcg_init_idle_filters, 292 .elcg_init_idle_filters = gk20a_elcg_init_idle_filters,
@@ -422,7 +398,6 @@ int gm20b_init_hal(struct gk20a *g)
422 gops->clock_gating = gm20b_ops.clock_gating; 398 gops->clock_gating = gm20b_ops.clock_gating;
423 gops->fifo = gm20b_ops.fifo; 399 gops->fifo = gm20b_ops.fifo;
424 gops->gr_ctx = gm20b_ops.gr_ctx; 400 gops->gr_ctx = gm20b_ops.gr_ctx;
425 gops->mm = gm20b_ops.mm;
426 gops->therm = gm20b_ops.therm; 401 gops->therm = gm20b_ops.therm;
427 /* 402 /*
428 * clk must be assigned member by member 403 * clk must be assigned member by member
@@ -487,6 +462,7 @@ int gm20b_init_hal(struct gk20a *g)
487#endif 462#endif
488 g->bootstrap_owner = LSF_BOOTSTRAP_OWNER_DEFAULT; 463 g->bootstrap_owner = LSF_BOOTSTRAP_OWNER_DEFAULT;
489 gm20b_init_gr(g); 464 gm20b_init_gr(g);
465 gm20b_init_mm(gops);
490 gm20b_init_pmu_ops(g); 466 gm20b_init_pmu_ops(g);
491 467
492 gm20b_init_uncompressed_kind_map(); 468 gm20b_init_uncompressed_kind_map();