From mboxrd@z Thu Jan 1 00:00:00 1970 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=GyuoPuGi2q/mLeFiXk5FYXaUDwN8e2ZJJ9JPnEuDcIioQFV378qNSDzxrvMpgaeKB7F8 nUJaG1iof8cR5GzawqN+88a7ExBHo5truM9ktJByP4+mZ7Ye4j+RUte/yXyE70Znk6zXL pMCT6dyEV7FU50iVDO0fWCGYE+Xpcga7ocab21PXsqIFz1H7u+96jmVqlxiw1UXUNyEnf guEBANdwI5R680XLzmnERnn7PIZWoLCfvcQzmd6+QJAJLVtWR+SwuF0BocGAMgNXtuv+p wY09RkdlBxPgp7vaq98T5e8I757uVx+gSpto3t6DGj5zBXJ9WidBi6cdPkDUU6RjlnA== 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=zdAQOXVY5RNN+C+aV8KZAQ320FnXRoNozx1nhvFxsDSG2blWTqF8oJZk4aQFdc6xxnL7 k2SOY9lvirSR7Z/GpdUGVVb9YOR6j68K/H5P1BuHtAm0k3JGGbTNaL8mUEcySbemVd+4U JSFocQ/a70uZnTI2WY/DLAg77png4EaEeSyrEt2xBYElZSbtsh2vxng/7iV5rVS3c73sv ZkBBDnSXvr8TpDbnXyVH3uFB8zAN775XxEZD2Wipb2j/lUCX3QZ0f1mHgZbWgopfNLbeF 88TnTbXCeTJan2fukHn1J8o2w84Hl2IiRt9RpHTYIbgjy9ypoakrXVx+knQoJsTpAPw== 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 8F25D606A337; Tue, 1 Dec 2026 14:33:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8F25D606A337 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: devicetree@vger.kernel.org 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/