From ff5b12fffd7563ce0704fadbc9c479caf851d68c Mon Sep 17 00:00:00 2001 From: Sami Kiminki Date: Thu, 8 Feb 2018 23:29:41 +0200 Subject: gpu: nvgpu: gv11b: Fix CBC base calculus On GV11B, CBC base is calculated in similar fashion than it's calculated on dGPUs. Thus, remove gv11b_ltc_cbc_fix_config() as it would incorrectly multiply the CBC base by the LTC count. Bug 2054860 Change-Id: Iaed717161547468c17e12236149d970c497885b3 Signed-off-by: Sami Kiminki Reviewed-on: https://git-master.nvidia.com/r/1654506 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gv11b/ltc_gv11b.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'drivers/gpu/nvgpu/gv11b/ltc_gv11b.c') diff --git a/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c b/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c index a596c3b2..9bfefa9e 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; -} -- cgit v1.2.2