ab0e4d
From 561339d4d04c5481a3239017d714f035fc5bc55a Mon Sep 17 00:00:00 2001
ab0e4d
From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?=
ab0e4d
 <marmarek@invisiblethingslab.com>
ab0e4d
Date: Tue, 3 Mar 2020 21:20:34 +0100
ab0e4d
Subject: [PATCH] Consider also drm_dev_register when looking for gpu driver
ab0e4d
ab0e4d
DRM drivers are filtered for drm_crtc_init symbol,
ab0e4d
but not all drivers use it. Especially, cirrus driver
ab0e4d
doesn't use it since Linux 5.2.
ab0e4d
ab0e4d
The practical result is text plymouth theme instead of graphical when in qemu.
ab0e4d
ab0e4d
Fix it by looking also for drm_dev_register symbol.
ab0e4d
Suggested by @haraldh
ab0e4d
Fixes #712
ab0e4d
ab0e4d
(cherry picked from commit ebeed55c073eeaf78b738fe2c91bb6327a2c3bfe)
ab0e4d
ab0e4d
Resolves: #1874506
ab0e4d
---
ab0e4d
 modules.d/50drm/module-setup.sh | 2 +-
ab0e4d
 1 file changed, 1 insertion(+), 1 deletion(-)
ab0e4d
ab0e4d
diff --git a/modules.d/50drm/module-setup.sh b/modules.d/50drm/module-setup.sh
ab0e4d
index 23545e34..a1711c00 100755
ab0e4d
--- a/modules.d/50drm/module-setup.sh
ab0e4d
+++ b/modules.d/50drm/module-setup.sh
ab0e4d
@@ -40,6 +40,6 @@ installkernel() {
ab0e4d
             fi
ab0e4d
         done
ab0e4d
     else
ab0e4d
-        dracut_instmods -o -s "drm_crtc_init" "=drivers/gpu/drm" "=drivers/staging"
ab0e4d
+        dracut_instmods -o -s "drm_crtc_init|drm_dev_register" "=drivers/gpu/drm" "=drivers/staging"
ab0e4d
     fi
ab0e4d
 }
ab0e4d