Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=148.251.105.195 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796152463; b=1pDzc95zJEnkZ7VK6IPwvLpinZsfh5SP3b3itWslhhrNsoF1QQ3XyfZG1eOG/v+/EQMW v0Cn4/wSGMmaZ0FH6adSoyYHMzpg025XCE6C9kSlxDccwcHZPR3N39Hqmieyz4wwMrm35 Q9FPHvUlraR6lmOwLifOA94ZFSJd8CXiW+1u/hoUtTPk6k6ysncrAO4i0XAH7rP1V8jrX vDLDGBY/HSyoEkZJA2wcB5YwdGF9vciwLksXcyIC7gXW0PTNvuOB/Q6Z+H2cXJn5YQL/E XKnkBwrjQIDDn6zwvYHJKFAOZqp4ZzCKqJ1sh/HgKHOSWfiPlMHJM7RLe1JLsDpaD/g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796152463; h=DMARC-Filter:DKIM-Signature:Received:Message-ID:Subject:From:To:Cc: Date:In-Reply-To:References:Autocrypt:Organization:Content-Type: User-Agent:MIME-Version; bh=zV2TRCcjZmx0x4WldVm6NgDc+TLeWkOYXgttEenGW4s=; b=C9RmziixB2DpJyqnlWin3Yy7pgHYA4/8N5F049fQ3WymbZjjL5wTqNpYr6ZD/GQnNlm3 cVhSgAhRd6ANHKAARZ443v6brcqMlE9qPkjDmaYHKfgYA/Votpc7lj8u1Py/CEXUISZ6t WmP2+rkZ24bi7mqvLTcAhxcfinKG9iqwI2o2sTG60kEjPuqEiTPqyWm9MJxB7G4xnegHt bSCpNg1rHENnq6gxLFJUe9uoBtiRv11OQ1eSY0NOHdb+z8jzu6oWZWPY/+77jb61E9NxM CGWFxEnz3X1fB6QikqGAu/nWUBlYLj+WWe5TagthwPetFPWXckfifW+0SfJYXjv/fDw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=mail header.b=nbJ3Q056; arc=none smtp.remote-ip=148.251.105.195 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0CFD9606A320 for ; Tue, 1 Dec 2026 19:14:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0CFD9606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=mail header.b=nbJ3Q056 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1796152461; bh=zV2TRCcjZmx0x4WldVm6NgDc+TLeWkOYXgttEenGW4s=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=nbJ3Q056Am3A+IpPd9eJRuqU9NfVe7gteix27XtMWdEMSm21cafr+vNfYI39umv95 Sa+jEzNPmsu5Ij5bq4GFK01zHKLYJe4E16JZbWC0osE4XVYUKcf1t1WYOWi3qjNLIn Wgk3AMeJpcqHTJ/HtW4nI5BQ75tinA8dFI216z5SK4VP9OqQSO7EcCC96rPM20qo2f JxKG/Gp1xF3I0p/Yma87d5pVeBBxpRqF3e5XIb1MEc/avYkhCXagkUp3PSixWTUyJt Hv7vzjkDt5aHkJJegCJscN0nfIXU16OPjRYGDfP/P6JHYnFJthTb91pWmfuD7N/8hV c/dIVJHRUaHBw== Received: from [100.64.0.214] (unknown [100.64.0.214]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange secp256r1 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nicolas) by bali.collaboradmins.com (Postfix) with ESMTPSA id D0E6617E0E04; Tue, 01 Dec 2026 20:14:18 +0100 (CET) Message-ID: <3e19a76855cb5a005558043318fc8b1bcc597eb5.camel@collabora.com> Subject: Re: [PATCH 00/14] media: Add V4L2 H.264 stateless encode and VC8000E support From: Nicolas Dufresne To: Daniel Golle , Paul Kocialkowski Cc: Michael Nazzareno Trimarchi , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Benjamin Gaignard , Philipp Zabel , Mauro Carvalho Chehab , Hans Verkuil , Marco Felsch , Michael Tretter , Detlev Casanova Date: Tue, 01 Dec 2026 14:14:17 -0500 In-Reply-To: References: <20260522101653.2565125-1-paulk@sys-base.io> <48271d518bb25f552309de12758e9a9995905f0c.camel@collabora.com> Autocrypt: addr=nicolas.dufresne@collabora.com; prefer-encrypt=mutual; keydata=mDMEaCN2ixYJKwYBBAHaRw8BAQdAM0EHepTful3JOIzcPv6ekHOenE1u0vDG1gdHFrChD /e0J05pY29sYXMgRHVmcmVzbmUgPG5pY29sYXNAbmR1ZnJlc25lLmNhPoicBBMWCgBEAhsDBQsJCA cCAiICBhUKCQgLAgQWAgMBAh4HAheABQkJZfd1FiEE7w1SgRXEw8IaBG8S2UGUUSlgcvQFAmibrjo CGQEACgkQ2UGUUSlgcvQlQwD/RjpU1SZYcKG6pnfnQ8ivgtTkGDRUJ8gP3fK7+XUjRNIA/iXfhXMN abIWxO2oCXKf3TdD7aQ4070KO6zSxIcxgNQFtDFOaWNvbGFzIER1ZnJlc25lIDxuaWNvbGFzLmR1Z nJlc25lQGNvbGxhYm9yYS5jb20+iJkEExYKAEECGwMFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4 AWIQTvDVKBFcTDwhoEbxLZQZRRKWBy9AUCaCyyxgUJCWX3dQAKCRDZQZRRKWBy9ARJAP96pFmLffZ smBUpkyVBfFAf+zq6BJt769R0al3kHvUKdgD9G7KAHuioxD2v6SX7idpIazjzx8b8rfzwTWyOQWHC AAS0LU5pY29sYXMgRHVmcmVzbmUgPG5pY29sYXMuZHVmcmVzbmVAZ21haWwuY29tPoiZBBMWCgBBF iEE7w1SgRXEw8IaBG8S2UGUUSlgcvQFAmibrGYCGwMFCQll93UFCwkIBwICIgIGFQoJCAsCBBYCAw ECHgcCF4AACgkQ2UGUUSlgcvRObgD/YnQjfi4+L8f4fI7p1pPMTwRTcaRdy6aqkKEmKsCArzQBAK8 bRLv9QjuqsE6oQZra/RB4widZPvphs78H0P6NmpIJ Organization: Collabora Canada Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-FhNAOyQ+5wdA74gMmLzA" User-Agent: Evolution 3.62.1 (3.62.1-1.fc45) X-Mailing-List: imx@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 --=-FhNAOyQ+5wdA74gMmLzA Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Daniel, Le mardi 01 d=C3=A9cembre 2026 =C3=A0 14:33 +0000, Daniel Golle a =C3=A9cri= t=C2=A0: > 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 --=-FhNAOyQ+5wdA74gMmLzA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTvDVKBFcTDwhoEbxLZQZRRKWBy9AUCaw8ciQAKCRDZQZRRKWBy 9PC6AP9vOLTqWPBOuD/oiduCUX0nV6nDbADPU2tIQIuwp5cQpgD/ZIsotmmh/1PF amvybE6pB0PdacUnnFPVlsXsax8Gfg0= =HpUT -----END PGP SIGNATURE----- --=-FhNAOyQ+5wdA74gMmLzA--