[openwrt/openwrt] kernel: disable IGD (video DRM) support

LEDE Commits lede-commits at lists.infradead.org
Sun May 21 05:26:41 PDT 2023


chunkeey pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/3b2337b467b7bb39746a244e82506ffbbfae4897

commit 3b2337b467b7bb39746a244e82506ffbbfae4897
Author: Philip Prindeville <philipp at redfish-solutions.com>
AuthorDate: Wed May 17 09:38:48 2023 -0600

    kernel: disable IGD (video DRM) support
    
    IGD is only useful when accelerating a VM guest that wants to direct
    render to memory in the host's framebuffer, but since OpenWrt
    typically runs on headless hardware, this serves no purpose.
    
    Also build vfio with VFIO_NOIOMMU undefined (to get all of the code
    enabled), but allow it to be enabled via boot-time modparams
    settings (or at run-time via sysfs writes to
    "/sys/module/vfio/parameters/enable_unsafe_noiommu_mode".
    
    Signed-off-by: Philip Prindeville <philipp at redfish-solutions.com>
---
 package/kernel/linux/modules/virt.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/kernel/linux/modules/virt.mk b/package/kernel/linux/modules/virt.mk
index 85f47aacbf..90226b4806 100644
--- a/package/kernel/linux/modules/virt.mk
+++ b/package/kernel/linux/modules/virt.mk
@@ -82,6 +82,8 @@ define KernelPackage/vfio
 	CONFIG_VFIO \
 	CONFIG_VFIO_NOIOMMU=n \
 	CONFIG_VFIO_MDEV=n
+  MODPARAMS.vfio:=\
+	enable_unsafe_noiommu_mode=n
   FILES:= \
 	$(LINUX_DIR)/drivers/vfio/vfio.ko \
 	$(LINUX_DIR)/drivers/vfio/vfio_virqfd.ko \
@@ -102,7 +104,7 @@ define KernelPackage/vfio-pci
   DEPENDS:=@TARGET_x86_64 @PCI_SUPPORT +kmod-vfio +kmod-irqbypass
   KCONFIG:= \
 	CONFIG_VFIO_PCI \
-	CONFIG_VFIO_PCI_IGD=y
+	CONFIG_VFIO_PCI_IGD=n
   FILES:= \
 	$(LINUX_DIR)/drivers/vfio/pci/vfio-pci-core.ko \
 	$(LINUX_DIR)/drivers/vfio/pci/vfio-pci.ko




More information about the lede-commits mailing list