Skip to content

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

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4dt-bindings: Add bidings for mtk,apu-drmDocumentation/devicetree/bindings/gpu/mtk,apu-drm.yaml+38 -02 replies
2/4DRM: Add support of AI Processor Unit (APU)drivers/gpu/drm/Kconfig drivers/gpu/drm/Makefile drivers/gpu/drm/apu/Kconfig +7 more+1378 -03 replies
3/4rpmsg: Add support of AI Processor Unit (APU)drivers/rpmsg/Kconfig drivers/rpmsg/Makefile drivers/rpmsg/apu_rpmsg.c+195 -01 reply
4/4ARM64: mt8183-pumpkin: Add the APU DRM devicearch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts+6 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

This adds a DRM driver that implements communication between the CPU and an APU.
This uses VirtIO buffer to exchange messages.
For the data, we allocate a GEM object and map it using IOMMU to make it available to the APU.
The driver is relatively generic, and should work with any SoC implementing hardware accelerator for AI if they use support remoteproc and VirtIO.

For the people interested by the firmware or userspace library, the sources are available here:
https://github.com/BayLibre/open-amp/tree/v2020.01-mtk/apps/examples/apu

This RFC is a rewrite of a previous RFC that was not using DRM:
https://patchwork.kernel.org/project/linux-remoteproc/cover/[email protected]/

Alexandre Bailon (4):
dt-bindings: Add bidings for mtk,apu-drm
DRM: Add support of AI Processor Unit (APU)
rpmsg: Add support of AI Processor Unit (APU)
ARM64: mt8183-pumpkin: Add the APU DRM device

 .../devicetree/bindings/gpu/mtk,apu-drm.yaml  |  38 ++
 .../boot/dts/mediatek/mt8183-pumpkin.dts      |   6 +
 drivers/gpu/drm/Kconfig                       |   2 +
 drivers/gpu/drm/Makefile                      |   1 +
 drivers/gpu/drm/apu/Kconfig                   |  10 +
 drivers/gpu/drm/apu/Makefile                  |   7 +
 drivers/gpu/drm/apu/apu_drm_drv.c             | 238 +++++++
 drivers/gpu/drm/apu/apu_gem.c                 | 232 +++++++
 drivers/gpu/drm/apu/apu_internal.h            |  89 +++
 drivers/gpu/drm/apu/apu_sched.c               | 634 ++++++++++++++++++
 drivers/rpmsg/Kconfig                         |  10 +
 drivers/rpmsg/Makefile                        |   1 +
 drivers/rpmsg/apu_rpmsg.c                     | 184 +++++
 include/drm/apu_drm.h                         |  59 ++
 include/uapi/drm/apu_drm.h                    | 106 +++
 15 files changed, 1617 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_drm_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/rpmsg/apu_rpmsg.c
 create mode 100644 include/drm/apu_drm.h
 create mode 100644 include/uapi/drm/apu_drm.h
Signature · 1 line
2.31.1