]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Clear encoder assignments when state cleared.
authorJimmy Kizito <Jimmy.Kizito@amd.com>
Wed, 20 Oct 2021 16:29:22 +0000 (12:29 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Nov 2021 16:32:34 +0000 (12:32 -0400)
commit696a4c8d1dc873f946a33969e960b95981364a5a
tree9267553c4c80148e6bb1d79c0f883c4724b38083
parent125c2090c363493da6deb485e5e6badee760c8bb
drm/amd/display: Clear encoder assignments when state cleared.

[Why]
State can be cleared without removing individual streams (by
calling dc_remove_stream_from_ctx()). This can leave the
encoder assignment module in an incoherent state and cause
future assignments to be incorrect.

[How]
Clear encoder assignments when committing 0 streams or
re-initializing hardware.

Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Jimmy Kizito <Jimmy.Kizito@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@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/core/dc_link_enc_cfg.c