drm/amd/display: Check if link state is valid
authorjsg <jsg@openbsd.org>
Fri, 4 Aug 2023 08:24:05 +0000 (08:24 +0000)
committerjsg <jsg@openbsd.org>
Fri, 4 Aug 2023 08:24:05 +0000 (08:24 +0000)
From Rodrigo Siqueira
810329d3d41890e49d75cde006bf3ddf1ccebb9a in linux-6.1.y/6.1.43
03ce7b387e8b0f4a1dc97a878545bdf7c7f23251 in mainline linux

sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c

index cca0143..beb2d7f 100644 (file)
@@ -1517,6 +1517,8 @@ static bool context_changed(
        for (i = 0; i < dc->current_state->stream_count; i++) {
                if (dc->current_state->streams[i] != context->streams[i])
                        return true;
+               if (!context->streams[i]->link->link_state_valid)
+                       return true;
        }
 
        return false;