From 51b78aaaae176f369f9cfb96e6d47727808ce11f Mon Sep 17 00:00:00 2001 From: Joe Zheng Date: Sat, 8 Feb 2025 01:38:36 +0000 Subject: [PATCH] kernel: package intel_vpu driver Add package for linux intel_vpu driver for Intel NPU/VPU Signed-off-by: Joe Zheng Link: https://github.com/openwrt/openwrt/pull/17904 Signed-off-by: Robert Marko --- 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 efa4246d1f5..f8117da0b5f 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 3900637a215..5ab986a2924 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 1d08d31daa0..91506fd112d 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 d529f2c7c89..7665f03004b 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 2b6ab88dc3e..f184ef4b899 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