]> www.infradead.org Git - users/dwmw2/linux.git/commit
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:17:03 +0000 (15:17 -0400)
commit5922deae69beabae98644f3cd902df45da932297
treef7da260bee94b823c42aeebbf0f44a93e8b450c4
parent5b600c1f49962c1dbc62719916bf47c791ac0777
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