summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu
diff options
context:
space:
mode:
authorAlex Frid <afrid@nvidia.com>2017-05-11 00:35:03 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-05-12 19:09:11 -0400
commitab22d66386e3a23e0dfe897bca25e01623f6d61c (patch)
tree3e765fd6b2df73889a0e4486853529bf4b49e713 /drivers/gpu/nvgpu
parent888fbbda21af9ed9b47527cdc0b853c4397005d0 (diff)
gpu: nvgpu: tegra: Fix EMC frequency scaling
Before this commit call to EMC BWMGR in postscale procedure was skipped when GPU rail is ON (= GPU is running). It should be the other way around - call should be skipped when GPU is rail-gated. Bug 200267304 Change-Id: Id4da84b3d0ed0606017cc53a58e2917d486fa13e Signed-off-by: Alex Frid <afrid@nvidia.com> Reviewed-on: http://git-master/r/1479769 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r--drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c b/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c
index 996fd251..5a178960 100644
--- a/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c
+++ b/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c
@@ -379,7 +379,7 @@ static void gm20b_tegra_postscale(struct device *dev, unsigned long freq)
379 379
380 emc_params->freq_last_set = emc_rate; 380 emc_params->freq_last_set = emc_rate;
381 nvgpu_mutex_acquire(&platform->railgate_lock); 381 nvgpu_mutex_acquire(&platform->railgate_lock);
382 if (platform->is_railgated && !platform->is_railgated(dev)) 382 if (platform->is_railgated && platform->is_railgated(dev))
383 goto done; 383 goto done;
384 384
385 tegra_bwmgr_set_emc(emc_params->bwmgr_cl, emc_rate, 385 tegra_bwmgr_set_emc(emc_params->bwmgr_cl, emc_rate,