Blame SOURCES/0002-gpu-kms-Reset-CRTC-mode-and-output-list-if-no-resour.patch

180070
From a192b9abd77aa14ae794850e41d210472f86b9b0 Mon Sep 17 00:00:00 2001
180070
From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
180070
Date: Thu, 25 Jun 2020 10:09:48 +0200
180070
Subject: [PATCH 2/2] gpu-kms: Reset CRTC, mode and output list if no resources
180070
180070
On device removal, the next resource retrieval will fail; handle this by
180070
just clearing the CRTC, mode and outputs.
180070
---
180070
 src/backends/native/meta-gpu-kms.c | 3 +++
180070
 1 file changed, 3 insertions(+)
180070
180070
diff --git a/src/backends/native/meta-gpu-kms.c b/src/backends/native/meta-gpu-kms.c
180070
index 93e509def5..dc93abb7b1 100644
180070
--- a/src/backends/native/meta-gpu-kms.c
180070
+++ b/src/backends/native/meta-gpu-kms.c
180070
@@ -871,6 +871,9 @@ meta_gpu_kms_read_current (MetaGpu  *gpu,
180070
                      local_error->message);
180070
           gpu_kms->resources_init_failed_before = TRUE;
180070
         }
180070
+      meta_gpu_take_outputs (gpu, NULL);
180070
+      meta_gpu_take_modes (gpu, NULL);
180070
+      meta_gpu_take_crtcs (gpu, NULL);
180070
       return TRUE;
180070
     }
180070
 
180070
-- 
180070
2.26.2
180070