Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp359555rdb; Thu, 5 Oct 2023 08:02:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IERAaKh1SPA4FA48cffsbvUmxvy0mSR2QQkTp2dJdztzQN7yLGA9Zhc+1j/1v5BoVGjUqDQ X-Received: by 2002:a05:6a00:15c6:b0:68e:45df:4648 with SMTP id o6-20020a056a0015c600b0068e45df4648mr6028516pfu.23.1696518147678; Thu, 05 Oct 2023 08:02:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696518147; cv=none; d=google.com; s=arc-20160816; b=nRp7iLoBMvr6tIsZhNyhthwaDjYYHc4rznV38OV8SlBvXL4ebKwMAFKUo6whMTgLM8 L29xSmav+5I0+x2funKyfTxozBH3RT57OI8zAf6F2gKE8IfeeJdJ2HVSZaGd3SNSqNi5 1C3A4N+RcJaM3vWjVUSlYx+7YBhIh2OWvxAEdnIcX9pY4QrH5LUio780PoCkdRVvO9+m X5VOo5gkpn5sLOV6K9/mK3GHWfkfqO4A3DQJtw8ILjN+6Q2DdVt7cdBXyIZbVOJxslTw xt4EsRu1QBTqejzzmlDTZkVJk9b4FZCzzyb7e+Zw8nboy80nZgGX4fOpNWPeDWoaahlb vK8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=c1qT5OY/rkDNDVvUz3HH9oNf/dIJupNiJGRk0nJ0m/M=; fh=mvibdr2T6oThXm2eEN5oxJe9F11OgrUwHuOpyiZDq38=; b=GdWWKM5x6W5vDDM8bikcrTH7uPP1mN+0WvKDWxIGB9x4dYnujbx7bW17JBO3OKwO6k yS0cDiI7JhSg3iUUvDnBvQv9NT4GZJGMGkZ9c4BYhYfzKNoQipLUCg2ojSBm1R5/cFK7 hrpS13RMg1Wg/bvA2Eq4zOU3Oh6QIF1s8ZXF2HkTyjJkhIqG4CQFesFOR7u2Z+sH+D74 VZ3AtXGKaO9n3w1n6bLtWmUsGABPd7jYIwUi5sUsoSEojXMtckDrc6e61H7Rnz3mVB0D zN9DmqNKy5X2MfA9EBDMs5TUFQZHfFmEybwS1y/QcS0uuNxIfA6NNYqQXNfzAboazH4E s3UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bHf+Iaim; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id eb24-20020a056a004c9800b0068a54522bb0si1504210pfb.144.2023.10.05.08.02.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 08:02:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bHf+Iaim; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 564E680EE70B; Thu, 5 Oct 2023 08:02:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232605AbjJEPBp (ORCPT + 99 others); Thu, 5 Oct 2023 11:01:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233778AbjJEPAb (ORCPT ); Thu, 5 Oct 2023 11:00:31 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D96F616AA4; Thu, 5 Oct 2023 07:37:31 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7FBAFC32784; Thu, 5 Oct 2023 10:59:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696503589; bh=UBDFLeY+PPEBJKSf7kZcYghS/Q9ycdJpp2P0dOU7MX0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bHf+IaimHmjzXHj+umSI5gqnp+F5ATSlb291+Lg68bU6aTrVR2AOORQde80aTEtaj DxbB+OjPUgEzFbqtjtWt8O+Q8m+28sjEc2VsvYAEWUN/0n6JNnT8Gmfw6H3cOy8ter MFJkBgRiZSqwdEI8xdfvB64npda56x4HenxGybY7I3Sh/fPinivGTb92LMM8Hk3eUE CVvK7Z3DgIosM8SU24Vz90u4w1esQa8sBKSEgzvheHNhQ6Q1LGaNcsccTBcb3cAZ8T Aq9bP2eMUu4vzk+GAjF3lMmXaSw7w8/gfTkEq2o2FT2T1YvJyUZInuQ8fjVXUVlPeV 4cbNyH7WOsLYQ== Date: Thu, 5 Oct 2023 11:59:42 +0100 From: Conor Dooley To: Hugues Fruchet Cc: Ezequiel Garcia , Philipp Zabel , Andrzej Pietrasiewicz , Nicolas Dufresne , Sakari Ailus , Benjamin Gaignard , Laurent Pinchart , Daniel Almeida , Benjamin Mugnier , Heiko Stuebner , Mauro Carvalho Chehab , Hans Verkuil , linux-media@vger.kernel.org, Maxime Coquelin , Alexandre Torgue , linux-stm32@st-md-mailman.stormreply.com, Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Marco Felsch , Adam Ford Subject: Re: [RFC 0/6] VP8 H1 stateless encoding Message-ID: <20231005-bleach-unknotted-9b11443959b1@spud> References: <20231004103720.3540436-1-hugues.fruchet@foss.st.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Ia4S0Q4OBDpOeXiU" Content-Disposition: inline In-Reply-To: <20231004103720.3540436-1-hugues.fruchet@foss.st.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 05 Oct 2023 08:02:24 -0700 (PDT) --Ia4S0Q4OBDpOeXiU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 04, 2023 at 12:37:14PM +0200, Hugues Fruchet wrote: > Hi all, >=20 > Here is an RFC to support VP8 encoding using Hantro H1 hardware > of STM32MP25 SoCs (Verisilicon VC8000NanoE IP). > This work is derived from work done to support Rockchip RK3399 > VPU2 in RFC [1] with a reshuffling of registers to match H1 > register set. >=20 > This has been tested on STM32MP257F-EV1 evaluation board using > GStreamer userspace [2]: > gst-launch-1.0 videotestsrc num-buffers=3D500 ! video/x-raw,width=3D640,h= eight=3D480 \ > ! v4l2slvp8enc ! queue ! matroskamux ! filesink location=3Dtest_vp8.mkv >=20 > For the sake of simplicity I have embedded here the RFC [1] before the > changes related to this exact RFC, all rebased on v6.6 + STM32MP25 > hardware codecs support [3]. I don't see any bindings etc here, what is it that you think I would care about looking at in this RFC series? Thanks, Conor. >=20 > [1] https://lwn.net/ml/linux-media/20230309125651.23911-1-andrzej.p@colla= bora.com/ > [2] https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3= 736 > [3] https://patchwork.kernel.org/project/linux-media/list/?series=3D789861 >=20 > Best regards, > Hugues. >=20 >=20 > Andrzej Pietrasiewicz (2): > media: uapi: Add VP8 stateless encoder controls > media: hantro: add VP8 encode support for Rockchip RK3399 VPU2 >=20 > Hugues Fruchet (4): > media: hantro: add h1 vp8 encode support > media: hantro: add VP8 encode support for STM32MP25 VENC > media: hantro: h1: NV12 single-plane support > media: hantro: add NV12 single-plane support for STM32MP25 VENC >=20 > drivers/media/platform/verisilicon/Makefile | 3 + > drivers/media/platform/verisilicon/hantro.h | 10 + > .../platform/verisilicon/hantro_boolenc.c | 69 + > .../platform/verisilicon/hantro_boolenc.h | 21 + > .../media/platform/verisilicon/hantro_drv.c | 15 +- > .../platform/verisilicon/hantro_h1_jpeg_enc.c | 42 +- > .../platform/verisilicon/hantro_h1_regs.h | 71 +- > .../platform/verisilicon/hantro_h1_vp8_enc.c | 1589 +++++++++++++++++ > .../media/platform/verisilicon/hantro_hw.h | 93 + > .../media/platform/verisilicon/hantro_v4l2.c | 5 +- > .../media/platform/verisilicon/hantro_vp8.c | 118 ++ > .../verisilicon/rockchip_vpu2_hw_vp8_enc.c | 1574 ++++++++++++++++ > .../platform/verisilicon/rockchip_vpu2_regs.h | 1 + > .../platform/verisilicon/rockchip_vpu_hw.c | 23 +- > .../platform/verisilicon/stm32mp25_venc_hw.c | 35 +- > drivers/media/v4l2-core/v4l2-ctrls-core.c | 13 + > drivers/media/v4l2-core/v4l2-ctrls-defs.c | 5 + > include/media/v4l2-ctrls.h | 2 + > include/uapi/linux/v4l2-controls.h | 91 + > include/uapi/linux/videodev2.h | 3 + > 20 files changed, 3755 insertions(+), 28 deletions(-) > create mode 100644 drivers/media/platform/verisilicon/hantro_boolenc.c > create mode 100644 drivers/media/platform/verisilicon/hantro_boolenc.h > create mode 100644 drivers/media/platform/verisilicon/hantro_h1_vp8_enc.c > create mode 100644 drivers/media/platform/verisilicon/rockchip_vpu2_hw_v= p8_enc.c >=20 > --=20 > 2.25.1 >=20 --Ia4S0Q4OBDpOeXiU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZR6XHgAKCRB4tDGHoIJi 0sjvAP0ZC5KOCGnycz1ccSYrmARfxdHqtXmmmQJpUOyX3kDeCwD/Q0VKIfCKL28d bB3btsN54UkoHILpiUtId0zm3X7Q6gU= =90H2 -----END PGP SIGNATURE----- --Ia4S0Q4OBDpOeXiU--