[openwrt/openwrt] kernel: package intel_vpu driver

LEDE Commits lede-commits at lists.infradead.org
Thu May 15 01:09:45 PDT 2025


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/51b78aaaae176f369f9cfb96e6d47727808ce11f

commit 51b78aaaae176f369f9cfb96e6d47727808ce11f
Author: Joe Zheng <joe.zheng at intel.com>
AuthorDate: Sat Feb 8 01:38:36 2025 +0000

    kernel: package intel_vpu driver
    
    Add package for linux intel_vpu driver for Intel NPU/VPU
    
    Signed-off-by: Joe Zheng <joe.zheng at intel.com>
    Link: https://github.com/openwrt/openwrt/pull/17904
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 package/kernel/linux/modules/video.mk | 14 ++++++++++++++
 target/linux/x86/64/config-6.12       |  3 +++
 target/linux/x86/64/config-6.6        |  3 +++
 target/linux/x86/config-6.12          |  1 +
 target/linux/x86/config-6.6           |  1 +
 5 files changed, 22 insertions(+)

diff --git a/package/kernel/linux/modules/video.mk b/package/kernel/linux/modules/video.mk
index efa4246d1f..f8117da0b5 100644
--- a/package/kernel/linux/modules/video.mk
+++ b/package/kernel/linux/modules/video.mk
@@ -523,6 +523,20 @@ endef
 
 $(eval $(call KernelPackage,drm-i915))
 
+define KernelPackage/drm-ivpu
+  SUBMENU:=$(VIDEO_MENU)
+  TITLE:=Intel VPU DRM support
+  DEPENDS:=@TARGET_x86_64 +ivpu-firmware
+  KCONFIG:=CONFIG_DRM_ACCEL_IVPU
+  FILES:=$(LINUX_DIR)/drivers/accel/ivpu/intel_vpu.ko
+  AUTOLOAD:=$(call AutoProbe,intel_vpu)
+endef
+
+define KernelPackage/drm-ivpu/description
+  Direct Rendering Manager (DRM) support for Intel VPU
+endef
+
+$(eval $(call KernelPackage,drm-ivpu))
 
 define KernelPackage/drm-imx
   SUBMENU:=$(VIDEO_MENU)
diff --git a/target/linux/x86/64/config-6.12 b/target/linux/x86/64/config-6.12
index 3900637a21..5ab986a292 100644
--- a/target/linux/x86/64/config-6.12
+++ b/target/linux/x86/64/config-6.12
@@ -134,6 +134,9 @@ CONFIG_DMA_NEED_SYNC=y
 CONFIG_DMA_OPS_HELPERS=y
 CONFIG_DMA_SHARED_BUFFER=y
 CONFIG_DRM=y
+# CONFIG_DRM_ACCEL_HABANALABS is not set
+# CONFIG_DRM_ACCEL_IVPU is not set
+# CONFIG_DRM_ACCEL_QAIC is not set
 # CONFIG_DRM_AMD_ISP is not set
 CONFIG_DRM_BOCHS=y
 CONFIG_DRM_BRIDGE=y
diff --git a/target/linux/x86/64/config-6.6 b/target/linux/x86/64/config-6.6
index 1d08d31daa..91506fd112 100644
--- a/target/linux/x86/64/config-6.6
+++ b/target/linux/x86/64/config-6.6
@@ -140,6 +140,9 @@ CONFIG_DMA_ACPI=y
 CONFIG_DMA_OPS=y
 CONFIG_DMA_SHARED_BUFFER=y
 CONFIG_DRM=y
+# CONFIG_DRM_ACCEL_HABANALABS is not set
+# CONFIG_DRM_ACCEL_IVPU is not set
+# CONFIG_DRM_ACCEL_QAIC is not set
 CONFIG_DRM_BOCHS=y
 CONFIG_DRM_BRIDGE=y
 CONFIG_DRM_BUDDY=y
diff --git a/target/linux/x86/config-6.12 b/target/linux/x86/config-6.12
index d529f2c7c8..7665f03004 100644
--- a/target/linux/x86/config-6.12
+++ b/target/linux/x86/config-6.12
@@ -106,6 +106,7 @@ CONFIG_DMIID=y
 CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
 CONFIG_DMI_SYSFS=y
 CONFIG_DNOTIFY=y
+CONFIG_DRM_ACCEL=y
 # CONFIG_DRM_I915_GVT_KVMGT is not set
 CONFIG_DUMMY_CONSOLE=y
 # CONFIG_DP83TG720_PHY is not set
diff --git a/target/linux/x86/config-6.6 b/target/linux/x86/config-6.6
index 2b6ab88dc3..f184ef4b89 100644
--- a/target/linux/x86/config-6.6
+++ b/target/linux/x86/config-6.6
@@ -104,6 +104,7 @@ CONFIG_DMIID=y
 CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
 CONFIG_DMI_SYSFS=y
 CONFIG_DNOTIFY=y
+CONFIG_DRM_ACCEL=y
 # CONFIG_DRM_I915_GVT_KVMGT is not set
 CONFIG_DUMMY_CONSOLE=y
 CONFIG_DYNAMIC_SIGFRAME=y




More information about the lede-commits mailing list