Commit 35b13763 authored by Jacek Lawrynowicz's avatar Jacek Lawrynowicz Committed by Daniel Vetter
Browse files

accel/ivpu: Introduce a new DRM driver for Intel VPU



VPU stands for Versatile Processing Unit and it's a CPU-integrated
inference accelerator for Computer Vision and Deep Learning
applications.

The VPU device consist of following components:
  - Buttress - provides CPU to VPU integration, interrupt, frequency and
    power management.
  - Memory Management Unit (based on ARM MMU-600) - translates VPU to
    host DMA addresses, isolates user workloads.
  - RISC based microcontroller - executes firmware that provides job
    execution API for the kernel-mode driver
  - Neural Compute Subsystem (NCS) - does the actual work, provides
    Compute and Copy engines.
  - Network on Chip (NoC) - network fabric connecting all the components

This driver supports VPU IP v2.7 integrated into Intel Meteor Lake
client CPUs (14th generation).

Module sources are at drivers/accel/ivpu and module name is
"intel_vpu.ko".

This patch includes only very besic functionality:
  - module, PCI device and IRQ initialization
  - register definitions and low level register manipulation functions
  - SET/GET_PARAM ioctls
  - power up without firmware

Co-developed-by: default avatarKrystian Pradzynski <krystian.pradzynski@linux.intel.com>
Signed-off-by: default avatarKrystian Pradzynski <krystian.pradzynski@linux.intel.com>
Signed-off-by: default avatarJacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Reviewed-by: default avatarOded Gabbay <ogabbay@kernel.org>
Reviewed-by: default avatarJeffrey Hugo <quic_jhugo@quicinc.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20230117092723.60441-2-jacek.lawrynowicz@linux.intel.com
parent 6f849817
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -6894,6 +6894,15 @@ T: git https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/accel.git
F:	Documentation/accel/
F:	drivers/accel/
DRM ACCEL DRIVERS FOR INTEL VPU
M:	Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
M:	Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
L:	dri-devel@lists.freedesktop.org
S:	Supported
T:	git git://anongit.freedesktop.org/drm/drm-misc
F:	drivers/accel/ivpu/
F:	include/uapi/drm/ivpu_accel.h
DRM DRIVERS FOR ALLWINNER A10
M:	Maxime Ripard <mripard@kernel.org>
M:	Chen-Yu Tsai <wens@csie.org>
+1 −0
Original line number Diff line number Diff line
@@ -189,3 +189,4 @@ obj-$(CONFIG_COUNTER) += counter/
obj-$(CONFIG_MOST)		+= most/
obj-$(CONFIG_PECI)		+= peci/
obj-$(CONFIG_HTE)		+= hte/
obj-$(CONFIG_DRM_ACCEL)	+= accel/
 No newline at end of file
+2 −0
Original line number Diff line number Diff line
@@ -22,3 +22,5 @@ menuconfig DRM_ACCEL
	  major number than GPUs, and will be exposed to user-space using
	  different device files, called accel/accel* (in /dev, sysfs
	  and debugfs).

source "drivers/accel/ivpu/Kconfig"

drivers/accel/Makefile

0 → 100644
+3 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only

obj-y	+= ivpu/
+15 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only

config DRM_ACCEL_IVPU
	tristate "Intel VPU for Meteor Lake and newer"
	depends on DRM_ACCEL
	depends on X86_64 && !UML
	depends on PCI && PCI_MSI
	select FW_LOADER
	select SHMEM
	help
	  Choose this option if you have a system that has an 14th generation Intel CPU
	  or newer. VPU stands for Versatile Processing Unit and it's a CPU-integrated
	  inference accelerator for Computer Vision and Deep Learning applications.

	  If "M" is selected, the module will be called intel_vpu.
Loading