[RFC PATCH 0/6] media: rockchip: RKVENC v1 H.264/HEVC encoder for the RV1126

Daniel Golle daniel at makrotopia.org
Tue Dec 1 06:44:57 PST 2026


Hi Nicolas, Detlev,

A follow-up on question 3 of this RFC, after reading the VEPU510
thread [1] again. There the deciding criterion was memory protection:
an encoder that can confine its DMA through an IOMMU gets the
DRM-style driver with Vulkan Video in Mesa, and the V4L2 stateless
interface is for hardware that cannot. RKVENC v1 has its own IOMMU
(two MMU instances, venc_mmu in patch 5/6), so by that criterion it
belongs on your side, not under a V4L2 interface. My cover letter did
not take that into account. So, more precisely than question 3:

1. Is RKVENC v1 (RV1109/RV1126 "vepu541", RK3566/RK3568 "vepu540") in
   scope for the DRM and Vulkan Video work, or is that limited to the
   VEPU5xx generation (VEPU510/VEPU580) for the foreseeable future?

2. If it is in scope: is there a branch or a description of the
   kernel interface I could start from? The RV1126 back end (register
   image builder, recovery, devfreq and cooling) would carry over, and
   I would rather contribute it there than build a V4L2 driver you
   would then have to retire. One practical point for that path: the
   RV1126 is a Cortex-A7 camera SoC without a GPU, typically running
   OpenWrt or Buildroot with GStreamer serving RTSP. Is a GPU-less
   Vulkan Video device in Mesa something you expect to be practical on
   such targets?

3. If it is not in scope: would a V4L2 driver be acceptable for it?
   Paul's stateless encoder series needs a second implementation from
   another vendor [2], and RKVENC v1 would be one; I have offered it to
   him in that thread [3]. Your concern in [1] was that an exposed API
   cannot be transitioned later. Without DRM work planned for this
   block, the V4L2 driver would be its only interface, not an interim
   one.

On the rest of the RFC: the Sashiko findings and the Media CI checks
are being worked through, the bitstream overflow handling in
particular. Question 5 is settled: I have an RK3568 board and will
test the vepu540 variant before the next version. The next version
waits for your answer here, since it decides its shape.

Dustin, thanks for testing this on the Comet. Noted that your
Tested-by covers H.264 only.

Cheers,


Daniel

[1] https://lore.kernel.org/all/082e1141c38205222a91abf13b1a97d9a00e117a.camel@collabora.com/
[2] https://lore.kernel.org/all/48271d518bb25f552309de12758e9a9995905f0c.camel@collabora.com/
[3] https://lore.kernel.org/all/aw7atQdQEvg-I5Zc@makrotopia.org/



More information about the Linux-rockchip mailing list