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: 13598053 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 8B808C54E58 for ; Wed, 20 Mar 2024 17:38:08 +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=4jG/LFL5wGLWqTEz59tRD9LUD2uWCBwKwD+4Q+enalQ=; b=QHMFCe+fH5O68t PlDnPcB4wv0Vvk4LaalVe1MI1nae68yNqZRo8S5QcCCbg9FYL8Pb8Nz8jSMBE3IPd7gtiFtnbiMM7 P1uEdpNS8lcMTJxEGryQWaW+6K9wOVKBLQRXDKE2usaE6PcLu/NyO+yD50aAFr62HWD2S902DU1dk UwBugF6QrwYJ6TThZP193vTm+qJ6B9wOA5LnZcAhTgWM8M48k+QLJZjtE8VNRihUJnxOSwEZ+sJ5M PoDpPYKiuh2aKuICYl1BN678RR+r6oaHOoIelU0Boqz6BH0Qry2uEhTT1ouqIffXgf9tMZzpkbx73 wlDjD4wMf3tkZTKVYzvw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rmzsx-00000000VeX-38qN; Wed, 20 Mar 2024 17:37:55 +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-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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(-)