drm/amd/display: Allow idle opts for no flip case on PSR panel
authorAlvin Lee <alvin.lee2@amd.com>
Mon, 12 Feb 2024 19:43:08 +0000 (14:43 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 27 Mar 2024 05:32:56 +0000 (01:32 -0400)
commite37f5bd8cbdc5f20ff86c13686b1a2b8f0f5bdc6
treefa964c40c2f62863ffdc176c5bbeef7e31e77a16
parent0355b24bdec3b69ba31375c83d94fa80ca2c7ae1
drm/amd/display: Allow idle opts for no flip case on PSR panel

[Why & How]
There is a corner case where a single PSR panel
fails to enter idle optimizations if the panel
is not flipping (no planes or DPMS_OFF == true).
This is because the panel will not enter PSR if it's
not flipping, but this will prevent the FW idle opt
path from being executed. To handle this case we will
allow entry to idle opt from driver side even when a
PSR panel is connected under the following scenarios:
1. Only a single PSR panel is connected
2. PSR panel is not flipping

Reviewed-by: Samson Tam <samson.tam@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Alvin Lee <alvin.lee2@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c