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 B1846606A32A for ; Tue, 1 Dec 2026 14:45:46 +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=tv2qdXU6 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=3EKhL0gFY4RO7yw2pXMXMLb0bKLyUIW47xMmCQARrdU=; b=tv2qdXU62xGPJUxabuaJYydzcg Jsw+8lahx7zOyrBNHV+sDPt4ke7t9wNFjyA5nT4fbOp1h3b0pi+7t7zNTrZrGXm3g3oQWBJvbFYlm RmtBkP/a3KurVzTtWb1JWdyRFQDQnP9tXKETK3KiCFv2DnKT+WPEpYAu67reRQmkzUlUTs5sA1DkA 80hc7lxkN0yLpdn5Gsia8EWnln/bRpU1PS6wACZe0BAa+pv5VE6ICqWAQR786RmG6eU8ieMwqOhlx gVLW/L1RXdfyZjIO3hSRd68ng6InPY7vUYj+p7yNY5DgOLjDJfxF6v9YkI8xJVL0iB+7u/ctwEJG9 +TX88vcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYP6f-00000008Q3R-1Gt1; Tue, 01 Dec 2026 14:45:21 +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 1xYP6b-00000008Q2Q-2ntk; Tue, 01 Dec 2026 14:45:19 +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 1xYP6L-0000000019m-0Dvk; Tue, 01 Dec 2026 14:45:01 +0000 Date: Tue, 1 Dec 2026 14:44:57 +0000 From: Daniel Golle To: Nicolas Dufresne , Detlev Casanova Cc: Paul Kocialkowski , Mauro Carvalho Chehab , Hans Verkuil , Heiko Stuebner , Ezequiel Garcia , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stephen Boyd , Brian Masney , Jerome Brunet , Philipp Zabel , Sakari Ailus , Michael Riesch , Mehdi Djait , Gerald Loacker , Dustin Lundquist , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: Re: [RFC PATCH 0/6] media: rockchip: RKVENC v1 H.264/HEVC encoder for the RV1126 Message-ID: References: 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_064517_919966_297449C7 X-CRM114-Status: GOOD ( 14.68 ) 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 Nicolas, Detlev, A follow-up on question 3 of this RFC, after reading the VEPU510 thread [1] again. There the deciding criterion was memory protection: an encoder that can confine its DMA through an IOMMU gets the DRM-style driver with Vulkan Video in Mesa, and the V4L2 stateless interface is for hardware that cannot. RKVENC v1 has its own IOMMU (two MMU instances, venc_mmu in patch 5/6), so by that criterion it belongs on your side, not under a V4L2 interface. My cover letter did not take that into account. So, more precisely than question 3: 1. Is RKVENC v1 (RV1109/RV1126 "vepu541", RK3566/RK3568 "vepu540") in scope for the DRM and Vulkan Video work, or is that limited to the VEPU5xx generation (VEPU510/VEPU580) for the foreseeable future? 2. If it is in scope: is there a branch or a description of the kernel interface I could start from? The RV1126 back end (register image builder, recovery, devfreq and cooling) would carry over, and I would rather contribute it there than build a V4L2 driver you would then have to retire. One practical point for that path: the RV1126 is a Cortex-A7 camera SoC without a GPU, typically running OpenWrt or Buildroot with GStreamer serving RTSP. Is a GPU-less Vulkan Video device in Mesa something you expect to be practical on such targets? 3. If it is not in scope: would a V4L2 driver be acceptable for it? Paul's stateless encoder series needs a second implementation from another vendor [2], and RKVENC v1 would be one; I have offered it to him in that thread [3]. Your concern in [1] was that an exposed API cannot be transitioned later. Without DRM work planned for this block, the V4L2 driver would be its only interface, not an interim one. On the rest of the RFC: the Sashiko findings and the Media CI checks are being worked through, the bitstream overflow handling in particular. Question 5 is settled: I have an RK3568 board and will test the vepu540 variant before the next version. The next version waits for your answer here, since it decides its shape. Dustin, thanks for testing this on the Comet. Noted that your Tested-by covers H.264 only. Cheers, Daniel [1] https://lore.kernel.org/all/082e1141c38205222a91abf13b1a97d9a00e117a.camel@collabora.com/ [2] https://lore.kernel.org/all/48271d518bb25f552309de12758e9a9995905f0c.camel@collabora.com/ [3] https://lore.kernel.org/all/aw7atQdQEvg-I5Zc@makrotopia.org/