Skip to content

Add a DRM driver to support AI Processing Unit (APU)

Alexandre Bailon dri-devel linux-arm-kernel linux-devicetree linux-media linux-mediatek lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7drm: Add support of AI Processor Unit (APU)drivers/gpu/drm/Kconfig drivers/gpu/drm/Makefile drivers/gpu/drm/apu/Kconfig +4 more+388 -00 replies
2/7drm/apu: Add memory allocatordrivers/gpu/drm/apu/Makefile drivers/gpu/drm/apu/apu_drv.c drivers/gpu/drm/apu/apu_gem.c +2 more+104 -10 replies
3/7drm/apu: Add support of requestsdrivers/gpu/drm/apu/Kconfig drivers/gpu/drm/apu/Makefile drivers/gpu/drm/apu/apu_drv.c +3 more+697 -450 replies
4/7drm/apu: Add support of IOMMUdrivers/gpu/drm/apu/apu_drv.c drivers/gpu/drm/apu/apu_gem.c drivers/gpu/drm/apu/apu_internal.h +2 more+233 -11 reply
5/7drm/apu: allow platform driver to implement their own mmap functiondrivers/gpu/drm/apu/apu_drv.c drivers/gpu/drm/apu/apu_internal.h+39 -12 replies
6/7drm/apu: Add support for a simulated APUdrivers/gpu/drm/apu/Kconfig drivers/gpu/drm/apu/Makefile drivers/gpu/drm/apu/simu_apu.c+325 -00 replies
7/7dt-bindings: Add bidings for mtk,apu-drmDocumentation/devicetree/bindings/gpu/mtk,apu-drm.yaml+38 -07 replies

Reviews trailers per patch

6 of 7 patches have a Reviewed-by or Acked-by.

PatchJulien Stephan
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] Add a DRM driver to support AI Processing Unit (APU)

This adds a DRM driver that implements communication between the CPU and an APU. The driver target embedded device that usually run inference using some prebuilt models. The goal is to provide common infrastructure that could be re-used to support many accelerators. Both kernel, userspace and firmware tries to use standard and existing to leverage the development and maintenance effort. The series implements two platform drivers, one for simulation and another one for the mt8183 (compatible with mt8365).

For the people interested by the firmware or userspace library, the sources are available here:
https://gitlab.baylibre.com/baylibre/libapu/libapu

The support of APU has to be upstreamed to libdrm. Until this is done, you could find the source here:
https://gitlab.baylibre.com/baylibre/libapu/libdrm/-/tree/abailon/main

The driver for mt8183 depends on this series (which is currently blocked):
https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=620429

Alexandre Bailon (5):
drm: Add support of AI Processor Unit (APU)
drm/apu: Add memory allocator
drm/apu: Add support of requests
drm/apu: Add support of IOMMU
dt-bindings: Add bidings for mtk,apu-drm

Julien Stephan (2):
drm/apu: allow platform driver to implement their own mmap function drm/apu: Add support for a simulated APU

 .../devicetree/bindings/gpu/mtk,apu-drm.yaml  |  38 ++
 drivers/gpu/drm/Kconfig                       |   2 +
 drivers/gpu/drm/Makefile                      |   1 +
 drivers/gpu/drm/apu/Kconfig                   |  22 +
 drivers/gpu/drm/apu/Makefile                  |  10 +
 drivers/gpu/drm/apu/apu_drv.c                 | 282 +++++++++
 drivers/gpu/drm/apu/apu_gem.c                 | 230 +++++++
 drivers/gpu/drm/apu/apu_internal.h            | 205 ++++++
 drivers/gpu/drm/apu/apu_sched.c               | 592 ++++++++++++++++++
 drivers/gpu/drm/apu/simu_apu.c                | 313 +++++++++
 include/uapi/drm/apu_drm.h                    |  81 +++
 11 files changed, 1776 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/gpu/mtk,apu-drm.yaml
 create mode 100644 drivers/gpu/drm/apu/Kconfig
 create mode 100644 drivers/gpu/drm/apu/Makefile
 create mode 100644 drivers/gpu/drm/apu/apu_drv.c
 create mode 100644 drivers/gpu/drm/apu/apu_gem.c
 create mode 100644 drivers/gpu/drm/apu/apu_internal.h
 create mode 100644 drivers/gpu/drm/apu/apu_sched.c
 create mode 100644 drivers/gpu/drm/apu/simu_apu.c
 create mode 100644 include/uapi/drm/apu_drm.h
Signature · 1 line
2.39.2