diff options
author | Sami Kiminki <skiminki@nvidia.com> | 2018-02-08 16:29:41 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-02-09 11:51:48 -0500 |
commit | ff5b12fffd7563ce0704fadbc9c479caf851d68c (patch) | |
tree | 62f7b0840a88c523fd033f8f6393f9d292b4b115 /drivers/gpu/nvgpu/gv11b/ltc_gv11b.c | |
parent | 244a124ce2ae5daa10283f3129843a72bc36676e (diff) |
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 <skiminki@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1654506
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/ltc_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/ltc_gv11b.c | 12 |
1 files changed, 0 insertions, 12 deletions
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) | |||
187 | /* fallback to other interrupts */ | 187 | /* fallback to other interrupts */ |
188 | gp10b_ltc_isr(g); | 188 | gp10b_ltc_isr(g); |
189 | } | 189 | } |
190 | |||
191 | u32 gv11b_ltc_cbc_fix_config(struct gk20a *g, int base) | ||
192 | { | ||
193 | u32 val = gk20a_readl(g, ltc_ltcs_ltss_cbc_num_active_ltcs_r()); | ||
194 | |||
195 | if (ltc_ltcs_ltss_cbc_num_active_ltcs__v(val) == 2) | ||
196 | return base * 2; | ||
197 | else if (ltc_ltcs_ltss_cbc_num_active_ltcs__v(val) != 1) { | ||
198 | nvgpu_err(g, "Invalid number of active ltcs: %08x", val); | ||
199 | } | ||
200 | return base; | ||
201 | } | ||