diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c index c198f9f1..9f45c929 100644 --- a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c +++ b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c | |||
@@ -312,7 +312,14 @@ static void gp10b_tegra_postscale(struct device *pdev, | |||
312 | 312 | ||
313 | gk20a_dbg_fn(""); | 313 | gk20a_dbg_fn(""); |
314 | if (profile && !gp10b_tegra_is_railgated(pdev)) { | 314 | if (profile && !gp10b_tegra_is_railgated(pdev)) { |
315 | emc_rate = (freq * EMC_BW_RATIO * g->emc3d_ratio) / 1000; | 315 | unsigned long emc_scale; |
316 | |||
317 | if (freq <= gp10b_freq_table[0]) | ||
318 | emc_scale = 0; | ||
319 | else | ||
320 | emc_scale = g->emc3d_ratio; | ||
321 | |||
322 | emc_rate = (freq * EMC_BW_RATIO * emc_scale) / 1000; | ||
316 | 323 | ||
317 | if (emc_rate > tegra_bwmgr_get_max_emc_rate()) | 324 | if (emc_rate > tegra_bwmgr_get_max_emc_rate()) |
318 | emc_rate = tegra_bwmgr_get_max_emc_rate(); | 325 | emc_rate = tegra_bwmgr_get_max_emc_rate(); |