]> Gentwo Git Trees - linux/.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)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Oct 2025 18:09:06 +0000 (14:09 -0400)
commita7dc87f3448bea5ebe054f14e861074b9c289c65
treeffed508205e636ac9d01ce0cbd05350a1cabcc93
parentc0aa7cf49dd6cb302fe28e7183992b772cb7420c
drm/amd/display: Properly disable scaling on DCE6

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>
drivers/gpu/drm/amd/display/dc/dce/dce_transform.c
drivers/gpu/drm/amd/display/dc/dce/dce_transform.h