From: jsg Date: Wed, 1 Dec 2021 10:47:39 +0000 (+0000) Subject: drm/amd/display: Set plane update flags for all planes in reset X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5571369be132f8b382ecbdc5a87934ce1eed748a;p=openbsd drm/amd/display: Set plane update flags for all planes in reset From Nicholas Kazlauskas 3187623096091d8c60231de5ca0e020bfa5e6ee9 in linux 5.10.y/5.10.83 21431f70f6014f81b0d118ff4fcee12b00b9dd70 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 5dff58904a4..c3ae118ff8d 100644 --- a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -1965,8 +1965,8 @@ static int dm_resume(void *handle) for (i = 0; i < dc_state->stream_count; i++) { dc_state->streams[i]->mode_changed = true; - for (j = 0; j < dc_state->stream_status->plane_count; j++) { - dc_state->stream_status->plane_states[j]->update_flags.raw + for (j = 0; j < dc_state->stream_status[i].plane_count; j++) { + dc_state->stream_status[i].plane_states[j]->update_flags.raw = 0xffffffff; } }