mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 13:37:36 +02:00
drm/amd/display: Set plane update flags for all planes in reset
[ Upstream commit21431f70f6] [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:cdaae8371a("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
f634c755a0
commit
3187623096
|
|
@ -1963,8 +1963,8 @@ static int dm_resume(void *handle)
|
||||||
|
|
||||||
for (i = 0; i < dc_state->stream_count; i++) {
|
for (i = 0; i < dc_state->stream_count; i++) {
|
||||||
dc_state->streams[i]->mode_changed = true;
|
dc_state->streams[i]->mode_changed = true;
|
||||||
for (j = 0; j < dc_state->stream_status->plane_count; j++) {
|
for (j = 0; j < dc_state->stream_status[i].plane_count; j++) {
|
||||||
dc_state->stream_status->plane_states[j]->update_flags.raw
|
dc_state->stream_status[i].plane_states[j]->update_flags.raw
|
||||||
= 0xffffffff;
|
= 0xffffffff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user