Re: [PATCH] drm/msm/a6xx: restore previous freq on resume

2019-11-19 Thread Stephen Boyd
Quoting Rob Clark (2019-11-18 15:40:38) > diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gmu.h > b/drivers/gpu/drm/msm/adreno/a6xx_gmu.h > index 39a26dd63674..2af91ed7ed0c 100644 > --- a/drivers/gpu/drm/msm/adreno/a6xx_gmu.h > +++ b/drivers/gpu/drm/msm/adreno/a6xx_gmu.h > @@ -63,6 +63,9 @@ struct

Re: [PATCH] drm/msm/a6xx: restore previous freq on resume

2019-11-18 Thread Rob Clark
On Mon, Nov 18, 2019 at 4:32 PM Stephen Boyd wrote: > > Quoting Rob Clark (2019-11-18 15:40:38) > > diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gmu.h > > b/drivers/gpu/drm/msm/adreno/a6xx_gmu.h > > index 39a26dd63674..2af91ed7ed0c 100644 > > --- a/drivers/gpu/drm/msm/adreno/a6xx_gmu.h > > +++

Re: [PATCH] drm/msm/a6xx: restore previous freq on resume

2019-11-18 Thread Jordan Crouse
On Mon, Nov 18, 2019 at 03:40:38PM -0800, Rob Clark wrote: > From: Rob Clark > > Previously, if the freq were overriden (ie. via sysfs), it would get > reset to max on resume. Devfreq goes to sleep assuming that the hardware will still be at the same frequency when it wakes up but the GMU

[PATCH] drm/msm/a6xx: restore previous freq on resume

2019-11-18 Thread Rob Clark
From: Rob Clark Previously, if the freq were overriden (ie. via sysfs), it would get reset to max on resume. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 8 ++-- drivers/gpu/drm/msm/adreno/a6xx_gmu.h | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) diff