drm/amd/display: Set plane update flags for all planes in reset
authorjsg <jsg@openbsd.org>
Wed, 1 Dec 2021 10:47:39 +0000 (10:47 +0000)
committerjsg <jsg@openbsd.org>
Wed, 1 Dec 2021 10:47:39 +0000 (10:47 +0000)
From Nicholas Kazlauskas
3187623096091d8c60231de5ca0e020bfa5e6ee9 in linux 5.10.y/5.10.83
21431f70f6014f81b0d118ff4fcee12b00b9dd70 in mainline linux

sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 5dff589..c3ae118 100644 (file)
@@ -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;
                        }
                }