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>
This commit is contained in:
Alex Frid
2017-05-10 21:35:03 -07:00
committed by mobile promotions
parent 888fbbda21
commit ab22d66386

View File

@@ -379,7 +379,7 @@ static void gm20b_tegra_postscale(struct device *dev, unsigned long freq)
emc_params->freq_last_set = emc_rate; emc_params->freq_last_set = emc_rate;
nvgpu_mutex_acquire(&platform->railgate_lock); nvgpu_mutex_acquire(&platform->railgate_lock);
if (platform->is_railgated && !platform->is_railgated(dev)) if (platform->is_railgated && platform->is_railgated(dev))
goto done; goto done;
tegra_bwmgr_set_emc(emc_params->bwmgr_cl, emc_rate, tegra_bwmgr_set_emc(emc_params->bwmgr_cl, emc_rate,