[PATCH] drm/amd/display: Enable ASSR in Linux DM
Rodrigo Siqueira
Rodrigo.Siqueira at amd.com
Tue Feb 23 15:47:59 UTC 2021
Applied to amd-staging-drm-next.
Thanks
On 02/23, Rodrigo Siqueira wrote:
> On 02/23, Stylon Wang wrote:
> > ASSR implementation was already in DC and DM guarded by
> > CONFIG_DRM_AMD_DC_HDCP. This patch enables ASSR if display
> > declares such support in DPCD.
> >
> > Signed-off-by: Stylon Wang <stylon.wang at amd.com>
> > ---
> > drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 16 ++++++++++++++++
> > 1 file changed, 16 insertions(+)
> >
> > diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
> > index c1391bfb7a9b..099f43709060 100644
> > --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
> > +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
> > @@ -1669,6 +1669,22 @@ bool perform_link_training_with_retries(
> > msleep(delay_dp_power_up_in_ms);
> > }
> >
> > +#ifdef CONFIG_DRM_AMD_DC_HDCP
> > + if (panel_mode == DP_PANEL_MODE_EDP) {
> > + struct cp_psp *cp_psp = &stream->ctx->cp_psp;
> > +
> > + if (cp_psp && cp_psp->funcs.enable_assr) {
> > + if (!cp_psp->funcs.enable_assr(cp_psp->handle, link)) {
> > + /* since eDP implies ASSR on, change panel
> > + * mode to disable ASSR
> > + */
> > + panel_mode = DP_PANEL_MODE_DEFAULT;
> > + }
> > + } else
> > + panel_mode = DP_PANEL_MODE_DEFAULT;
> > + }
> > +#endif
> > +
> > dp_set_panel_mode(link, panel_mode);
> >
> > if (link->aux_access_disabled) {
> > --
> > 2.25.1
> >
>
> Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira at amd.com>
>
> --
> Rodrigo Siqueira
> https://siqueira.tech
--
Rodrigo Siqueira
https://siqueira.tech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20210223/e23bdcb1/attachment.sig>
More information about the amd-gfx
mailing list