]> www.infradead.org Git - users/willy/xarray.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)
commite43098f6abb033142810e695c1b3d9cf61e19849
treeae53625971701543b8877c30e5ac31afeecbb6ed
parent64266f0a45c8323861d3756cbe3dc419e973917c
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