diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/hal_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hal_gm20b.c | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c index 831fd5da..53542702 100644 --- a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c | |||
@@ -46,7 +46,22 @@ | |||
46 | 46 | ||
47 | #define PRIV_SECURITY_DISABLE 0x01 | 47 | #define PRIV_SECURITY_DISABLE 0x01 |
48 | 48 | ||
49 | static struct gpu_ops gm20b_ops = { | 49 | static const struct gpu_ops gm20b_ops = { |
50 | .ltc = { | ||
51 | .determine_L2_size_bytes = gm20b_determine_L2_size_bytes, | ||
52 | .set_zbc_color_entry = gm20b_ltc_set_zbc_color_entry, | ||
53 | .set_zbc_depth_entry = gm20b_ltc_set_zbc_depth_entry, | ||
54 | .init_cbc = gm20b_ltc_init_cbc, | ||
55 | .init_fs_state = gm20b_ltc_init_fs_state, | ||
56 | .init_comptags = gm20b_ltc_init_comptags, | ||
57 | .cbc_ctrl = gm20b_ltc_cbc_ctrl, | ||
58 | .isr = gm20b_ltc_isr, | ||
59 | .cbc_fix_config = gm20b_ltc_cbc_fix_config, | ||
60 | .flush = gm20b_flush_ltc, | ||
61 | #ifdef CONFIG_DEBUG_FS | ||
62 | .sync_debugfs = gm20b_ltc_sync_debugfs, | ||
63 | #endif | ||
64 | }, | ||
50 | .clock_gating = { | 65 | .clock_gating = { |
51 | .slcg_bus_load_gating_prod = | 66 | .slcg_bus_load_gating_prod = |
52 | gm20b_slcg_bus_load_gating_prod, | 67 | gm20b_slcg_bus_load_gating_prod, |
@@ -189,6 +204,7 @@ int gm20b_init_hal(struct gk20a *g) | |||
189 | struct nvgpu_gpu_characteristics *c = &g->gpu_characteristics; | 204 | struct nvgpu_gpu_characteristics *c = &g->gpu_characteristics; |
190 | u32 val; | 205 | u32 val; |
191 | 206 | ||
207 | gops->ltc = gm20b_ops.ltc; | ||
192 | gops->clock_gating = gm20b_ops.clock_gating; | 208 | gops->clock_gating = gm20b_ops.clock_gating; |
193 | gops->securegpccs = false; | 209 | gops->securegpccs = false; |
194 | gops->pmupstate = false; | 210 | gops->pmupstate = false; |
@@ -222,9 +238,7 @@ int gm20b_init_hal(struct gk20a *g) | |||
222 | gk20a_init_bus(gops); | 238 | gk20a_init_bus(gops); |
223 | gm20b_init_mc(gops); | 239 | gm20b_init_mc(gops); |
224 | gk20a_init_priv_ring(gops); | 240 | gk20a_init_priv_ring(gops); |
225 | gm20b_init_ltc(gops); | ||
226 | gm20b_init_gr(gops); | 241 | gm20b_init_gr(gops); |
227 | gm20b_init_ltc(gops); | ||
228 | gm20b_init_fb(gops); | 242 | gm20b_init_fb(gops); |
229 | gm20b_init_fifo(gops); | 243 | gm20b_init_fifo(gops); |
230 | gm20b_init_ce2(gops); | 244 | gm20b_init_ce2(gops); |