]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: fix stale info in link encoder assignment
authorRoy Chan <roy.chan@amd.com>
Thu, 4 Nov 2021 20:52:04 +0000 (16:52 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Nov 2021 21:58:08 +0000 (16:58 -0500)
commit6a96eeeef36cfcf29b9368a950d58707985275ac
treeae53625971701543b8877c30e5ac31afeecbb6ed
parentda99eadfc0bf9a33941fbe2a14977b478033ab41
drm/amd/display: fix stale info in link encoder assignment

[Why]
The link encoder assignment leaves the old stream data when it was
unassigned. When the clear encoder assignment is called, it based on the
old stale data to access the de-allocated stream.

[How]
There should be no need to explicitly clean up the link encoder
assignment if the unassign loop does the work properly, the loop should
base on the current state to clean up the assignment.

Also, the unassignment should better clean up the values in the
assignement slots as well.

Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Roy Chan <roy.chan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c