]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Thu, 7 Dec 2023 22:41:54 +0000 (17:41 -0500)
commit0497ae6f8830816d9277a8d5c8d9bf5966f292e1
tree317f1ce851a7d5e970ed7a4c3793258b245f8b40
parentdf2a5f74e6eda50e1376a32bd60402a28ed51c8e
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