Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp606226lqp; Wed, 12 Jun 2024 10:33:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU5zVedY7beL1Dsxj9s0ziwwVo9NaQZMypH/VBjuwMFTpPVKl5hkZNRHQm4jV+atsig6O0RnSY3VPpWPzWpPnoS7eBZCfVeOdVf2ahe8w== X-Google-Smtp-Source: AGHT+IGnZNw5WPM/yBzh+qAHI37klvwzM90o/fStMZmx0+M18uwIXm3OIdcda/ICMLBqJL0oVLPx X-Received: by 2002:a05:6a20:b309:b0:1b7:aab1:3485 with SMTP id adf61e73a8af0-1b8a9c8870fmr2053714637.57.1718213621226; Wed, 12 Jun 2024 10:33:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718213621; cv=pass; d=google.com; s=arc-20160816; b=ZK9aNRJXeMzB9owWPt8AV1SqfP4iiWQ/3GiJxLF6z7V00SSWBqXPLHNlWGK5om6a4z rDPhxuzE9KoFJCmq7LatsBwEuOgPBorx3kVKWFDgz3NEHbhUXtjqdJPbBf4uxg6Iw1ZX DaHoS0z+BHtGP0JEknD0uxwyhWMfedW3i3vdxobtnhpZa1h2hTXvI1yNJIdgkk+TVZyg kWGxsfm9m2VGE9+W+l2I2SC8FTRo3RQlHLL/yCVbEWzSn5CEM+xHgsk3eKxkkKojlCKH uDEJxXN2oeNFGT/xczXnNGs7B5nOvOmQN62aQnd1NIVlmXe2mghPNqfd4dK+5IYkTvTx iF/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=1GURHS3ZATFR7RYlCRLfoUw0SFtlxnNfq8bUSx8iwd8=; fh=cLtOPLoOdgOVDuxiM/Zc07VLHGrh7PtlVdCxs0OyfDA=; b=lLidM6tWVWBKLqHyq/83ESRy0SaBaR847X7XTLfOsO9f2FDbdS/+kXvntXWrt110IO vUYirWece9hLjz4U/BmlOqEJah3hlntMSOLjiFccMT+9puNrRPepCwFGAYutJsjMGY2D LSF9vR3lm7Is9ggHHf39BvwmxRHDoQG2cU+VOIu8uqD9Jc/ZqM191LhZZuWbM7rTQs41 WOlEoJEOVftDP/jtstUi8PSr6GxyhMTIRO2Z78rT27yhfpz3TUqE5At3bMfm1YYgpI3/ vFJ0nEowE2LK27NNsTlWxUO2755g6vL0cuTkq9+FbmwYeE9DrUwl6JT0q/MQgWV10+DC s2TA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=rLiCeW0i; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-212015-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212015-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd760694si113909515ad.11.2024.06.12.10.33.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 10:33:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212015-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=rLiCeW0i; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-212015-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212015-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 0D4DE28584C for ; Wed, 12 Jun 2024 17:33:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 35162184118; Wed, 12 Jun 2024 17:32:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="rLiCeW0i" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 86978170824; Wed, 12 Jun 2024 17:32:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718213546; cv=none; b=hkwN5AxdEchwJQljRAdf9j59yRYaku0gUerB7xxcJv3MjahGXDahD7jNVCQFjYCzBuH3aQwgfFrOlIP75pGEzoNcFw9jo1L44YQtix/rgkYv2Asf+61gvjSkgXk+iTNIEK8aCqxS84AHjaDDyP54uiHgUcHZI8wITyhKklikX6E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718213546; c=relaxed/simple; bh=H+1Gh32TLe9//W5DEjtFjRYrLhHpR4ykiLSiVsQC96s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=B1JUKRyN4WjAOqe5cjv6mzfUq93tQ4oZES7eEU0xGLpNfbJLySWsfRq9CIGMIYnwaUn621h9oNg0L+vJxIraEnv9MGxQnm/iCtv4CFmsk7UE3B8RATgWwaZQKFfKFatT1b+AiHUE3g9QsElfMAIyFY/B/6O8nOLn7cqlJqfjJGc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=rLiCeW0i; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1718213541; bh=H+1Gh32TLe9//W5DEjtFjRYrLhHpR4ykiLSiVsQC96s=; h=From:To:Cc:Subject:Date:From; b=rLiCeW0iJDT+jJlR3bYdUqudRoD6iXy2Z5kB2zdmWqiPWgu2smHSHKdln9Y7OUUDC F4/TYcdQ29dmUBoYPgbCNxbTI+gJpTpsel0GjhdLCV7P+NV+bv7RYG3Ir24KJz9opu PKAxif+1wQMOKokJ4iWkgPLex2dfZDzNot/+gktQKHeovfImt8MX0t1bk7UhT+Ylji MED8xsU2AKugrDLgfTJ09SAIWdHV4y7OLRHhAICKDhwGvG5hEuwKxDoTXZVsRsiPyS Ty7J0xcTQWfEGQISIQqjgZ9SDzMg8nT1O3iTklXwE+1bW4dcRrT30ClicWA8t64poL /1HJcfS3le7DQ== Received: from jupiter.universe (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sre) by madrid.collaboradmins.com (Postfix) with ESMTPSA id A8DE03782191; Wed, 12 Jun 2024 17:32:21 +0000 (UTC) Received: by jupiter.universe (Postfix, from userid 1000) id 5958C4800C9; Wed, 12 Jun 2024 19:32:21 +0200 (CEST) From: Sebastian Reichel To: Ezequiel Garcia , Philipp Zabel , Nicolas Frattaroli , Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jianfeng Liu , Emmanuel Gil Peyrot , Nicolas Dufresne , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH v5 0/5] RK3588 VEPU121/VPU121 support Date: Wed, 12 Jun 2024 19:15:40 +0200 Message-ID: <20240612173213.42827-1-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi, This series enables Hantro support for RK3588. It is based on these two previous series from Emmanuel Gil Peyrot and Jianfeng Liu, which looked stall to me. Considering the full driver is already upstream, I think this low hanging fruit should be enabled in 6.11: * https://lore.kernel.org/all/20240316071100.2419369-1-liujianfeng1994@gmail.com/ * https://lore.kernel.org/linux-rockchip/20240412151515.837824-1-linkmauve@linkmauve.fr/ Their series got some feedback from Nicolas Dufresne, that there should be a plan how multi-core processing will be handled once it is supported in the kernel. I had a look (and internal discussion with Nicolas) and came up with a patch, which allows describing all the Hantro IP in DT. The driver will only probe for the first instance. This involves dropping the RK3568 compatible for the VEPU121, so that only kernels with the driver change will try to handle these IP. Once the kernel is capable of multi-core support, the same technique to disable cores 1-3 can be used to combine them all into one cluster. We also discussed, if they should be described as a cluster (e.g. by creating some kind of virtual bus for the 4 encoders in DT). Apparently the VSI doc describes the grouping of up to 4 instances. But there is no obvious reason why only these groups can be used as a cluster. It seems that even the 5th encoder from the combo VPU121 could be used together with the other clustered cores in theory. In practice this is probably a bad idea because of the shared cache of that encoder. Since that is handled with a different compatible, this can be thought about at a later point of time and handled in the kernel. Thus no special cluster description is needed in DT. The series is based on Heiko's for-next branch. Changes since PATCHv3 (VEPU121) / PATCHv4 (VPU121) * combine both patchsets, since there is some overleap * add patch to disable multi-core handling in the hantro driver * drop the RK3568 fallback compatible for VEPU (see above for the reason) * describe all RK3588 VEPU cores (possible because of driver change) Greetings, -- Sebastian Emmanuel Gil Peyrot (2): media: dt-bindings: rk3568-vepu: Add RK3588 VEPU121 arm64: dts: rockchip: Add VEPU121 to RK3588 Jianfeng Liu (2): media: dt-bindings: rockchip-vpu: Add RK3588 VPU121 arm64: dts: rockchip: Add VPU121 support for RK3588 Sebastian Reichel (1): media: hantro: Add RK3588 VEPU121 support .../bindings/media/rockchip,rk3568-vepu.yaml | 5 +- .../bindings/media/rockchip-vpu.yaml | 3 + arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 101 ++++++++++++++++++ .../media/platform/verisilicon/hantro_drv.c | 38 +++++++ 4 files changed, 145 insertions(+), 2 deletions(-) -- 2.43.0