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=1796136315; b=mejls7ECzdMmbXIeIKwZrEe+lQIuwyy7sJLB2WPSJXiI5N+M379OhO4YwiFc1GE2Yb/W LPD0ijf0hnQ6teit/LFtdv6wQi7nRB/kF5GUQ6/QtfKsAIMMnPBCT2wnR1NEqs2upj3wG 9sJDZtj385Ze1P1/7IFuhvA32ob7YoTt9Y2oxGJ/m5IUGkYRDUVofs66cavvsxcFmlbpJ 7Lm99UmHAJ22CETrHhRe4SscVM5oY6uoJIy8j53Y85Q5cav3lbTvpxZcLgTMaVfkXJaOe PROtqDV1EB60reDoPqgCofntAbACf0zWtaeCUKjA/KPbEyw+vk25qanfryDC+rRgF1Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796136315; h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=3EKhL0gFY4RO7yw2pXMXMLb0bKLyUIW47xMmCQARrdU=; b=fg5ZdeEetv2mHfM83IHJihAP+DrNk+4l0TML7lr5KRhWYpD1Ogw3IWTnYlEpF8mVlAEt YqFY4jpw6yHeBpWqkC7z54XlWxELCjKJFtqy5qpMmpYL1Yv4xvEab9dE5oj3bnWtrNhmB AnXdlL1zGB2AgfHWrmUC92tVHT9fWKXseq69BpKalW+uIWSI0EQcz2dbTrDyqOOxtQTdy AkYnsWCw4vlJBmyLEWweVhGJ6iUsxFUgLCbI0zmt9HU0yUHVXOANskalAYSaYS1TuHH/N eSdqj0mrqc1pzAnekASJjXxrEQDdoSbFAJNXA8TnXweGOa1qThy0EgYw928VrJmj+WA== 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 5F39A606A329; Tue, 1 Dec 2026 14:45:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5F39A606A329 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 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-Mailing-List: linux-media@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 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/