OSDN Git Service

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)
commit589bd2f03f87563d6dc4f480d47e5aabc09e4784
tree9267553c4c80148e6bb1d79c0f883c4724b38083
parent0b55313cbdd3cf9095774dff8782a79a4a6b599f
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