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=52.101.48.14 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796213224; b=3X1eMi1o8qHfgGfs8tEVPHd34OsUFOAYnP/f0egHgjmOfTGkL7uJcSg3sr/phO+/VjI0 3ZvZUKNMK9CTmByZ95fl3qovEKDh5U7/0tMKeQuwCS1AvBbanHxi1UlC9ERZfXvdzgcuD 5GKT8+OKIQHy/I3udH2L9GVXYlwqDxfOko8Be6niZIM6+hhpEFIThy+cUzKybUbSeXkBC /lyIFGzIAARh8oB2Rg9E818/OuLJB7F89vF8SzR+sgHi3ebz7MZDrPDKG2/skbigdzS25 tuYTDof9nD5U81rh6WNj047epF1s49tvMeCYBG31R/lzttS9akMzyYKDonpxIhfdvxA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796213224; h=DMARC-Filter:DKIM-Signature:Received:Received: X-MS-Exchange-Authentication-Results:Received-SPF:Received:Received: Received:Received:From:Subject:Date:Message-ID:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To: CC:X-Mailer:X-Developer-Signature:X-Developer-Key: X-EOPAttributedMessage:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id: X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay: X-Microsoft-Antispam:X-Microsoft-Antispam-Message-Info: X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-Id: X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=UnHCYwD3kxHLhUUPIsOBKbF5hvmtmxxfXzRDiPnnB2o=; b=Acr92p1abelMhZKeyLxPcN5DVwpOKgretXsp1N8ZZmFpNxheOcf3H5D7NL0VeY+ztUG/ QmPSVnYwJ37ywSsJo2JdOi9zoUoAnl43BDfHID4slkT4vRY78rckO/mthylAbu+uCkl74 tufZq0tlxXtQB52Q6WwsXMJ+ei7RWUCJ06XYlCrNNzItmHUFHgUtHoAyy66XfeuP068wg uGghZlMC5OClfTH6dxcgHWlSjNh/FHoDS6sQnI9OXDCaR4lNNtcmCZslxnCjXB2H44orr GJz/2ix3Qk+svQuXhVdupHouhGMr/0e1iBaRvu9KVAJe8VsT7ME6KP5GEH3Lf5efpqw== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=BZoZt4O+; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.48.14 Received: from MW6PR02CU001.outbound.protection.outlook.com (mail-westus2azon11012014.outbound.protection.outlook.com [52.101.48.14]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF8C0606A31A; Wed, 2 Dec 2026 12:07:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BF8C0606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=BZoZt4O+ ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=p5RjATRBdqTzdP21IABLLfczT7zq32tIXeQwzA6DozusEPEH7wNx79n4A8GrcBbXywtKvFyt5ljWy6TEqgxFIA0mNPHadLxcJW7UsD5o4fnbrg3AbGQLfgyrvrpIKMsunH9FD92JvtiZOtObcIuRouLQo2cGwwoEjepAv8dcKFkw8yclA0Su01HMfHL7eqcrJvCTrX1mJGDPDwUXy6yqzQfH7sIM2KQRyy70QBiPDLY2raBgn3A8VB/BtBGsBxP+W9v8ydW2GH5M57toEMFx9ZBoq7LmEPh1GHogKJI4xELg8KUtUnGApjC6nZEX4SRAhfMBVK+Y6kqBzjDxsZEAKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UnHCYwD3kxHLhUUPIsOBKbF5hvmtmxxfXzRDiPnnB2o=; b=LpBDUYFWLoJHMY3pTrGQUWNPEiAlDJv63Y0BXCLnYMTOPkAJvqrlHYIwdHjh/NUBjbiNf6/itER7O58qv0/Op4gj20ZFRve9FT3xkZB7cW5W1TU3LxNwViCliB2F1QB2CqqInkmejM1HXc1lmwwtczvrN04DO23kdpQ+grk1ZA/Uo0oGsGGJvgIbjMTcJ/v9/WfzbUrpjHcbj5Jp3xg/BX01THekEfNNxDz/FD9WvqURUbPzQ7Kc/sIsy4+mI5y4EwAu3G2GW8pGLqTb/qUV6WNIOyQY4UpEBuwOap9djqkYyF7kuvK+xMTr98KvbKJYq7VQXspUUcNkwNfbEV2q2Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UnHCYwD3kxHLhUUPIsOBKbF5hvmtmxxfXzRDiPnnB2o=; b=BZoZt4O+nWOI/hxYDHd3C4ockMeOrQuOSgcUV5nt3ABEU7AQPzYuqVU7T9hXxMTgiS48hVg4i5RiWcNgM75GcCCl+aMZKIBIKpE9OGLHlhmQTKkSV3NlgitSwyoU3K7Fl0jLMtU7qyugPJ/p9zGLKa/Ahs2OLd0IenZhWCQcIzg= Received: from IA1P220CA0042.NAMP220.PROD.OUTLOOK.COM (2603:10b6:208:462::9) by LY0PR12MB390394.namprd12.prod.outlook.com (2603:10b6:408:3b9::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.10; Wed, 2 Dec 2026 12:06:58 +0000 Received: from IA0PEPF00000038.namprd03.prod.outlook.com (2603:10b6:208:462:cafe::10) by IA1P220CA0042.outlook.office365.com (2603:10b6:208:462::9) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.11 via Frontend Transport; Wed, 2 Dec 2026 12:06:58 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb08.amd.com; pr=C Received: from satlexmb08.amd.com (165.204.84.17) by IA0PEPF00000038.mail.protection.outlook.com (10.167.249.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.5 via Frontend Transport; Wed, 2 Dec 2026 12:06:57 +0000 Received: from Satlexmb09.amd.com (10.181.42.218) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Wed, 2 Dec 2026 06:06:47 -0600 Received: from satlexmb08.amd.com (10.181.42.217) by satlexmb09.amd.com (10.181.42.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Wed, 2 Dec 2026 06:06:47 -0600 Received: from xhdnaggolla50x.amd.com (10.180.168.240) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server id 15.2.2562.57 via Frontend Transport; Wed, 2 Dec 2026 06:06:42 -0600 From: Golla Nagendra Subject: [PATCH v6 0/4] dmaengine: zynqmp_dma: Add reset support for Versal Gen2 and Versal Net Date: Wed, 2 Dec 2026 17:35:52 +0530 Message-ID: <20261202-v_6_reset_series-v6-0-935f9338ea1e@amd.com> 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" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAKAJEGsC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyzHQUlJIzE vPSU3UzU4B8JSMDIzNDIKFbFm8WX5RanFoSD9Gpa2iUYp5ikmqZZpmcqATUVlCUmpZZATYyOra 2FgC+GtyJYgAAAA== X-Change-ID: 20261202-v_6_reset_series-12d7d4e9f9ca To: Vinod Koul , Frank Li , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michal Simek , Michael Tretter , Harini Katakam , "Shyam Pandey" CC: Krzysztof Kozlowski , , , , , , Golla Nagendra , Frank Li X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796213202; l=3922; i=nagendra.golla@amd.com; s=20261008; h=from:subject:message-id; bh=Q9NRZ293f0Y6X2JN4ltw7fNe1o8ROky6jyHw4QQClpA=; b=tAXWJrEl/TozCkV7hSVEQ/NvHjYh081VrvNeVDyBPSNu7AQTfLRjCKwpfT/ipsMiMPRcIEADz I5oXxGRL2tEDia0ZF8JJY2WvS6lhLc3+Chu7Eu6f6Qcj0r0JhLd2pS0 X-Developer-Key: i=nagendra.golla@amd.com; a=ed25519; pk=pCRGj/0mb0C3aDMpVVZeyBqOIQZUKGJjCKL4QZTu7nQ= X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA0PEPF00000038:EE_|LY0PR12MB390394:EE_ X-MS-Office365-Filtering-Correlation-Id: 94a8e75a-2d46-415f-a3f6-08df506cc3b9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700016|1800799024|23010399003|82310400026|7416014|376014|10067099003|56012099006|260925021311599003|260925022911599003|260925021911599003|261026140227099003|261028144727099003|261021123027099003|261021121427099003|261022105027099003|261022075727099003|261102123227099003|261009221727099003|261009223027099003|261009223327099003|261009221227099003|261009220027099003|18002099003|11063799006|13003099007; X-Microsoft-Antispam-Message-Info: r4hA7G+gv4m4+GKAlB15Mo0jPMNoWoxY9md9J1fW7huMsPny4PnGXe5rrXwuFs02t69hIUvE2mk4EO+KsLstJR0Reif3GH3b1zpgozOTJdt+RhiNUfWv1acj6XJVEX1LAiK0UtdyoGLWlLOAPbsl3qhVDLVc74JU2BKwRsNw30sIxaKxhDiipge7PMEMnc696Ak96XK5m+Deh+ZMJHIX6vrPVWJypm+kuHkX8vIsNX6dMB8ucgL/6mO1+5UaoDrZn/co06iu+ZRk+Nr7KblaZ8Z9jJw8LMqaoRpistDgrkktj43pyhCLOfrDEIW+P4bwLzaegfBqynhVjZLn+pUTFcFrMI5GkbZyREYB4YXAHj3c5bLWPTe72jqwL5U5Pi3H+hp+IciTJm1jztt7FClQfOoJVRTGr50Ptd/amVLyxtum9pdTp5Q/0cSKq3glXmqnHnslXyepXaBg/mbmYk4rHCfXwFzwa0wAJeIPnKLNrzN7dUwmKxU8vPs8LYlWkXw63saqjDLmlb++/mJ0OfCMUj11zYupcjsa8oVG43XNF6UoWW4KTHxi4DzdhfFe6MqUqJFasL7JBH6vzCxagbxe6nhcqV6Abu8fbkRztPWtQI2olI2dWyNG9/mrYCbJUcldmUuZ5TT6rA35xfsZ1v4jrls4bfs81Acb6VZ22qMPf6I= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb08.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(36860700016)(1800799024)(23010399003)(82310400026)(7416014)(376014)(10067099003)(56012099006)(260925021311599003)(260925022911599003)(260925021911599003)(261026140227099003)(261028144727099003)(261021123027099003)(261021121427099003)(261022105027099003)(261022075727099003)(261102123227099003)(261009221727099003)(261009223027099003)(261009223327099003)(261009221227099003)(261009220027099003)(18002099003)(11063799006)(13003099007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +eBY/g03ej2+fFY33IoYCDE1aanZ9tqyIi+67eIQkROElBXMZSd03rgMNAdG/q1ZMKjX724sSCUhbdp58QPtruc/knzecGQ8nKHGeuKFHNVlWGX5+jxcpje3n3aUmD6PJCwpcCVdFjeUfK3DReab6sXXgETpylUVUVakHr+kY1hyVNiGTlGGMgDN96cOngiImRo+PZ6niZ8+Ip5XU2ajFX3h5/sWMCLSpQLeIlECwmsIw91u4Fl233oXtH+/sKFQxx/M38FoC3DHTBlWGmIewHjlvASEfrmX5/PDpEWmqCQOXuVZP+n2gjK5yRBRMyCmxxXTdcCp2XvCyLXjyXxUggE39SwoMm4s8BoVaC/0awcZe6INqqHvhrWo3Uhaa6DwJ2uy3QtFTBelqvZVyURXOluTlCci1WCi2VZ8HcTITYWX8KRuKvMG9C1yTG9rnOLH X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2026 12:06:57.9870 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 94a8e75a-2d46-415f-a3f6-08df506cc3b9 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[satlexmb08.amd.com] X-MS-Exchange-CrossTenant-AuthSource: IA0PEPF00000038.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LY0PR12MB390394 This series adds per-channel reset support for Versal Gen2 and Versal Net DMA channels. Patch 1 requires the resets property for Versal Gen2 DMA devices. Patch 2 adds the amd,versal-net-dma-1.0 compatible with xlnx,zynqmp-dma-1.0 as its fallback and requires the resets property for Versal Net devices. Patch 3 adds the Versal Net compatible to the driver match table. Versal Net uses the base IRQ register block. Patch 4 resets each Versal Gen2 and Versal Net DMA channel during probe using device_reset_optional(). Legacy SoCs without a reset line continue to work. Changes in V6: - Initially, used device_reset() and checked the has_reset flag in the driver, explaining that reset was needed only for those Versal Net and Versa2 . So we decided to allow the reset patch to run for those 2 compatibles, while it would be skipped entirely for the legacy one. But, following the Frank Li's’ review and suggestions, the required reset property is validated by the DT binding, so switched to device_reset_optional and removed the check from the driver. Changes in V5: - Drop the probe-time PM and unrelated IRQ-guard patches; retain only the patches required for reset support - Split the Versal Gen2 reset requirement and Versal Net compatible into separate binding patches. Changes in V4: - Patch 1: Use PM_RUNTIME_ACQUIRE_AUTOSUSPEND() instead of pm_runtime_resume_and_get(), and fail probe immediately if the guard acquire fails. Add zynqmp_dma_probe_pm_put()/_fail() helpers so every error path releases the reference and gates the clocks without goto-based cleanup, and pair every direct zynqmp_dma_runtime_suspend() call with pm_runtime_set_suspended() to keep the runtime PM status in sync with the clocks - Patch 2: Bypass the guard when pm_runtime_get_if_active() returns -EINVAL, covering disabled runtime PM and CONFIG_PM=n, so interrupt handlers keep servicing interrupts instead of bailing out - Patch 3: Remove the IS_ENABLED(CONFIG_PM) condition from the guard error check, since patch 2 already handles disabled runtime PM and CONFIG_PM=n inside the guard itself - Patch 4: Move the allOf block under the required field Add the new compatible string and the resets property in the example - Patch 5: No change - Patch 6: No change Changes in V3: - Patch 1: New patch - split PM usage count fix into a separate patch as - Patch 2: New patch - add PM_RUNTIME_ACQUIRE_IF_ACTIVE() guard and its backing infrastructure to pm_runtime.h - Patch 3: Use PM_RUNTIME_ACQUIRE_IF_ACTIVE() guard instead of the manual pm_runtime_get_if_active()/pm_runtime_put() pair from V2 - Patch 4: Use allOf:if:then: to restrict the resets property per- compatible with resets: false for non-matching platforms also expand to include amd,versal-net-dma-1.0 - Patch 5: New patch - add amd,versal-net-dma-1.0 compatible to driver - Patch 6: Introduce has_reset flag in zynqmp_dma_config to gate the reset path; PM usage count fix split into patch 1/6 Link to V5: ----------- https://lore.kernel.org/all/20261106-adma_per_channel_reset_v5-v5-0-f9990669362f@amd.com/ Signed-off-by: Golla Nagendra --- Golla Nagendra (4): dt-bindings: dma: xlnx,zynqmp-dma: Require resets for Versal Gen2 dt-bindings: dma: xlnx,zynqmp-dma: Add Versal Net compatible dmaengine: zynqmp_dma: Add new compatible string for Versal Net dmaengine: zynqmp_dma: Add per-channel reset support .../bindings/dma/xilinx/xlnx,zynqmp-dma-1.0.yaml | 35 +++++++++++++++++----- drivers/dma/xilinx/zynqmp_dma.c | 7 +++++ 2 files changed, 35 insertions(+), 7 deletions(-) --- base-commit: b6aedcd927635d94afef249a72b0a498d1896f94 change-id: 20261202-v_6_reset_series-12d7d4e9f9ca Best regards, -- Golla Nagendra