From 435fe185e335a147f5edb803561509e1f0cb4e70 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 15 Sep 2014 09:09:19 +0100 Subject: [PATCH] sna: Update the list of outputs after a failed modeset In case we have a hotplug at just the wrong time, we can fail a modeset with a stale connector. Before attempting to recover, probe the kernel for the current state. Signed-off-by: Chris Wilson --- src/sna/sna_display.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index df6d3845..54ebe786 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -2173,6 +2173,7 @@ error: sna_crtc->offset = saved_offset; sna_crtc->transform = saved_transform; sna_crtc->bo = saved_bo; + sna_mode_discover(sna); return FALSE; }