Re: [PATCH 00/14] media: Add V4L2 H.264 stateless encode and VC8000E support

From: Nicolas Dufresne

Date: Tue Dec 01 2026 - 14:14:35 EST


Hi Daniel,

Le mardi 01 décembre 2026 à 14:33 +0000, Daniel Golle a écrit :
> One open point outside our two series: in the VEPU510 thread Nicolas
> explained that encoders which can protect memory through an IOMMU,
> like this one, are meant for the DRM-style driver with Vulkan Video
> in userspace. I am asking him and Detlev in my RFC thread [1] whether
> RKVENC v1 is in scope for that work. If it is not, the V4L2 stateless
> driver would be the interface for this block, and the port is worth
> starting.

Thanks for you work. I'll speak for my part here. Due to the high amount of
media patches, its been a little hard for me to keep-up with the V4L2 side
of stateless encoders. From a top level maintainer perspective, of course a
second implementation is needed, along with the missing V4L2 Stateless
Decoder specification. Though, I have no intention to block any direction,
as long as contributors are also ready to support and maintain the new
interface. I will defer to Paul reviewing and commenting on the a second
implementation, and possibly handling the maintenance from there. I
understand you went for a fully stateful implementation. Unlike decoders,
this has always been an option, I think Paul wanted to introduce an hybrid
to reduce the kernel complexity and maintain some of the flexibility
stateless provides. Either way, there is so much these driver can share,
that its totally worth having the discussion. And if you adopt Paul's
stateless approach, then the better.

Though, Detlev and I are entirely focus on something more future proof in
our opinion when comes to sateless encoders (and eventually decoders). We
want to make drivers for Vulkan Video standard, removing V4L2 standard, and
do this without having to do a large amount of compromises. We have early
version of this driver working on our target, RK3588. We are polishing the
kernel API, and Mesa side, as we are following the upstream GPU driver
model. I know it sends a mix signal, and people will endup debating V4L2 vs
DRM here, but this is our conviction for future of embedded CODECs on
Linux. We are very happy if anyone wants to jump on the boat with us, but
getting upstream with that is not just a matter of having code. There is a
lot of things to rediscover, safety, memory management, fencing, etc. And
we also have to work with Khronos, since Vulkan Video only driver is not
yet officially supported.

Though, I do engage in maintaining rkvdec and hantro as long as people care
about it. The DRM drivers can always expose a mail box API internally, so
if we want to, we can eventually make the V4L2 and DRM drivers cooperate,
its just not really the priority right now for us. We want to do this
right, and upstream. Detlev will soon reply on your other emails with more
details on the other project and how you can help there.

regards,
Nicolas

Attachment: signature.asc
Description: This is a digitally signed message part