mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
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:
committed by
mobile promotions
parent
888fbbda21
commit
ab22d66386
@@ -379,7 +379,7 @@ static void gm20b_tegra_postscale(struct device *dev, unsigned long freq)
|
||||
|
||||
emc_params->freq_last_set = emc_rate;
|
||||
nvgpu_mutex_acquire(&platform->railgate_lock);
|
||||
if (platform->is_railgated && !platform->is_railgated(dev))
|
||||
if (platform->is_railgated && platform->is_railgated(dev))
|
||||
goto done;
|
||||
|
||||
tegra_bwmgr_set_emc(emc_params->bwmgr_cl, emc_rate,
|
||||
|
||||
Reference in New Issue
Block a user