From: jsg Date: Fri, 4 Aug 2023 08:24:05 +0000 (+0000) Subject: drm/amd/display: Check if link state is valid X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=88b13db6bf7e40d5a94f21d15fb2bd7da2142a03;p=openbsd drm/amd/display: Check if link state is valid From Rodrigo Siqueira 810329d3d41890e49d75cde006bf3ddf1ccebb9a in linux-6.1.y/6.1.43 03ce7b387e8b0f4a1dc97a878545bdf7c7f23251 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c b/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c index cca01434441..beb2d7f103c 100644 --- a/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c +++ b/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c @@ -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;