Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp347359rdb; Thu, 5 Oct 2023 07:42:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE+KmAMO/oAbUnUv4ZywLfjX7YmDdAxL9yAWE23Wwpab5a3jTMiEHpPz/whaASxhgxuAXS1 X-Received: by 2002:a05:6a21:7782:b0:141:d640:794a with SMTP id bd2-20020a056a21778200b00141d640794amr5239261pzc.39.1696516927467; Thu, 05 Oct 2023 07:42:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696516927; cv=none; d=google.com; s=arc-20160816; b=CzYxMs4ypUUqWmnlzzog/qkIZApY/3sXgNPsAcvYHv+Bg19EMS4fXAiRP7VKw7Odtx WkzDOgmBWCasvmcmaeRrueP9vg3+dfqPDy+AaEaN31xZvE4nEU9yQzZXqH4HlhESla0G GJUYZPX0tbvT50NFXbdxxqi4MfVrl468WASkBsLvMZWZ03fiz3noNRCqcdbt9ilqoka+ /rUxnp2FASwmWtyteJSWVpOkb4CeF3LrLvsc1yHC/jcdN9IIMedc9fioCSQonI6T2i+d 2Iab4bXt2V3PCGgjgw2McogAzQlxD32YBD0inBgUPIJGZlRxOIIiWIXe/zDwQ9Zpw28d Z6og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=4xkLY2sFZ6bAzP0C1Okvtq5k6MsL61eKVQtjQb/uCzI=; fh=1B4zKJ9J0O9m98bOF52bbs4c5F+MoVzr7KGz1FMw0IE=; b=K6INZXfs1exyf2wY4QQcObzumbwo3BdNRdPB1AuYclsSETe5f0Bjmp+o8TAeg1aXQB g0a6m6fTCN+GKzLczm/wjPl4KuaxLFGLdWHERGY92yXmaN1CTfCCel+mjSGfcq9JnnBE rWOhn3eT5x4Pet2daVyRRstdzsrT9j2emi0EKwdytQWXBv+xN6dX9HjlsHCWVPp8W3rp T3d0Uchq02q0S2P6CKHyKiJ9a/QmZyFbWjmFyUZFPQIbfpNA0jkNKgIjteIEGQiJDv3Q Yp7kuC3WHPVYxsnmddR8byZ5XSS3mXjrzr+rmjQB9g6yqPZ8vov7+XucCpRU9+NkkTDk GBjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=ihYJGuao; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id j1-20020a056a00234100b006880a2ca0fasi1512122pfj.312.2023.10.05.07.42.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 07:42:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=ihYJGuao; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 7C4FC8024A2E; Thu, 5 Oct 2023 07:42:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238628AbjJEOlg (ORCPT + 99 others); Thu, 5 Oct 2023 10:41:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236903AbjJEOhU (ORCPT ); Thu, 5 Oct 2023 10:37:20 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE00D47858; Thu, 5 Oct 2023 07:02:55 -0700 (PDT) Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 395AZB2Z025382; Thu, 5 Oct 2023 13:46:34 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= selector1; bh=4xkLY2sFZ6bAzP0C1Okvtq5k6MsL61eKVQtjQb/uCzI=; b=ih YJGuaoo6cj7jDjv8uH+x/yHLAIAYkgZMQObGOUiuNk1/TqYdrHiovCWuZw64s+rh x/a9xMB1yUcVzidue2x3rz3sAPaSSscGSZw8nOQj+SkUtnTf6J91iUPeE5JhqVyH 8AdXjupa7lH5IgiQ9sUDFQZXT/5SdNstWBZAHRsmnHnQKhekScWINLECzhgc6oA9 twXbm+xtMTeT3Bn7rdsh8zklNFhgyItrygbhaXLqkU/nN6QBJzsXTFOOxXWy1X0d vBvWEgUvR5mbwWhNEi4BwNCu3syuhstUFx2AiuuUi/kEADr9kLJnMQ3hoAFwgNZf 2s6m4Xb/hrFLoh0IBW9w== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3thuh409b3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 05 Oct 2023 13:46:34 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id BF7D010005C; Thu, 5 Oct 2023 13:46:32 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id B19E124AAD8; Thu, 5 Oct 2023 13:46:32 +0200 (CEST) Received: from [10.201.20.120] (10.201.20.120) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 5 Oct 2023 13:46:31 +0200 Message-ID: Date: Thu, 5 Oct 2023 13:46:30 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [RFC 0/6] VP8 H1 stateless encoding Content-Language: en-US To: Conor Dooley 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 , , Maxime Coquelin , Alexandre Torgue , , Rob Herring , Krzysztof Kozlowski , Conor Dooley , , , , , Marco Felsch , Adam Ford References: <20231004103720.3540436-1-hugues.fruchet@foss.st.com> <20231005-bleach-unknotted-9b11443959b1@spud> From: Hugues FRUCHET In-Reply-To: <20231005-bleach-unknotted-9b11443959b1@spud> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.201.20.120] X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-05_08,2023-10-05_01,2023-05-22_02 X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (howler.vger.email [0.0.0.0]); Thu, 05 Oct 2023 07:42:06 -0700 (PDT) Hi Conor, My fault, mistake on "to" when sending mail, please ignore this serie there are no bindings/DT in it. Sorry for disturbance. Best regards, Hugues. On 10/5/23 12:59, Conor Dooley wrote: > On Wed, Oct 04, 2023 at 12:37:14PM +0200, Hugues Fruchet wrote: >> Hi all, >> >> 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. >> >> This has been tested on STM32MP257F-EV1 evaluation board using >> GStreamer userspace [2]: >> gst-launch-1.0 videotestsrc num-buffers=500 ! video/x-raw,width=640,height=480 \ >> ! v4l2slvp8enc ! queue ! matroskamux ! filesink location=test_vp8.mkv >> >> 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. > >> >> [1] https://lwn.net/ml/linux-media/20230309125651.23911-1-andrzej.p@collabora.com/ >> [2] https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3736 >> [3] https://patchwork.kernel.org/project/linux-media/list/?series=789861 >> >> Best regards, >> Hugues. >> >> >> Andrzej Pietrasiewicz (2): >> media: uapi: Add VP8 stateless encoder controls >> media: hantro: add VP8 encode support for Rockchip RK3399 VPU2 >> >> 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 >> >> 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_vp8_enc.c >> >> -- >> 2.25.1 >>