drm/amd/display: Reset cached PSR parameters after hibernate
[WHY] After hibernate system might be using old invalid psr_power_opt and psr_allow_active that never get reset [HOW] Reset cached Panel Self Refresh parameters when PSR is first configured for eDP in dc_link_setup_psr. Reviewed-by: Anthony Koo <Anthony.Koo@amd.com> Acked-by: Stylon Wang <stylon.wang@amd.com> Signed-off-by: Evgenii Krasnikov <Evgenii.Krasnikov@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
3b90318d44
commit
99c04671b1
|
@ -3317,9 +3317,12 @@ bool dc_link_setup_psr(struct dc_link *link,
|
|||
*/
|
||||
psr_context->frame_delay = 0;
|
||||
|
||||
if (psr)
|
||||
if (psr) {
|
||||
link->psr_settings.psr_feature_enabled = psr->funcs->psr_copy_settings(psr,
|
||||
link, psr_context, panel_inst);
|
||||
link->psr_settings.psr_power_opt = 0;
|
||||
link->psr_settings.psr_allow_active = 0;
|
||||
}
|
||||
else
|
||||
link->psr_settings.psr_feature_enabled = dmcu->funcs->setup_psr(dmcu, link, psr_context);
|
||||
|
||||
|
|
Loading…
Reference in New Issue