diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_hal_gv11b.c b/drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_hal_gv11b.c index b9e44b03f..987dd1868 100644 --- a/drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_hal_gv11b.c +++ b/drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_hal_gv11b.c @@ -95,7 +95,6 @@ static const struct gpu_ops vgpu_gv11b_ops = { .init_comptags = vgpu_ltc_init_comptags, .cbc_ctrl = NULL, .isr = gv11b_ltc_isr, - .cbc_fix_config = gv11b_ltc_cbc_fix_config, .flush = gm20b_flush_ltc, .set_enabled = gp10b_ltc_set_enabled, }, diff --git a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c index 72537b448..3ce557bc0 100644 --- a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c @@ -236,7 +236,6 @@ static const struct gpu_ops gv11b_ops = { .init_comptags = gp10b_ltc_init_comptags, .cbc_ctrl = gp10b_ltc_cbc_ctrl, .isr = gv11b_ltc_isr, - .cbc_fix_config = gv11b_ltc_cbc_fix_config, .flush = gm20b_flush_ltc, .set_enabled = gp10b_ltc_set_enabled, }, diff --git a/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c b/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c index a596c3b2c..9bfefa9e9 100644 --- a/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c @@ -187,15 +187,3 @@ void gv11b_ltc_isr(struct gk20a *g) /* fallback to other interrupts */ gp10b_ltc_isr(g); } - -u32 gv11b_ltc_cbc_fix_config(struct gk20a *g, int base) -{ - u32 val = gk20a_readl(g, ltc_ltcs_ltss_cbc_num_active_ltcs_r()); - - if (ltc_ltcs_ltss_cbc_num_active_ltcs__v(val) == 2) - return base * 2; - else if (ltc_ltcs_ltss_cbc_num_active_ltcs__v(val) != 1) { - nvgpu_err(g, "Invalid number of active ltcs: %08x", val); - } - return base; -} diff --git a/drivers/gpu/nvgpu/gv11b/ltc_gv11b.h b/drivers/gpu/nvgpu/gv11b/ltc_gv11b.h index 9b46e74cd..8309e6629 100644 --- a/drivers/gpu/nvgpu/gv11b/ltc_gv11b.h +++ b/drivers/gpu/nvgpu/gv11b/ltc_gv11b.h @@ -29,6 +29,5 @@ void gv11b_ltc_set_zbc_stencil_entry(struct gk20a *g, u32 index); void gv11b_ltc_init_fs_state(struct gk20a *g); void gv11b_ltc_isr(struct gk20a *g); -u32 gv11b_ltc_cbc_fix_config(struct gk20a *g, int base); #endif