]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: Fix assertion due to disable/enable CM blocks
authorAric Cyr <Aric.Cyr@amd.com>
Tue, 5 May 2026 20:27:29 +0000 (16:27 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 May 2026 15:45:40 +0000 (11:45 -0400)
commit2f28f0063a117d55dfa1672a1698cfe8fb2ee5c3
treebb173ba0089c36d7710afd3d6d2ba54b58bd5bd9
parentb11107cb63e40a69676081870ba5305c6c089ac3
drm/amd/display: Fix assertion due to disable/enable CM blocks

[why]
Some dc state transitions can result in CM blocks being disabled, then
re-enabled.  The disable will set a defer bit, but re-enable will not
clear it.  When optimizing later, an assert will be hit due to incorrect
expected HW state.

[how]
Clear defer bits if the block is re-enabled before optimization is
executed.

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Signed-off-by: Aric Cyr <Aric.Cyr@amd.com>
Signed-off-by: Ivan Lipski <ivan.lipski@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dpp/dcn30/dcn30_dpp.c
drivers/gpu/drm/amd/display/dc/dpp/dcn30/dcn30_dpp_cm.c
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp_dscl.c