Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.142.180.65 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796135611; b=AkgOGV1NCgEI3Ttg+7Jqu1F8Aany0PezpSiKtGy7Eu2Vp7ph8+B0z/rS7i9wys2fNpMO 4QCAq9nfO8jHVN2tIeoyhxU+a+eOfQSLluZyNcpR91IXl/kZGcZbqkRjeo+03lwFPk4NT x4Mo7g/5Z8Vm7MstFxXgZaekw1g1AzjGTgw41ooytmvwxk6lFYwndkAJefZWmiJywiob4 IGq3dff5kn65g5p0aI1kcn79cu/rZ6vqmtrotikiHy7ajD5iGxl+LZg902oSyyL0TDvmT wn8UTzKKIh9Sk0aXWCI2E9wEgUD6Np1OW0kTeb7WqyYycFj4s5W//tsokVyjWkmLFfg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796135611; h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=DmrVv4dQeYNECAQ70IeYDJa+RTUFfRhTrlfM+irn3wA=; b=BjP5vq8yJtMUQCciUMD10YY8BZFwuWr+bVmOcl8cHbPoZW84ti67mtInrARFPFT5tBVv BRxuuAGUER93xS53MjHUnmMWQDknsWHlbFOzcoJX5lrXxmBxC88XR0b8gvtM/C2sVXzCP Q/aU1jm7g4Mau7GZSI1KsqUttJNe3y7WrU8N4PkRy+2hBPeQ7iM47Y9ecYb46W52Ir8CY E2poXhzWpCWXqNfG1iL+YeXqHzd3or7A6kQPbLVIKupCXURRb/RaBHgV5LRgnI+YV/+Cl z41gilOjpYwc534tW7wUmdZ1DO0Vzp2hE6OuRkJK1FLWWR5LUwNsDAGI6SzegWqinBg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.remote-ip=185.142.180.65 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (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 8F35B606A338 for ; Tue, 1 Dec 2026 14:33:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8F35B606A338 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256:X25519MLKEM768) (Exim 4.100.1) (envelope-from ) id 1xYOvA-0000000012i-1zxB; Tue, 01 Dec 2026 14:33:28 +0000 Date: Tue, 1 Dec 2026 14:33:25 +0000 From: Daniel Golle To: Paul Kocialkowski Cc: Nicolas Dufresne , 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 Subject: Re: [PATCH 00/14] media: Add V4L2 H.264 stateless encode and VC8000E support Message-ID: References: <20260522101653.2565125-1-paulk@sys-base.io> <48271d518bb25f552309de12758e9a9995905f0c.camel@collabora.com> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hi Paul, On Thu, Sep 24, 2026 at 10:30:42PM +0200, Paul Kocialkowski wrote: > > A second implementation, not just a variant of the same brand would > > also be nice. > > I still have it in mind to add support for the Allwinner encoder based > on my earlier stateful-ish attempt. Hopefully that work can be funded. I can offer one: the Rockchip RKVENC v1 encoder of the RV1109/RV1126 ("vepu541") and RK3566/RK3568 ("vepu540"). It is Rockchip's own IP, not a Hantro derivative, and it encodes both H.264 and HEVC. I posted a stateful RFC driver for it two weeks ago [1]. Its hardware back end already takes a per-picture description without V4L2 types (struct rkvenc_frame), and the GOP, picture numbering, parameter set writer and rate control sit in separate files, so a stateless front end on your core replaces those and keeps the back end. I have RV1126 cameras and an RK3568 board to test on. Since you said the core and helpers change in v2, I would rather port to v2 than to v1. Could you share your work-in-progress branch, or let me know when it has settled enough to build a second driver on? Two questions to plan around: - HEVC. RKVENC v1 is used for HEVC at least as much as for H.264 on these cameras. Is an HEVC part on your roadmap for the series, or would you welcome a proposal on top of it once the H.264 part and the spec are settled? - Rate control. My driver's frame-level rate control went through a few rounds on real camera streams; I summarised the lessons in my reply to Nicolas's review of 02/14 [2]. I would like to feed those into your helper instead of carrying a driver-local model. 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. Cheers, Daniel [1] https://lore.kernel.org/all/cover.1794666330.git.daniel@makrotopia.org/ [2] https://lore.kernel.org/all/aw7Y5HKZhk6F7iKy@makrotopia.org/