FAILED: patch "[PATCH] drm/amd/display: Fix ASSR regression on embedded panels" failed to apply to 5.13-stable tree
[email protected]
maintainerThe 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 <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 6be50f5d83adc9541de3d5be26e968182b5ac150 Mon Sep 17 00:00:00 2001
From: Stylon Wang <[email protected]>
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
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +5 -3
@@ -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 ; }
[Public]
Quoted 10 lines
-----Original Message-----
From: [email protected] <[email protected]>
Sent: Monday, July 26, 2021 5:02 AM
To: Wang, Chao-kai (Stylon) <[email protected]>; Deucher, Alexander <[email protected]>
Cc: [email protected]
Subject: FAILED: patch "[PATCH] drm/amd/display: Fix ASSR regression on embedded panels" failed to apply to 5.13-stable tree
Quoted 4 lines
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 <[email protected]>.
Hi Greg, please use the attached backported patch.
Thanks,
Alex
Quoted 65 lines
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From
6be50f5d83adc9541de3d5be26e968182b5ac150Mon Sep 17 00:00:00 2001
From: Stylon Wang <[email protected]>
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 flagBug:
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=0Reviewed-by Alex Deucher <[email protected]>Signed-off-by Stylon Wang <[email protected]>Signed-off-by Alex Deucher <[email protected]>drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +1
-2@@ -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)
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c enum dp_panel_mode · line 4658
Quoted 10 lines
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +4
-1} } -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 ; }
From fbd33a150a3d469f34ff7cef82cbdd9c4484ff1e Mon Sep 17 00:00:00 2001
From: Stylon Wang <[email protected]>
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
--- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 3 --- 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +0 -3
@@ -1675,9 +1675,6 @@ static enum dp_panel_mode try_enable_assr(struct dc_stream_state *stream) } else panel_mode =DP_PANEL_MODE_DEFAULT ; -#else -/* turn off ASSR if the implementation is not compiled in */ - panel_mode =DP_PANEL_MODE_DEFAULT ;#endif return panel_mode; }
Signature · 1 line
2.31.1