Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp117493rdb; Thu, 21 Dec 2023 04:41:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IEQVgqn4JiX7qT0Ecwobz0+bbBDF3y3TzCkaf0U6C64bBJXCA+SXnLWZGR+m/CYml4wmvA0 X-Received: by 2002:a17:906:5346:b0:a23:6d5c:d7e3 with SMTP id j6-20020a170906534600b00a236d5cd7e3mr2815764ejo.5.1703162463594; Thu, 21 Dec 2023 04:41:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703162463; cv=none; d=google.com; s=arc-20160816; b=06noR5TMz6OnuZz83NvHalj8gUodpJ8WQgUXpzeQ/WvEfzoGbM5pxeO48lti24lK21 qCHQ56lPHdTNds5we/FqU9DMvG0liOygOb3AbV7M4PKCQ7q/1sl9RMRoiNYmVdCRW/Id 2BMJqnDL3DrXLBYZNbFjxtBvdV63e36m59AWQs8+U9PAkernFKUi5Dja/lZ+DP1V1fHO lHnwzLqTyhQxip2TQJyjTQneos/0lRZN5qY7r3412xrV7RJwLBy+HfJICCggiwD1UMU6 mK3MBA1PsNZFPAKvAdmShjp8a4Z5hDI1+k/ucDO66QuTE437MPWLpO5UdJlgMkj8scz7 j3Pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=JWmqolZ/s9uaTTG3HahXfBKZE7l3nyr/50HE3h+LaaE=; fh=uU0Zi3pccw3qcOrsi3Deg554avpAWBK17zOa2kdkmDE=; b=Cu4CC+QSRcYyd6jhu1opyQna9mjjNcwiDTKIzTaFDOHmBEmAosRyEef8rNFQp/daIx /vgd0pGVFdw2PmQvk2qINCllKeYoghEBqKY5EdtEN9D8Bt1ax+0jA5YssxEftk7hCRSC tDi0DibofmABaeUBOKNxMRaYpW8LLtdbxTAinphwvjihAt9y7rQWYG6+mwF4COWpA+fz VCjo20r9gkITY14uqwisNgBbR0S1Y5XEBZDXS+3qacWEhHpYFulgAkrSmG5GxNQhwJJM y3JvPXGgFQ5eG/E/8ekrb9Vq/vXO/MQpXRgXIx4Q0SPXsLVZqmHkYRw/EIXUcQgmJNP6 9O0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=U3wT1nIz; spf=pass (google.com: domain of linux-kernel+bounces-8352-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8352-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w8-20020a170906480800b00a26ae977a21si86745ejq.234.2023.12.21.04.41.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 04:41:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8352-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=U3wT1nIz; spf=pass (google.com: domain of linux-kernel+bounces-8352-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8352-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 am.mirrors.kernel.org (Postfix) with ESMTPS id D8F9B1F21FA6 for ; Thu, 21 Dec 2023 12:40:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2906773171; Thu, 21 Dec 2023 12:40:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="U3wT1nIz" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D04671DDE3; Thu, 21 Dec 2023 12:40:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-40d13e4f7abso5696995e9.2; Thu, 21 Dec 2023 04:40:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703162445; x=1703767245; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=JWmqolZ/s9uaTTG3HahXfBKZE7l3nyr/50HE3h+LaaE=; b=U3wT1nIz5vl2m9aERtqReSZiASzHJRBRaeQzRukJ35aLDRRRCOHP8u7jrq+alk/GLx PDFQXeUMdLQZQuTzetzriyXnu1DptOe2ILVPQrDw2viCakIG+sA1Dy3EelscKDNWErDg stOs7b/lXw+1D7D896Ga93AN+NGReKIF2LHSVIbLDKfZjcSfzLdlmbdb+gfTqiHyS1f9 gDeOCoLofRuZyiSoHogq+K+82IrGY49a6/hIPwAgdWYk6k1ctrcA8WHlgujxd/9hzxV+ k/DTaF+UNwpS+9TlZvcDhmewpdHjWzEpGcINlps2VFNAmKGzXv82FojfmCVDA1kh87PX FnGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703162445; x=1703767245; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JWmqolZ/s9uaTTG3HahXfBKZE7l3nyr/50HE3h+LaaE=; b=ojxA775DxfDvgbhqwLH6cj23ZsL4UVhQ/vj2MZPxQ+6OFoY4YZTA514izEsnLrLy2d bDyqHXiPmkBi8gynOyoQ44P1MGNy1iayP3dP3Uk9e+XXGh6aTP7JqbRoc3iKo0b77UyZ 0jhdwfwUHrwAMXCHNAUrbJjbF0zl3AEpP1JuLskfgSyGFRhYx7pqvbmAcdRl/oMbNfOV XP2MmAuKtKk0lpm2HIzo4qTcqjzx/AhfkgAcO9u9dSw7jfhf7vblApq7xC2NDgwrlx/D qirMfwn0vStaymZaAe7gZo8gHcUBSuy2jqlRzTkE8/t9YO3/cOo4ouSfzrWh7Q5kAJ66 nZzQ== X-Gm-Message-State: AOJu0Yyy6wTnIST6tW7Zh+eJ8T7vALAhAUSMvzCVnYxiTyRGNk8Q177v n58/iyhHtdNvUq0B8fxdLw== X-Received: by 2002:a05:600c:4583:b0:40d:177b:c3ac with SMTP id r3-20020a05600c458300b0040d177bc3acmr818914wmo.85.1703162444642; Thu, 21 Dec 2023 04:40:44 -0800 (PST) Received: from ?IPV6:2a02:810b:f40:4300:1c49:5d1e:f6f3:77a0? ([2a02:810b:f40:4300:1c49:5d1e:f6f3:77a0]) by smtp.gmail.com with ESMTPSA id k13-20020a05600c1c8d00b0040d3dc52665sm2204319wms.21.2023.12.21.04.40.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Dec 2023 04:40:44 -0800 (PST) Message-ID: <769a1510-f8d2-4095-9879-42f413141dee@gmail.com> Date: Thu, 21 Dec 2023 13:40:42 +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: [PATCH v5 0/5] Add support for video hardware codec of STMicroelectronics STM32 SoC series To: Hugues Fruchet , Nicolas Dufresne Cc: Marco Felsch , Adam Ford , Philipp Zabel , Andrzej Pietrasiewicz , Sakari Ailus , Benjamin Gaignard , Laurent Pinchart , Benjamin Mugnier , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Daniel Almeida , Heiko Stuebner , Hans Verkuil , Rob Herring , Conor Dooley , linux-stm32@st-md-mailman.stormreply.com, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, Maxime Coquelin , linux-media@vger.kernel.org, Alexandre Torgue , Ezequiel Garcia References: <20231221084723.2152034-1-hugues.fruchet@foss.st.com> Content-Language: en-US, de-DE From: Alex Bee In-Reply-To: <20231221084723.2152034-1-hugues.fruchet@foss.st.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Hugues, Hi Nicolas, is there any specific reason I'm not understanding / seeing why this is added in two seperate vdec* / venc* files and not a single vpu* file? Is it only for the seperate clocks (-names) / irqs (-names) / callbacks? Those are defined per variant and perfectly fit in a single file holding one vdec and one venc variant. Alex Am 21.12.23 um 09:47 schrieb Hugues Fruchet: > 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 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 > > .../media/st,stm32mp25-video-codec.yaml | 50 ++++++++ > 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 | 4 + > .../media/platform/verisilicon/hantro_drv.c | 4 + > .../media/platform/verisilicon/hantro_hw.h | 2 + > .../platform/verisilicon/stm32mp25_vdec_hw.c | 92 ++++++++++++++ > .../platform/verisilicon/stm32mp25_venc_hw.c | 115 ++++++++++++++++++ > 9 files changed, 307 insertions(+), 3 deletions(-) > create mode 100644 Documentation/devicetree/bindings/media/st,stm32mp25-video-codec.yaml > create mode 100644 drivers/media/platform/verisilicon/stm32mp25_vdec_hw.c > create mode 100644 drivers/media/platform/verisilicon/stm32mp25_venc_hw.c >