提交 6094b913 编写于 作者: S Shirish S 提交者: Alex Deucher

drm/amd/display: explicitly disable psr_feature_enable appropriately

[Why]
If psr_feature_enable is set to true by default, it continues to be enabled
for non capable links.

[How]
explicitly disable the feature on links that are not capable of the same.

Fixes: 8c322309 ("drm/amd/display: Enable PSR")
Signed-off-by: NShirish S <shirish.s@amd.com>
Reviewed-by: NLeo Li <sunpeng.li@amd.com>
Reviewed-by: NMario Limonciello <mario.limonciello@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 5.15+
上级 17d819e2
...@@ -60,11 +60,15 @@ static bool link_supports_psrsu(struct dc_link *link) ...@@ -60,11 +60,15 @@ static bool link_supports_psrsu(struct dc_link *link)
*/ */
void amdgpu_dm_set_psr_caps(struct dc_link *link) void amdgpu_dm_set_psr_caps(struct dc_link *link)
{ {
if (!(link->connector_signal & SIGNAL_TYPE_EDP)) if (!(link->connector_signal & SIGNAL_TYPE_EDP)) {
link->psr_settings.psr_feature_enabled = false;
return; return;
}
if (link->type == dc_connection_none) if (link->type == dc_connection_none) {
link->psr_settings.psr_feature_enabled = false;
return; return;
}
if (link->dpcd_caps.psr_info.psr_version == 0) { if (link->dpcd_caps.psr_info.psr_version == 0) {
link->psr_settings.psr_version = DC_PSR_VERSION_UNSUPPORTED; link->psr_settings.psr_version = DC_PSR_VERSION_UNSUPPORTED;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册