Driver of Intel(R) Gaussian & Neural Accelerator
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest14 patches 39 repliesIn review
- v213 patches 7 repliesSuperseded
- v112 patches 21 repliesSuperseded
Changes in v3 from the cover letter
- PCI glue driver part split.
- GNA probe fail path made fully implicit.
- 'recovery_timeout' module parameter present under 'CONFIG_DEBUG_INTEL_GNA' flag only.
- build for X86_32 enabled.
- module initialization through 'module_pci_driver()'.
- gna_priv->file_list cleanup.
- 'gna_' prefix removed from source files' names.
- power management handling added.
- tests performed on kernel v5.12
- number of other/minor fixes
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | intel_gna: add driver moduleDocumentation/ Documentation/ Documentation/ +10 more | +240 | 1 reply | |
| 2/14 | intel_gna: add component of hardware operationdrivers/ drivers/ drivers/ +2 more | +232 | 1 reply | |
| 3/14 | intel_gna: read hardware info in the driverdrivers/ drivers/ drivers/ | +9 | 0 replies | |
| 4/14 | intel_gna: add memory handlingdrivers/ drivers/ drivers/ +3 more | +592 | 0 replies | |
| 5/14 | intel_gna: initialize mmudrivers/ | +12 | 0 replies | |
| 6/14 | intel_gna: add hardware idsdrivers/ drivers/ | +99 | 0 replies | |
| 7/14 | intel_gna: add request componentdrivers/ drivers/ drivers/ +4 more | +468 | 0 replies | |
| 8/14 | intel_gna: implement scoringdrivers/ drivers/ drivers/ +3 more | +321 | 0 replies | |
| 9/14 | intel_gna: add a work queue to process scoring requestsdrivers/ drivers/ drivers/ +1 more | +165 | 0 replies | |
| 10/14 | intel_gna: add interrupt handlerdrivers/ drivers/ drivers/ | +54 | 0 replies | |
| 11/14 | intel_gna: add ioctl handlerdrivers/ drivers/ drivers/ +3 more | +371 | 8 replies | |
| 12/14 | intel_gna: add a 'misc' devicedrivers/ drivers/ | +55 | 3 replies | |
| 13/14 | intel_gna: add file operations to a 'misc' devicedrivers/ | +57 | 1 reply | |
| 14/14 | intel_gna: add power managementdrivers/ drivers/ drivers/ +2 more | +76 | 0 replies |
Reviews trailers per patch
None of the 14 patches has a Reviewed-by or Acked-by.
| Patch | Savo Novakovic |
|---|---|
| 1/14 | T-b |
| 2/14 | T-b |
| 3/14 | T-b |
| 4/14 | T-b |
| 5/14 | T-b |
| 6/14 | T-b |
| 7/14 | T-b |
| 8/14 | T-b |
| 9/14 | T-b |
| 10/14 | T-b |
| 11/14 | T-b |
| 12/14 | T-b |
| 13/14 | T-b |
| 14/14 | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 00/14] Driver of Intel(R) Gaussian & Neural Accelerator
Dear kernel maintainers,
This submission is a kernel driver to support Intel(R) Gaussian & Neural Accelerator (Intel(R) GNA). Intel(R) GNA is a PCI-based neural co-processor available on multiple Intel platforms. AI developers and users can offload continuous inference workloads to an Intel(R) GNA device in order to free processor resources and save power. Noise reduction and speech recognition are the examples of the workloads Intel(R) GNA deals with while its usage is not limited to the two.
For a list of processors equipped with Intel(R) GNA device, please refer to this link:
https://docs.openvinotoolkit.org/latest/openvino_docs_IE_DG_supported_plugins_GNA.html
We think contributing this driver to the upstream kernel project is the best way for developers and users to get the latest Intel(R) GNA support in a Linux kernel, through the mainline to any Linux distributions installed on their systems. Upstreaming also enables contribution from developers around the world to the driver once it is merged.
The driver works with Intel(R) libraries in user space. The Intel(R) driver exposes a few IOCTL interfaces for use by libraries in user space. The libraries are open sourced and are available at:
https://github.com/intel/gna
---
Changelogs:
v1->v2:
- driver's new layout:
- driver name: gna -> intel_gna
- module name: gna -> intel_gna
- device file name: /dev/gnaN -> /dev/intel_gnaN
- driver's source directory: drivers/misc/gna/ -> drivers/misc/intel/gna/
- UAPI: include/uapi/misc/gna.h -> include/uapi/misc/intel/gna.h
- DOC: Documentation/misc-devices/gna.rst -> Documentation/misc-devices/intel/gna.rst
- 'MISC' device framework used
- fixes throughout GNA device's PCI management
- header files' includes and forward declarations cleanup
- ISR made static
- unused comments cleanup
- "_priv_" segment removed from function names
- tested: v5.11-rc3 -> v5.11
- number of other/minor fixes
v2->v3:
- PCI glue driver part split.
- GNA probe fail path made fully implicit.
- 'recovery_timeout' module parameter present under 'CONFIG_DEBUG_INTEL_GNA' flag only.
- build for X86_32 enabled.
- module initialization through 'module_pci_driver()'.
- gna_priv->file_list cleanup.
- 'gna_' prefix removed from source files' names.
- power management handling added.
- tests performed on kernel v5.12
- number of other/minor fixes
---
Maciej Kwapulinski (4):
intel_gna: add driver module
intel_gna: add interrupt handler
intel_gna: add a 'misc' device
intel_gna: add power management
Tomasz Jankowski (10):
intel_gna: add component of hardware operation
intel_gna: read hardware info in the driver
intel_gna: add memory handling
intel_gna: initialize mmu
intel_gna: add hardware ids
intel_gna: add request component
intel_gna: implement scoring
intel_gna: add a work queue to process scoring requests
intel_gna: add ioctl handler
intel_gna: add file operations to a 'misc' device
Documentation/misc-devices/index.rst | 1 + Documentation/misc-devices/intel/gna.rst | 48 ++ .../userspace-api/ioctl/ioctl-number.rst | 1 + MAINTAINERS | 7 + drivers/misc/Kconfig | 1 + drivers/misc/Makefile | 1 + drivers/misc/intel/gna/Kbuild | 5 + drivers/misc/intel/gna/Kconfig | 13 + drivers/misc/intel/gna/device.c | 350 +++++++++++++ drivers/misc/intel/gna/device.h | 106 ++++ drivers/misc/intel/gna/hw.c | 118 +++++ drivers/misc/intel/gna/hw.h | 106 ++++ drivers/misc/intel/gna/ioctl.c | 257 ++++++++++ drivers/misc/intel/gna/ioctl.h | 11 + drivers/misc/intel/gna/mem.c | 421 +++++++++++++++ drivers/misc/intel/gna/mem.h | 115 +++++ drivers/misc/intel/gna/pci.c | 149 ++++++ drivers/misc/intel/gna/pci.h | 12 + drivers/misc/intel/gna/request.c | 480 ++++++++++++++++++ drivers/misc/intel/gna/request.h | 67 +++ drivers/misc/intel/gna/score.c | 291 +++++++++++ drivers/misc/intel/gna/score.h | 17 + include/uapi/misc/intel/gna.h | 153 ++++++ 23 files changed, 2730 insertions(+) create mode 100644 Documentation/misc-devices/intel/gna.rst create mode 100644 drivers/misc/intel/gna/Kbuild create mode 100644 drivers/misc/intel/gna/Kconfig create mode 100644 drivers/misc/intel/gna/device.c create mode 100644 drivers/misc/intel/gna/device.h create mode 100644 drivers/misc/intel/gna/hw.c create mode 100644 drivers/misc/intel/gna/hw.h create mode 100644 drivers/misc/intel/gna/ioctl.c create mode 100644 drivers/misc/intel/gna/ioctl.h create mode 100644 drivers/misc/intel/gna/mem.c create mode 100644 drivers/misc/intel/gna/mem.h create mode 100644 drivers/misc/intel/gna/pci.c create mode 100644 drivers/misc/intel/gna/pci.h create mode 100644 drivers/misc/intel/gna/request.c create mode 100644 drivers/misc/intel/gna/request.h create mode 100644 drivers/misc/intel/gna/score.c create mode 100644 drivers/misc/intel/gna/score.h create mode 100644 include/uapi/misc/intel/gna.h
Signature · 1 line
2.28.0