]> www.infradead.org Git - users/willy/xarray.git/commit
drm/amd/display: Cache streams targeting link when performing LT automation
authorMichael Strauss <michael.strauss@amd.com>
Thu, 17 Jul 2025 20:18:58 +0000 (16:18 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 28 Jul 2025 20:40:31 +0000 (16:40 -0400)
commitf5b69101f956f5b89605a13cb15f093a7906f2a1
tree4763dc4fab5cc2256fab8aa35ecde329b11ca18a
parent327aba7f558187e451636c77a1662a2858438dc9
drm/amd/display: Cache streams targeting link when performing LT automation

[WHY]
Last LT automation update can cause crash by referencing current_state and
calling into dc_update_planes_and_stream which may clobber current_state.

[HOW]
Cache relevant stream pointers and iterate through them instead of relying
on the current_state.

Reviewed-by: Wenjing Liu <wenjing.liu@amd.com>
Signed-off-by: Michael Strauss <michael.strauss@amd.com>
Signed-off-by: Ivan Lipski <ivan.lipski@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/link/accessories/link_dp_cts.c