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

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