drm/amd/display: Fix idle optimization checks for multi-display and dual eDP
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Thu, 25 Apr 2024 15:26:59 +0000 (11:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 May 2024 19:49:34 +0000 (15:49 -0400)
commitb436f1cbed9c59d89ce63bd3b81b0e603c29d466
tree769ca72571f4bf6bb2784f231c974c4b82477e3d
parent3f0b5af17575c95457538335750c630014d1fa6a
drm/amd/display: Fix idle optimization checks for multi-display and dual eDP

[Why]
Idle optimizations are blocked if there's more than one eDP connector
on the board - blocking S0i3 and IPS2 for static screen.

[How]
Fix the checks to correctly detect number of active eDP.
Also restrict the eDP support to panels that have correct feature
support.

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@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/dcn35/dcn35_hwseq.c