From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796536666; b=SEA5XwWXdxjJI0QBOIiVIXJmKJejMwh1n5snup65+Y+PMPykTz093Zzp/EY5ffBLyCHQ W8cu7p3vOkpqhFrcvk7D5gSz7aGmgg3H0QBnLdbGNNeSiBsOFvMCK1K7S31ABxPsNzOIM WPeGDeGC6FZxWiCtm/SReO9V1o3XhzvisYiDjcLNzrkGTDyA9tnq3qmu30XlZuKm6sEZS sW9AE08nUThErzCgtkghQ3YV612EObDerURvZf6TRzVz5sxD1Argojv32/Ck30FD0fUVi epYztbPaPVKq4TQU2eWbV8/vihKT1ohMcthK/mfEVAheu6gLkADttnGkLse5ZX6AXeg== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796536666; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=Ea52I2vnQCe6Ni6efkUTjPrh+GmNSqV3kj5+yTLJAXI=; b=WToTVor1O0l0aHz/LwRqM1ugx4eahPRhfnyxQndAZvT+4RsyAqEWiosj4QOsM74wlmOO LdbL8MBpn7Q2FPrnyARyMxeroMilZP8e2Jnifl/eaV9/9h80POBIo9QRWToDPzFViGul/ DEFs7OqDGDPrEoDeIwsZ3L3T4Ed2C42Kgje4vOXLxE0t95PDlJuDwNPc5p3+PauVBYLdH GrDPks3pZC77l+f0RfrOdO34Hs2pRQjGv32ktEz0PPDAln2SMkRoVhz/u2FT/a0oQ9pOd Vj/k1YBvWxpcaO3H3RC/ZRkHznc1WxprqgGl4PB25g/DBqzJyaHwscYogakE7jLqxAA== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=U9HWqO0N; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 63A4F60A6F6E; Sun, 6 Dec 2026 05:57:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=U9HWqO0N Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1796536666; b=lvJdJjSmx5BuAOVyHoSbeGoYspoAvqvHb6Rquldym0KkjZr/BDqrL1RcMonWK+LbxDhA kKrloP9Z/hapCMbAbu7MTUAPhJviC/5qYZI2pNYCAdjOuUZZ3Y1MpWQEF0XxLgzmzV9+N 7hwsUuM3OR7ucZcGKk2wI4R9ZnMrnH6oRP3cdHYlVYex2Hh7gJPavXmmv4yIUCZ5CePMP Cx3fHQyCsi/GFQMbBy2VLXde2ohfaJP6gsz2RZpAZYlB9PhUL67Dbhv3Ya8acuJ/QxuAa xA79VL8OQqASse7JiZFAV0YyBWizZ0wRzogOL9QtOuu9ZurMaVkg6mR9FtHDcvrmn2w== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796536666; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=Ea52I2vnQCe6Ni6efkUTjPrh+GmNSqV3kj5+yTLJAXI=; b=NJn/GV6VcOqGr0Op3lfdTAKGouVk2YZUAdnQ2d8CPIRxX1mXbFS7a6CZlaGrl+TpGY8i 6/dr+/1CJHDKya/8Y6pT/lYZ+MjPkFx6X5SAQAEAofmN1as7cYB/Dqj3l5Fhram2tHnjF v/nLF+1fibBsuwtm6kilSyBNHHutkmpcsxu6eGaMtHPbbqMmS0kO06/BAxM9K+KPIaO9q M2LrvWHXJ1aViboeyVE9eiSIaUMgDHmNZYXxS0HGt5qhJ2saoGXtm/6tx1k0XtPLpcOnM PUERBWrPQ6pI6yg/d0bPGfXFKNQI8ZnmgtN9iUtPp+BxpJffJRo4R3Li6I4TqlyIiug== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 05D661F00A07; Sun, 6 Dec 2026 05:57:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796536666; bh=Ea52I2vnQCe6Ni6efkUTjPrh+GmNSqV3kj5+yTLJAXI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=U9HWqO0NvosfFEgK6xkrRKzLVJ+QGstWg+Y17NaWdENqG4RuCIMWdSEwaAfsJT4dA ymLcJDXWQekIlBDLrWhqtn/PugEWf5XRL3QV8InWM62c+XkKzCEJhirw5JE/caJgu1 lJj/gpGJArYNLj33Wcojoo2mJr6kpBKmy6RF6WX0fNgeoeV+RhG05ejhy94M8fp3sC QCs16cFfgdx3YD6ZeQMVtkN8fe2kPptafegkGCPL3Nqoy6VowYd3a0aHIKcLwzTOHV qoClaEoH+oUfHQqYsiG7PSii8Q24NDcvacuLsSezf61SaBs+Ys+veJ3aufomDL0lzI KFyRfqUfGEMRQ== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 37FD05063C; Sun, 6 Dec 2026 05:57:40 +0000 (UTC) From: Arun Iyengar via B4 Relay Date: Sun, 06 Dec 2026 05:57:48 +0000 Subject: [PATCH v4 13/18] arm64: dts: rockchip: Add the reset lines of the RK3588 VEPU121 cores X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20261206-hantro-robust-v4-13-b99d33a5ec6d@gmail.com> References: <20261206-hantro-robust-v4-0-b99d33a5ec6d@gmail.com> In-Reply-To: <20261206-hantro-robust-v4-0-b99d33a5ec6d@gmail.com> To: Nicolas Dufresne , Benjamin Gaignard , Philipp Zabel , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Nicolas Frattaroli , Andrzej Pietrasiewicz , Ezequiel Garcia , Hans Verkuil , Boris Brezillon , Jernej Skrabec , "Joerg Roedel (AMD)" , Will Deacon , Robin Murphy , Ulf Hansson Cc: linux-media@vger.kernel.org, iommu@lists.linux.dev, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Sergei Khomenkov , Tharit Tangkijwanichakul , Sascha Hauer , Arun Iyengar X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796536657; l=2128; i=aiyengar1990@gmail.com; s=20261110; h=from:subject:message-id; bh=pWGgDNReqboxSyr5VfPbRCUDYTeDvzJsJNZ3jQadXZk=; b=/lb70SsHuhr/xlqHtkEwH6h3wporR3JVCJTabMfFroTh7amOBUFZhi0sY2o7qXd8vVgCW2VCD UP9mSLskQ3DA6a5Mnpa9Aljn+Y3fHH3vA0h+C+misctxd+ay9S3qxT+ X-Developer-Key: i=aiyengar1990@gmail.com; a=ed25519; pk=zXpRgUTrhaFe6jLyPqbBy3ccfkj04w0g2690Wv3mg+0= X-Endpoint-Received: by B4 Relay for aiyengar1990@gmail.com/20261110 with auth_id=1480 X-Original-From: Arun Iyengar Reply-To: aiyengar1990@gmail.com Content-Transfer-Encoding: 7bit From: Arun Iyengar Describe the AXI and AHB reset lines of the four VEPU121 JPEG encoder cores, so that the driver can reset a core that is stuck after a fault of its IOMMU. The IOMMU of each core sits in the same register block and is clocked by the same clocks, so these resets likely cover its bus interface as well. This relies on the driver not leaving the VPU in reset after remove ("media: verisilicon: Don't hold the VPU in reset after remove"). Signed-off-by: Arun Iyengar --- arch/arm64/boot/dts/rockchip/rk3588-base.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi index aa69fd3793fd..227465d446a2 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi @@ -1325,6 +1325,8 @@ vepu121_0: video-codec@fdba0000 { clock-names = "aclk", "hclk"; iommus = <&vepu121_0_mmu>; power-domains = <&power RK3588_PD_VDPU>; + resets = <&cru SRST_A_JPEG_ENCODER0>, <&cru SRST_H_JPEG_ENCODER0>; + reset-names = "axi", "ahb"; }; vepu121_0_mmu: iommu@fdba0800 { @@ -1345,6 +1347,8 @@ vepu121_1: video-codec@fdba4000 { clock-names = "aclk", "hclk"; iommus = <&vepu121_1_mmu>; power-domains = <&power RK3588_PD_VDPU>; + resets = <&cru SRST_A_JPEG_ENCODER1>, <&cru SRST_H_JPEG_ENCODER1>; + reset-names = "axi", "ahb"; }; vepu121_1_mmu: iommu@fdba4800 { @@ -1365,6 +1369,8 @@ vepu121_2: video-codec@fdba8000 { clock-names = "aclk", "hclk"; iommus = <&vepu121_2_mmu>; power-domains = <&power RK3588_PD_VDPU>; + resets = <&cru SRST_A_JPEG_ENCODER2>, <&cru SRST_H_JPEG_ENCODER2>; + reset-names = "axi", "ahb"; }; vepu121_2_mmu: iommu@fdba8800 { @@ -1385,6 +1391,8 @@ vepu121_3: video-codec@fdbac000 { clock-names = "aclk", "hclk"; iommus = <&vepu121_3_mmu>; power-domains = <&power RK3588_PD_VDPU>; + resets = <&cru SRST_A_JPEG_ENCODER3>, <&cru SRST_H_JPEG_ENCODER3>; + reset-names = "axi", "ahb"; }; vepu121_3_mmu: iommu@fdbac800 { -- 2.55.0