drm/amd/display: Enable ASSR in Linux DM
Subsystems (3)
PATCH 1/1 drm/amd/display: Enable ASSR in Linux DM
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.
--- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +16 -0
@@ -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) {
Signature · 6 lines
2.25.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 39 lines · Stylon Wang
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 <[email protected]>--- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +16
-0@@ -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) {Signature · 1 line
2.25.1
Signature · 2 lines
Rodrigo Siqueira https://siqueira.tech
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Rodrigo Siqueira
AppliedApplied to amd-staging-drm-next.
Thanks
Quoted 46 lines · Rodrigo Siqueira
Quoted 39 lines · Stylon Wang
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 <[email protected]>--- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +16
-0@@ -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) {Signature · 1 line
2.25.1Reviewed-by Rodrigo Siqueira <[email protected]>Signature · 2 lines
Rodrigo Siqueira https://siqueira.tech
Signature · 2 lines
Rodrigo Siqueira https://siqueira.tech
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx