]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Reset DSC memory status
authorDuncan Ma <duncan.ma@amd.com>
Mon, 27 May 2024 20:59:59 +0000 (16:59 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jun 2024 21:10:37 +0000 (17:10 -0400)
commit7210195f1bc51ba02cffa45b27ddb5c962faa606
treec272305f0b42c96110a90a2c4432a7b8d4121d04
parente1e75cf7334c0e31f4c37d715b964784d45685fa
drm/amd/display: Reset DSC memory status

[WHY]
When system exits idle state followed by enabling the display,
DSC memory may still be forced in a deep sleep or shutdown state.

Intermittent DSC corruption is seen when display is visible.

[HOW]
When DSC is enabled, reset dsc memory to force and disable status.

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Duncan Ma <duncan.ma@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/dsc/dcn20/dcn20_dsc.c
drivers/gpu/drm/amd/display/dc/dsc/dcn20/dcn20_dsc.h
drivers/gpu/drm/amd/display/dc/dsc/dcn35/dcn35_dsc.c