summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv100/hal_gv100.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gv100/hal_gv100.c')
-rw-r--r--drivers/gpu/nvgpu/gv100/hal_gv100.c28
1 files changed, 26 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gv100/hal_gv100.c b/drivers/gpu/nvgpu/gv100/hal_gv100.c
index 337c607f..a2a131da 100644
--- a/drivers/gpu/nvgpu/gv100/hal_gv100.c
+++ b/drivers/gpu/nvgpu/gv100/hal_gv100.c
@@ -30,10 +30,14 @@
30#include "gk20a/pramin_gk20a.h" 30#include "gk20a/pramin_gk20a.h"
31#include "gk20a/flcn_gk20a.h" 31#include "gk20a/flcn_gk20a.h"
32#include "gk20a/regops_gk20a.h" 32#include "gk20a/regops_gk20a.h"
33#include "gk20a/fb_gk20a.h"
33 34
34#include "gm20b/ltc_gm20b.h" 35#include "gm20b/ltc_gm20b.h"
35#include "gm20b/gr_gm20b.h" 36#include "gm20b/gr_gm20b.h"
36#include "gm20b/fifo_gm20b.h" 37#include "gm20b/fifo_gm20b.h"
38#include "gm20b/fb_gm20b.h"
39
40#include "gp10b/fb_gp10b.h"
37 41
38#include "gp106/clk_gp106.h" 42#include "gp106/clk_gp106.h"
39#include "gp106/clk_arb_gp106.h" 43#include "gp106/clk_arb_gp106.h"
@@ -61,7 +65,7 @@
61#include "gv100/gr_ctx_gv100.h" 65#include "gv100/gr_ctx_gv100.h"
62#include "gv100/mm_gv100.h" 66#include "gv100/mm_gv100.h"
63#include "gv11b/pmu_gv11b.h" 67#include "gv11b/pmu_gv11b.h"
64#include "gv100/fb_gv100.h" 68#include "gv11b/fb_gv11b.h"
65#include "gv11b/fifo_gv11b.h" 69#include "gv11b/fifo_gv11b.h"
66#include "gv11b/gv11b_gating_reglist.h" 70#include "gv11b/gv11b_gating_reglist.h"
67#include "gv11b/regops_gv11b.h" 71#include "gv11b/regops_gv11b.h"
@@ -69,6 +73,7 @@
69 73
70#include "gv100.h" 74#include "gv100.h"
71#include "hal_gv100.h" 75#include "hal_gv100.h"
76#include "gv100/fb_gv100.h"
72 77
73#include <nvgpu/debug.h> 78#include <nvgpu/debug.h>
74#include <nvgpu/enabled.h> 79#include <nvgpu/enabled.h>
@@ -200,6 +205,23 @@ static const struct gpu_ops gv100_ops = {
200 .isr_nonstall = gp10b_ce_nonstall_isr, 205 .isr_nonstall = gp10b_ce_nonstall_isr,
201 .get_num_pce = gv11b_ce_get_num_pce, 206 .get_num_pce = gv11b_ce_get_num_pce,
202 }, 207 },
208 .fb = {
209 .reset = gv100_fb_reset,
210 .init_hw = gk20a_fb_init_hw,
211 .init_fs_state = gv11b_fb_init_fs_state,
212 .init_cbc = gv11b_fb_init_cbc,
213 .set_mmu_page_size = gm20b_fb_set_mmu_page_size,
214 .set_use_full_comp_tag_line =
215 gm20b_fb_set_use_full_comp_tag_line,
216 .compression_page_size = gp10b_fb_compression_page_size,
217 .compressible_page_size = gp10b_fb_compressible_page_size,
218 .vpr_info_fetch = gm20b_fb_vpr_info_fetch,
219 .dump_vpr_wpr_info = gm20b_fb_dump_vpr_wpr_info,
220 .is_debug_mode_enabled = gm20b_fb_debug_mode_enabled,
221 .set_debug_mode = gm20b_fb_set_debug_mode,
222 .tlb_invalidate = gk20a_fb_tlb_invalidate,
223 .hub_isr = gv11b_fb_hub_isr,
224 },
203 .fifo = { 225 .fifo = {
204 .init_fifo_setup_hw = gv11b_init_fifo_setup_hw, 226 .init_fifo_setup_hw = gv11b_init_fifo_setup_hw,
205 .bind_channel = channel_gm20b_bind, 227 .bind_channel = channel_gm20b_bind,
@@ -424,10 +446,12 @@ int gv100_init_hal(struct gk20a *g)
424 g->bootstrap_owner = LSF_FALCON_ID_SEC2; 446 g->bootstrap_owner = LSF_FALCON_ID_SEC2;
425 447
426 gv11b_init_gr(g); 448 gv11b_init_gr(g);
427 gv100_init_fb(gops);
428 gv100_init_mm(gops); 449 gv100_init_mm(gops);
429 gp106_init_pmu_ops(g); 450 gp106_init_pmu_ops(g);
430 451
452 gv11b_init_uncompressed_kind_map();
453 gv11b_init_kind_attr();
454
431 g->name = "gv10x"; 455 g->name = "gv10x";
432 456
433 c->twod_class = FERMI_TWOD_A; 457 c->twod_class = FERMI_TWOD_A;