Commit d3fa91c9 authored by Sharat Masetty's avatar Sharat Masetty Committed by Rob Clark

drm/msm: suspend devfreq on init

Devfreq turns on and starts recommending power level as soon as it is
initialized. The GPU is still not powered on by the time the devfreq
init happens and this leads to problems on GPU's where register access
is needed to get/set power levels. So we start suspended and only restart
devfreq when GPU is powered on.
Signed-off-by: default avatarSharat Masetty <smasetty@codeaurora.org>
Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
parent bdacdcf2
...@@ -105,6 +105,8 @@ static void msm_devfreq_init(struct msm_gpu *gpu) ...@@ -105,6 +105,8 @@ static void msm_devfreq_init(struct msm_gpu *gpu)
dev_err(&gpu->pdev->dev, "Couldn't initialize GPU devfreq\n"); dev_err(&gpu->pdev->dev, "Couldn't initialize GPU devfreq\n");
gpu->devfreq.devfreq = NULL; gpu->devfreq.devfreq = NULL;
} }
devfreq_suspend_device(gpu->devfreq.devfreq);
} }
static int enable_pwrrail(struct msm_gpu *gpu) static int enable_pwrrail(struct msm_gpu *gpu)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment