From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 6A97F606A320 for ; Tue, 1 Dec 2026 14:33:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=gYjfkl/c DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=DmrVv4dQeYNECAQ70IeYDJa+RTUFfRhTrlfM+irn3wA=; b=gYjfkl/c+bsWelqSr53TvaBfED 7F4Kd/Js9ndd9/6kFH9mF5htsZcmcqToUujIGW0MGBV9duD4j+KdrqH0ofnhoRgHZN8vr/4QrNOeM LnYgt/a2U3hV0wL3gLqtG26U7apNskX8hEJ+qQAtlEjORfdiH2d3iarL2AYL54MRXRHgPUwkNO17i IoaEEn+m4tD48GrvE01U/Chv/sPtLMmzbg8sPgEuJ2GnPs9w4+M4TCUWtbUKhvUq/dyVtLKYKeaiC n9Avxq4WFmU41iHi1VuqzGPhdkUloiYCqU5vaSU5BVAtQst8A+kvaDeZILqvYjUGrhwNIomzYABHk +uyeBkrQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYOvJ-00000008OZy-3up0; Tue, 01 Dec 2026 14:33:37 +0000 Received: from pidgin.makrotopia.org ([2a07:2ec0:3002::65]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYOvD-00000008OZY-1lBp for linux-arm-kernel@lists.infradead.org; Tue, 01 Dec 2026 14:33:36 +0000 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-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261201_063331_476933_A66239E6 X-CRM114-Status: GOOD ( 18.21 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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/