mirror of
https://github.com/torvalds/linux.git
synced 2026-12-02 19:42:26 +00:00
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: Harry Vanzylldejong <[email protected]> Acked-by: Tom Chung <[email protected]> Signed-off-by: Evgenii Krasnikov <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
This commit is contained in:
committed by
Alex Deucher
parent
e955b54732
commit
d2069326d2
@@ -3317,9 +3317,14 @@ 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);
|
||||
if (link->psr_settings.psr_feature_enabled) {
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user