[Freedreno] [PATCH v14 14/14] drm/msm/dp: set self refresh aware based on PSR support
Dmitry Baryshkov
dmitry.baryshkov at linaro.org
Sun Mar 26 22:02:28 UTC 2023
On Sun, 26 Mar 2023 at 19:24, Bjorn Andersson <andersson at kernel.org> wrote:
>
> On Thu, Mar 02, 2023 at 10:03:17PM +0530, Vinod Polimera wrote:
> > For the PSR to kick in, self_refresh_aware has to be set.
> > Initialize it based on the PSR support for the eDP interface.
> >
>
> When I boot my sc8280xp devices (CRD and X13s) to console with this
> patch included I get a login prompt, and then there are no more screen
> updates.
>
> Switching virtual terminal (ctrl+alt+fN) causes the screen to redraw.
>
> Blindly login in and launching Wayland works and from then on screen
> updates works as expected.
>
> Switching from Wayland to another virtual terminal causes the problem to
> re-appear, no updates after the initial refresh, switching back go the
> Wayland-terminal crashed the machine.
>
>
>
> Reverting this single patch resolves both the issue with the console
> updating as exected and flipping between the virtual terminal with
> Wayland and the others no longer crashes my machine.
I hope Vinod Polimera can assist in solving the issue. In the worst
case we will have to revert this commit, shortcutting the PSR until it
is properly debugged.
>
> Regards,
> Bjorn
>
> > Signed-off-by: Vinod Polimera <quic_vpolimer at quicinc.com>
> > ---
> > drivers/gpu/drm/msm/dp/dp_drm.c | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/drivers/gpu/drm/msm/dp/dp_drm.c b/drivers/gpu/drm/msm/dp/dp_drm.c
> > index 029e08c..785d766 100644
> > --- a/drivers/gpu/drm/msm/dp/dp_drm.c
> > +++ b/drivers/gpu/drm/msm/dp/dp_drm.c
> > @@ -117,6 +117,8 @@ static int edp_bridge_atomic_check(struct drm_bridge *drm_bridge,
> > if (WARN_ON(!conn_state))
> > return -ENODEV;
> >
> > + conn_state->self_refresh_aware = dp->psr_supported;
> > +
> > if (!conn_state->crtc || !crtc_state)
> > return 0;
> >
> > --
> > 2.7.4
> >
--
With best wishes
Dmitry
More information about the Freedreno
mailing list