Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1084798rdb; Wed, 24 Jan 2024 04:36:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IELhh/RJW6OPExQnOZIKfqeNhxwGurHT9MkdRFNc8oZxRGKwyGif50lqAYtwdFDIw9f/WuM X-Received: by 2002:a05:6a20:2d09:b0:19a:3f15:6744 with SMTP id g9-20020a056a202d0900b0019a3f156744mr940729pzl.52.1706099804885; Wed, 24 Jan 2024 04:36:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706099804; cv=pass; d=google.com; s=arc-20160816; b=g/cpmiGTCEZoNUkURkRUs0Le48YEhC3Zu1m09zTpvqrZIFYDD44Tu9ZttfFtNV9uAx 7Ao/RTVkMv9RxXQ92H4HGFbOFqJpzdpL8Il190wXeeMwEHVpu9BHzmcoCDoec7GLr0r8 Z5lQm0JqMG3G9olThSick4nocRanXjyeU0vBAbfTVEiou+4IpolvjU1GC7b3SObA3cqS h6d3U12+vHbDAtIFHW7FGQhpT8jy0g5tplzFtk9ozkn0YWQVfeO04gLwcVuZ75k4O7LF tc/JEgbU5xFKVHcBTn4ldXplg/NGT/kXi0OVCQi6ko67PfI8IgSq77GNZEig/9Srh6Fe iaEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=BGBC9tF/Cd6rbj5dyV7/fk/vzSioDaHQikjSTIAEr4o=; fh=latn3Bf5ut/mb+60T1dV/UFYcaYCxdTSu0WVotPPO2o=; b=Yn0wX9Y9VDCFqROt10bEVEHYNgPVIIwyls31LNEFCNeDrNi+3I5jdu8FUmsk58jihw IgLIQdmlBJihivr3rXhdNY6nguE9Al5bI1qrqva2FataAyGCNmoXk/bm3e7h7vxhJ9ud b78zAwQFL2u9m+hhUZIn2p5JH/otoQR0/vrXJRlJqg9CMUcHzamBm//K+C998WwTSCY1 CM5B5YjdcVnBC15mQZ6Cz4tfV7ZUypSJHsY66f+tj+sHjsAHfAshXYaWMed6zkhKqoBR aN2v7lZcr+K2jQvxX+bl6TK/kTTT/CAPxyuaA/En2ewyLNSoT4RS8tL/0R3ByfL9be5D UPWg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=aKJ3dQEW; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-36994-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36994-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j6-20020a056a00130600b006d9b4294509si14211856pfu.200.2024.01.24.04.36.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 04:36:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36994-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=aKJ3dQEW; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-36994-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36994-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7C595288A52 for ; Wed, 24 Jan 2024 12:36:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2752F7763C; Wed, 24 Jan 2024 12:36:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="aKJ3dQEW" Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 409C5BE74; Wed, 24 Jan 2024 12:36:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.207.212.93 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706099793; cv=none; b=UeyUBVPhF0uueiB7ViCIj6IzB8ghrJQsvpL8k/xu0lEKeLNBpNyV+pouroPXxnczk775GlWLcIEqdEoXUUM02r6kbx8gGeCM3K+ia4/XsXHG+i+Dsm2ZuuH8diHXKfc41zgoNP75yqjuCQCh+Rm3X4sjaXokweVSHRElYeXA3lI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706099793; c=relaxed/simple; bh=+ScSpzpjrULM5D9D5zj2mBVm80jwAW/ibhGyLqlbUP8=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=E1x599e+3YfIqDZo7vT5tMhMgGGYQnIOUGcg9ReNY4x5U0C8YUxkqSSv+X8Q7cJmyCvvA1WmyG+bZin4WFAgAjDxo0TGXULguv5gfCsuNLZEvKUVT9JmW974VwbBYNGA65GLPSBrHnFVdjcXGVzS5U6aSqGilBachwX1eWbpKPM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com; spf=pass smtp.mailfrom=foss.st.com; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b=aKJ3dQEW; arc=none smtp.client-ip=91.207.212.93 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40O9u063008801; Wed, 24 Jan 2024 13:36:06 +0100 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=BGBC9tF/Cd6rbj5dyV7/fk/vzSioDaHQikjSTIAEr4o=; b=aK J3dQEWjWMuf109lvExHWEoekq0n8ACVGJy1e/sKLn9fY4mQguLUV8NrHn2iVLoCq qz7P35OqCmw5Rug03tjpFjBoiI0E9jgCRI6/NLq8ZaGO+9O4tWp6M4TcLMRS+ZyF CW9LrscJ7Dbp6nGeMF2S0YxpC2QnR1k+5qicqbbeYebMe1QWb39Uk64zvQ4/c8eN YcIVBW1tVjkd4dRqzDBn3UlfW3o/peCm6y1phJzLIs2eI5pRC99VmS1xIFq/TeC9 ZRLYUAGlfwHU7fa2pu3ql/8tsNnEwOSWTtc/lxhMl3rQQGz2DMTYfdN8aRGyfInO zUGH1IDwuML7fyCfBdMw== 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 3vtmf9u4rm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 13:36:06 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id A6BCA10005C; Wed, 24 Jan 2024 13:36:04 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 9822C2D3CC9; Wed, 24 Jan 2024 13:36:04 +0100 (CET) Received: from [10.201.21.122] (10.201.21.122) 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; Wed, 24 Jan 2024 13:36:03 +0100 Message-ID: Date: Wed, 24 Jan 2024 13:36:02 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RESEND PATCH v6 0/5] Add support for video hardware codec of STMicroelectronics STM32 SoC series Content-Language: en-US To: Hugues Fruchet , 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 , , Rob Herring , Krzysztof Kozlowski , Conor Dooley , , , , CC: Marco Felsch , Adam Ford References: <20240110104642.532011-1-hugues.fruchet@foss.st.com> From: Alexandre TORGUE In-Reply-To: <20240110104642.532011-1-hugues.fruchet@foss.st.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: EQNCAS1NODE4.st.com (10.75.129.82) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-24_06,2024-01-24_01,2023-05-22_02 Hi On 1/10/24 11:46, Hugues Fruchet wrote: > This patchset introduces support for VDEC video hardware decoder > and VENC video hardware encoder of STMicroelectronics STM32MP25 > SoC series. > > This initial support implements H264 decoding, VP8 decoding and > JPEG encoding. > > This has been tested on STM32MP257F-EV1 evaluation board. > > =========== > = history = > =========== > version 6: > - Use a single file for VDEC and VENC variants as suggested by Alex Bee > - Fix some typos raised by Sebastian Fricke > - Add Krzysztof Kozlowski Reviewed-by > > version 5: > - Precise that video decoding as been successfully tested up to full HD > - Add Nicolas Dufresne Reviewed-by > > version 4: > - Fix comments from Nicolas about dropping encoder raw steps > > version 3: > - Fix remarks from Krzysztof Kozlowski: > - drop "items", we keep simple enum in such case > - drop second example - it is the same as the first > - Drop unused node labels as suggested by Conor Dooley > - Revisit min/max resolutions as suggested by Nicolas Dufresne > > version 2: > - Fix remarks from Krzysztof Kozlowski on v1: > - single video-codec binding for both VDEC/VENC > - get rid of "-names" > - use of generic node name "video-codec" > > version 1: > - Initial submission > > Hugues Fruchet (5): > dt-bindings: media: Document STM32MP25 VDEC & VENC video codecs > media: hantro: add support for STM32MP25 VDEC > media: hantro: add support for STM32MP25 VENC > arm64: dts: st: add video decoder support to stm32mp255 > arm64: dts: st: add video encoder support to stm32mp255 > Sakari, Mauro, do you plan to take patches 1 to 3 on your next branch ? I will take DT pacthes in mine but I would like to be sure that dt-binding will be applied in a next branch (for the next v6.9 cycle); regards Alex > .../media/st,stm32mp25-video-codec.yaml | 49 +++++ > arch/arm64/boot/dts/st/stm32mp251.dtsi | 12 ++ > arch/arm64/boot/dts/st/stm32mp255.dtsi | 17 ++ > drivers/media/platform/verisilicon/Kconfig | 14 +- > drivers/media/platform/verisilicon/Makefile | 3 + > .../media/platform/verisilicon/hantro_drv.c | 4 + > .../media/platform/verisilicon/hantro_hw.h | 2 + > .../platform/verisilicon/stm32mp25_vpu_hw.c | 186 ++++++++++++++++++ > 8 files changed, 284 insertions(+), 3 deletions(-) > create mode 100644 Documentation/devicetree/bindings/media/st,stm32mp25-video-codec.yaml > create mode 100644 drivers/media/platform/verisilicon/stm32mp25_vpu_hw.c >