drm/amd/display: fix hw rotated modes when PSR-SU is enabled
authorHamza Mahfooz <hamza.mahfooz@amd.com>
Tue, 5 Dec 2023 19:55:04 +0000 (14:55 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 11 Dec 2023 17:41:05 +0000 (12:41 -0500)
commitf528ee145bd0076cd0ed7e7b2d435893e6329e98
treee2993b79e9ed1ea0faf796850ddb0e4168659447
parentdbfbf4740e40fbd39ceeb5c42ab301ac2edd7a9f
drm/amd/display: fix hw rotated modes when PSR-SU is enabled

We currently don't support dirty rectangles on hardware rotated modes.
So, if a user is using hardware rotated modes with PSR-SU enabled,
use PSR-SU FFU for all rotated planes (including cursor planes).

Cc: stable@vger.kernel.org
Fixes: 30ebe41582d1 ("drm/amd/display: add FB_DAMAGE_CLIPS support")
Reported-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/2952
Tested-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Tested-by: Bin Li <binli@gnome.org>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/dc/dc_hw_types.h
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c