gpu: nvgpu: no emc change when railgated

GPU frequencies can be set by powerhal when GPU is railgated,
and before this change that would cause EMC floors to remain
set until GPU is unrailgated.

After this change, EMC floors are not requested by the GPU
client when the GPU is railgated. It is ok to ignore the
requests, as the GPU client maxes the floor when powering
up.

Bug 1807560

Change-Id: I9a0d58b0288edbd03b2edf09580ecabd9b74f0c2
Signed-off-by: Juha Lainema <jlainema@nvidia.com>
Reviewed-on: http://git-master/r/1216233
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-by: Cyril Raju <craju@nvidia.com>
Tested-by: Cyril Raju <craju@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
Juha Lainema
2016-09-07 12:41:05 +03:00
committed by Deepak Nibade
parent fd8555d54e
commit 6579c1ec6f

View File

@@ -301,7 +301,7 @@ static void gp10b_tegra_postscale(struct device *pdev,
unsigned long emc_rate;
gk20a_dbg_fn("");
if (profile) {
if (profile && !gp10b_tegra_is_railgated(pdev)) {
emc_rate = (freq * EMC_BW_RATIO * g->emc3d_ratio) / 1000;
if (emc_rate > tegra_bwmgr_get_max_emc_rate())