drm/amd/display: Set plane update flags for all planes in reset
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tue, 9 Nov 2021 16:24:10 +0000 (11:24 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 22 Nov 2021 19:59:13 +0000 (14:59 -0500)
commit6984fa418b8efde7662af151bae4b8dc66e65fcf
tree7efbbbc60dd46161158f6c8d2c0da43f5dcaad64
parent1edf5ae1fdaffb67c1b93e98df670cbe535d13cf
drm/amd/display: Set plane update flags for all planes in reset

[Why]
We're only setting the flags on stream[0]'s planes so this logic fails
if we have more than one stream in the state.

This can cause a page flip timeout with multiple displays in the
configuration.

[How]
Index into the stream_status array using the stream index - it's a 1:1
mapping.

Fixes: cdaae8371aa9 ("drm/amd/display: Handle GPU reset for DC block")
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c