Commit eaacf13b authored by Evgenii Krasnikov's avatar Evgenii Krasnikov Committed by Alex Deucher

Revert "drm/amd/display: Reset cached PSR parameters after hibernate"

This reverts commit d2069326.

Commit d2069326 ("drm/amd/display: Reset cached PSR parameters after hibernate")
causes a system hang when game resolution is changed. Revert it.
Reviewed-by: default avatarJayendran Ramani <Jayendran.Ramani@amd.com>
Reviewed-by: default avatarHarry Vanzylldejong <Harry.Vanzylldejong@amd.com>
Acked-by: default avatarWayne Lin <wayne.lin@amd.com>
Signed-off-by: default avatarEvgenii Krasnikov <Evgenii.Krasnikov@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 0f05c998
...@@ -3317,14 +3317,9 @@ bool dc_link_setup_psr(struct dc_link *link, ...@@ -3317,14 +3317,9 @@ bool dc_link_setup_psr(struct dc_link *link,
*/ */
psr_context->frame_delay = 0; psr_context->frame_delay = 0;
if (psr) { if (psr)
link->psr_settings.psr_feature_enabled = psr->funcs->psr_copy_settings(psr, link->psr_settings.psr_feature_enabled = psr->funcs->psr_copy_settings(psr,
link, psr_context, panel_inst); link, psr_context, panel_inst);
if (link->psr_settings.psr_feature_enabled) {
link->psr_settings.psr_power_opt = 0;
link->psr_settings.psr_allow_active = 0;
}
}
else else
link->psr_settings.psr_feature_enabled = dmcu->funcs->setup_psr(dmcu, link, psr_context); link->psr_settings.psr_feature_enabled = dmcu->funcs->setup_psr(dmcu, link, psr_context);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment