From 6579c1ec6fbe9d8bbd0c5da5dfaa51c02402527b Mon Sep 17 00:00:00 2001 From: Juha Lainema Date: Wed, 7 Sep 2016 12:41:05 +0300 Subject: 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 Reviewed-on: http://git-master/r/1216233 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Ilan Aelion Reviewed-by: Cyril Raju Tested-by: Cyril Raju GVS: Gerrit_Virtual_Submit Reviewed-by: Seshendra Gadagottu Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c') 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, 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()) -- cgit v1.2.2