From patchwork Wed Mar 20 17:37:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Link Mauve X-Patchwork-Id: 13598049 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 59F0DC6FD1F for ; Wed, 20 Mar 2024 17:38:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=GM2DabH//lnyJjc8/dwQVUS6hP5DGCYh8HeMnKCjrjA=; b=2RKqqOMzKptm0G u2K9Zfz4cPzQDB+XqlmtFqIhmBIOthSCwHKnghn5632BTF3Dj51/9Yb5Di9wcfUUAOdO42EjOz9RP V60bia2NqiSez1nax6OayaaOKpBmGPg+NS5XLBzvMzU/AOo+j+vszcevTTlakPeQ03LVm3f1tH/YG sn6alK/xhv1Lk+PDivYLwk4Q420/U862XZvlsYlLHaAr+sPwQqtWsCbKQH5I4LOFbRys67E7iDCkt 89HIAu2rXGSzJjhLfEXeex3ylbIWztW3atedILGwdD1Y2ZZaBScnZnFQatzWrlowaYabNRz0yBKbT tGYkbFH6r1V8I9GFb0oQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rmzsy-00000000Veb-1LKc; Wed, 20 Mar 2024 17:37:56 +0000 Received: from luna.linkmauve.fr ([82.65.109.163]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rmzss-00000000Vc6-4B4i; Wed, 20 Mar 2024 17:37:52 +0000 Received: by luna.linkmauve.fr (Postfix, from userid 1000) id E7254FDAD15; Wed, 20 Mar 2024 18:37:44 +0100 (CET) From: Emmanuel Gil Peyrot To: linux-kernel@vger.kernel.org Cc: Emmanuel Gil Peyrot , Ezequiel Garcia , Philipp Zabel , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Joerg Roedel , Will Deacon , Robin Murphy , Sebastian Reichel , Cristian Ciocaltea , Dragan Simic , Shreeya Patel , Chris Morgan , Andy Yan , Nicolas Frattaroli , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev Subject: [PATCH 0/4] Enable JPEG encoding on rk3588 Date: Wed, 20 Mar 2024 18:37:29 +0100 Message-ID: <20240320173736.2720778-1-linkmauve@linkmauve.fr> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240320_103751_206739_72B4B7A6 X-CRM114-Status: UNSURE ( 9.59 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Only the JPEG encoder is available for now, although there are patches for the undocumented VP8 encoder floating around[0]. This has been tested on a rock-5b, resulting in four /dev/video* encoders. The userspace program I’ve been using to test them is Onix[1], using the jpeg-encoder example, it will pick one of these four at random (but displays the one it picked): % ffmpeg -i -pix_fmt yuvj420p temp.yuv % jpeg-encoder temp.yuv NV12 output.jpeg [0] https://patchwork.kernel.org/project/linux-rockchip/list/?series=789885 [1] https://crates.io/crates/onix Emmanuel Gil Peyrot (4): dt-bindings: iommu: rockchip: Fix rk3588 variant media: dt-binding: media: Document rk3588’s vepu121 arm64: dts: rockchip: Add VEPU121 to rk3588 media: verisilicon: Enable VEPU121 on rk3588 .../bindings/media/rockchip,rk3568-vepu.yaml | 1 + arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 82 ++++++++++++++++++- drivers/iommu/rockchip-iommu.c | 3 + .../media/platform/verisilicon/hantro_drv.c | 1 + .../media/platform/verisilicon/hantro_hw.h | 1 + .../platform/verisilicon/rockchip_vpu_hw.c | 13 +++ 6 files changed, 100 insertions(+), 1 deletion(-)