]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Properly disable scaling on DCE6
authorTimur Kristóf <timur.kristof@gmail.com>
Thu, 25 Sep 2025 18:45:24 +0000 (20:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Oct 2025 14:23:09 +0000 (16:23 +0200)
commit8f99b75869183ae1a6e3101a1a21ee5a4fa74e0d
tree4a92a47638b7a78f8ac71ead8ba38caa09532148
parentffb11feb89ab753759daa27d8c518ec8397384bd
drm/amd/display: Properly disable scaling on DCE6

[ Upstream commit a7dc87f3448bea5ebe054f14e861074b9c289c65 ]

SCL_SCALER_ENABLE can be used to enable/disable the scaler
on DCE6. Program it to 0 when scaling isn't used, 1 when used.
Additionally, clear some other registers when scaling is
disabled and program the SCL_UPDATE register as recommended.

This fixes visible glitches for users whose BIOS sets up a
mode with scaling at boot, which DC was unable to clean up.

Fixes: b70aaf5586f2 ("drm/amd/display: dce_transform: add DCE6 specific macros,functions")
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/dce/dce_transform.c
drivers/gpu/drm/amd/display/dc/dce/dce_transform.h