|
Peter Robinson |
faebfd |
From dee4f26adcfd9a9a0e4664f0dc22974b60b5eea2 Mon Sep 17 00:00:00 2001
|
|
Peter Robinson |
faebfd |
From: Nicolas Chauvet <kwizart@gmail.com>
|
|
Peter Robinson |
faebfd |
Date: Sat, 26 Sep 2020 15:01:55 +0200
|
|
Harald Hoyer |
460d2c |
Subject: [PATCH] 50drm: Check drm_encoder_init along drm_crtc_init
|
|
Peter Robinson |
faebfd |
|
|
Peter Robinson |
faebfd |
Some modules are involved in the display output without to rely on
|
|
Peter Robinson |
faebfd |
drm_crtc_init.
|
|
Peter Robinson |
faebfd |
|
|
Peter Robinson |
faebfd |
This is the case for the meson_dw_hdmi. This module need to be included
|
|
Peter Robinson |
faebfd |
into the initramfs in both hostonly and generic modes.
|
|
Peter Robinson |
faebfd |
|
|
Peter Robinson |
faebfd |
Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
|
|
Peter Robinson |
faebfd |
---
|
|
Peter Robinson |
faebfd |
modules.d/50drm/module-setup.sh | 4 ++--
|
|
Peter Robinson |
faebfd |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
Peter Robinson |
faebfd |
|
|
Peter Robinson |
faebfd |
diff --git a/modules.d/50drm/module-setup.sh b/modules.d/50drm/module-setup.sh
|
|
Peter Robinson |
faebfd |
index ad0e6d80..ddc1223d 100755
|
|
Peter Robinson |
faebfd |
--- a/modules.d/50drm/module-setup.sh
|
|
Peter Robinson |
faebfd |
+++ b/modules.d/50drm/module-setup.sh
|
|
Peter Robinson |
faebfd |
@@ -33,13 +33,13 @@ installkernel() {
|
|
Peter Robinson |
faebfd |
if [[ $hostonly ]]; then
|
|
Peter Robinson |
faebfd |
for i in /sys/bus/{pci/devices,platform/devices,virtio/devices,soc/devices/soc?}/*/modalias; do
|
|
Peter Robinson |
faebfd |
[[ -e $i ]] || continue
|
|
Peter Robinson |
faebfd |
- if hostonly="" dracut_instmods --silent -s "drm_crtc_init|drm_dev_register" -S "iw_handler_get_spy" $(<"$i"); then
|
|
Peter Robinson |
faebfd |
+ if hostonly="" dracut_instmods --silent -s "drm_crtc_init|drm_dev_register|drm_encoder_init" -S "iw_handler_get_spy" $(<"$i"); then
|
|
Peter Robinson |
faebfd |
if strstr "$(modinfo -F filename $(<"$i") 2>/dev/null)" radeon.ko; then
|
|
Peter Robinson |
faebfd |
hostonly='' instmods amdkfd
|
|
Peter Robinson |
faebfd |
fi
|
|
Peter Robinson |
faebfd |
fi
|
|
Peter Robinson |
faebfd |
done
|
|
Peter Robinson |
faebfd |
else
|
|
Peter Robinson |
faebfd |
- dracut_instmods -o -s "drm_crtc_init|drm_dev_register" "=drivers/gpu/drm" "=drivers/staging"
|
|
Peter Robinson |
faebfd |
+ dracut_instmods -o -s "drm_crtc_init|drm_dev_register|drm_encoder_init" "=drivers/gpu/drm" "=drivers/staging"
|
|
Peter Robinson |
faebfd |
fi
|
|
Peter Robinson |
faebfd |
}
|
|
Peter Robinson |
faebfd |
|