[Public] > -----Original Message----- > From: gregkh@xxxxxxxxxxxxxxxxxxx <gregkh@xxxxxxxxxxxxxxxxxxx> > Sent: Monday, July 26, 2021 5:02 AM > To: Wang, Chao-kai (Stylon) <Stylon.Wang@xxxxxxx>; Deucher, Alexander > <Alexander.Deucher@xxxxxxx> > Cc: stable@xxxxxxxxxxxxxxx > Subject: FAILED: patch "[PATCH] drm/amd/display: Fix ASSR regression on > embedded panels" failed to apply to 5.13-stable tree > > > The patch below does not apply to the 5.13-stable tree. > If someone wants it applied there, or to any other stable or longterm tree, > then please email the backport, including the original git commit id to > <stable@xxxxxxxxxxxxxxx>. Hi Greg, please use the attached backported patch. Thanks, Alex > > thanks, > > greg k-h > > ------------------ original commit in Linus's tree ------------------ > > From 6be50f5d83adc9541de3d5be26e968182b5ac150 Mon Sep 17 00:00:00 > 2001 > From: Stylon Wang <stylon.wang@xxxxxxx> > Date: Wed, 21 Jul 2021 12:25:24 +0800 > Subject: [PATCH] drm/amd/display: Fix ASSR regression on embedded > panels > > [Why] > Regression found in some embedded panels traces back to the earliest > upstreamed ASSR patch. The changed code flow are causing problems with > some panels. > > [How] > - Change ASSR enabling code while preserving original code flow > as much as possible > - Simplify the code on guarding with internal display flag > > Bug: > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugz > illa.kernel.org%2Fshow_bug.cgi%3Fid%3D213779&data=04%7C01%7Cal > exander.deucher%40amd.com%7Ce32d71d4386e4ae8ec0808d950148f5e%7C > 3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637628871500920897%7 > CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJ > BTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=wsm8GZ9dxUHah8az > u3uC%2B%2BeLu5wQiQuVhzwQOqZCnMQ%3D&reserved=0 > Bug: > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitla > b.freedesktop.org%2Fdrm%2Famd%2F- > %2Fissues%2F1620&data=04%7C01%7Calexander.deucher%40amd.com > %7Ce32d71d4386e4ae8ec0808d950148f5e%7C3dd8961fe4884e608e11a82d99 > 4e183d%7C0%7C0%7C637628871500920897%7CUnknown%7CTWFpbGZsb3d8 > eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3 > D%7C1000&sdata=D6bXgLCoPAVutKRagSPfPWw1FTUjY5fa5qSqm38nN > QM%3D&reserved=0 > Reviewed-by: Alex Deucher <alexander.deucher@xxxxxxx> > Signed-off-by: Stylon Wang <stylon.wang@xxxxxxx> > Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx> > Cc: stable@xxxxxxxxxxxxxxx > > 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 12066f5a53fc..9fb8c46dc606 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 > @@ -1820,8 +1820,7 @@ bool perform_link_training_with_retries( > */ > panel_mode = > DP_PANEL_MODE_DEFAULT; > } > - } else > - panel_mode = DP_PANEL_MODE_DEFAULT; > + } > } > #endif > > @@ -4650,7 +4649,10 @@ enum dp_panel_mode > dp_get_panel_mode(struct dc_link *link) > } > } > > - if (link->dpcd_caps.panel_mode_edp) { > + if (link->dpcd_caps.panel_mode_edp && > + (link->connector_signal == SIGNAL_TYPE_EDP || > + (link->connector_signal == SIGNAL_TYPE_DISPLAY_PORT && > + link->is_internal_display))) { > return DP_PANEL_MODE_EDP; > } >
Attachment:
0001-drm-amd-display-Fix-ASSR-regression-on-embedded-pane.patch
Description: 0001-drm-amd-display-Fix-ASSR-regression-on-embedded-pane.patch