summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c
diff options
context:
space:
mode:
authorJuha Lainema <jlainema@nvidia.com>2016-09-07 05:41:05 -0400
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:56:51 -0500
commit6579c1ec6fbe9d8bbd0c5da5dfaa51c02402527b (patch)
treed0c1ebbdfce76d68f87a522a39ddd6aecf63402b /drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c
parentfd8555d54e8499f1430ed9c9d1658da177fb30d4 (diff)
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>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c
index 210d9865..db4f14dd 100644
--- a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c
+++ b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c
@@ -301,7 +301,7 @@ static void gp10b_tegra_postscale(struct device *pdev,
301 unsigned long emc_rate; 301 unsigned long emc_rate;
302 302
303 gk20a_dbg_fn(""); 303 gk20a_dbg_fn("");
304 if (profile) { 304 if (profile && !gp10b_tegra_is_railgated(pdev)) {
305 emc_rate = (freq * EMC_BW_RATIO * g->emc3d_ratio) / 1000; 305 emc_rate = (freq * EMC_BW_RATIO * g->emc3d_ratio) / 1000;
306 306
307 if (emc_rate > tegra_bwmgr_get_max_emc_rate()) 307 if (emc_rate > tegra_bwmgr_get_max_emc_rate())