diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/ltc_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/ltc_gm20b.c | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c b/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c index 2a888e88..a089b59c 100644 --- a/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c | |||
@@ -388,26 +388,24 @@ static int gm20b_determine_L2_size_bytes(struct gk20a *g) | |||
388 | return cache_size; | 388 | return cache_size; |
389 | } | 389 | } |
390 | 390 | ||
391 | static struct gpu_ltc_ops gm20b_ltc_ops = { | ||
392 | .determine_L2_size_bytes = gm20b_determine_L2_size_bytes, | ||
393 | .set_max_ways_evict_last = gk20a_ltc_set_max_ways_evict_last, | ||
394 | .set_zbc_color_entry = gk20a_ltc_set_zbc_color_entry, | ||
395 | .set_zbc_depth_entry = gk20a_ltc_set_zbc_depth_entry, | ||
396 | .init_cbc = gk20a_ltc_init_cbc, | ||
397 | #ifdef CONFIG_DEBUG_FS | ||
398 | .sync_debugfs = gk20a_ltc_sync_debugfs, | ||
399 | #endif | ||
400 | /* GM20b specific ops. */ | ||
401 | .init_fs_state = gm20b_ltc_init_fs_state, | ||
402 | .init_comptags = gm20b_ltc_init_comptags, | ||
403 | .cbc_ctrl = gm20b_ltc_cbc_ctrl, | ||
404 | .elpg_flush = gm20b_ltc_g_elpg_flush_locked, | ||
405 | .isr = gm20b_ltc_isr, | ||
406 | .cbc_fix_config = gm20b_ltc_cbc_fix_config, | ||
407 | .flush = gm20b_flush_ltc | ||
408 | }; | ||
409 | |||
410 | void gm20b_init_ltc(struct gpu_ops *gops) | 391 | void gm20b_init_ltc(struct gpu_ops *gops) |
411 | { | 392 | { |
412 | gops->ltc = &gm20b_ltc_ops; | 393 | /* Gk20a reused ops. */ |
394 | gops->ltc.determine_L2_size_bytes = gm20b_determine_L2_size_bytes; | ||
395 | gops->ltc.set_max_ways_evict_last = gk20a_ltc_set_max_ways_evict_last; | ||
396 | gops->ltc.set_zbc_color_entry = gk20a_ltc_set_zbc_color_entry; | ||
397 | gops->ltc.set_zbc_depth_entry = gk20a_ltc_set_zbc_depth_entry; | ||
398 | gops->ltc.init_cbc = gk20a_ltc_init_cbc; | ||
399 | |||
400 | /* GM20b specific ops. */ | ||
401 | gops->ltc.init_fs_state = gm20b_ltc_init_fs_state; | ||
402 | gops->ltc.init_comptags = gm20b_ltc_init_comptags; | ||
403 | gops->ltc.cbc_ctrl = gm20b_ltc_cbc_ctrl; | ||
404 | gops->ltc.elpg_flush = gm20b_ltc_g_elpg_flush_locked; | ||
405 | gops->ltc.isr = gm20b_ltc_isr; | ||
406 | gops->ltc.cbc_fix_config = gm20b_ltc_cbc_fix_config; | ||
407 | gops->ltc.flush = gm20b_flush_ltc; | ||
408 | #ifdef CONFIG_DEBUG_FS | ||
409 | gops->ltc.sync_debugfs = gk20a_ltc_sync_debugfs; | ||
410 | #endif | ||
413 | } | 411 | } |