From patchwork Sun Jan 19 22:43:02 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thippeswamy Havalige X-Patchwork-Id: 13944612 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2048.outbound.protection.outlook.com [40.107.96.48]) (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 AFE6E197A7E; Sun, 19 Jan 2025 22:43:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.96.48 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737326599; cv=fail; b=Wkto4filRl+I4zZhKBdkoiyEWnUQ7vfWSXHEIY/2wJ4vC1ZemiLYY5w8Xyk955J0llN3LbCpSUkB/Pd7HI6h3m0pAw/FmzjfOE6ZQYqy4fBk+mWiNNWOFU0MNkXjcVanH7FduG7nAW0rOcvmhDjM4CtJFHAsJHYMMCi0J3AsBm8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737326599; c=relaxed/simple; bh=KiB/j3M2WEWA1sQHQKb0ATBILLI3pkDZUq0fWDi7buw=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Zd4p00j0j5X/fR3MuMQnskPnZkMhZoaObMPhYwm1Rzxmdl6Q3YPjx6dgZUwIJLeMCvRSvDWMQnSpYQDayFeGtsizH+JjyNEaPV4esOzKc8a/z9xUsIMkrDUKI49SJIlceFNc6mdWPD9Iu2Y4fs1XRozotxQ310uWZIhrOJDAWgA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=AMMeADOl; arc=fail smtp.client-ip=40.107.96.48 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) header.d=amd.com header.i=@amd.com header.b="AMMeADOl" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=CoGuuDoYcKGSWHIGexAdC8jAW1B4Jmt01gbH2Z5n8uVwqtjEVYB0lgWY4jZChdCRegUgybHlIgoAM1xv+0NqEXOrJ50q3mOqXDt6O3S999XaAAe+6k8raX5BwU3Ntu7ka2JFrMiiCL5qYDcLYkq3RmaVNHMkJ2iTk9fYwxKFJybEnj+RWDHugAGrHzUUVL//sJPlZTuk9xFrO7z7Hra8jCsR33R2CFDNl/4Fq4vP3BQKK77TI2SXeABtOzxeaKVbrHjxgmR/KOj2UZRINj8BtixzVFR9Fwi8tGsDtcQNjHzvhMvjaAVUGN+9lcWBa+92ElRrNSwHITFt1h2k1SYqbw== 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=MoNrreO+cqjozw64fJEKusEmvweoFmPU/m6yrcHA7sw=; b=mlQFuaqF6fPabIdXIrrf5xnjywecI1xdsxGY8MhjMvhvmT/cZDci7P8cwn/WIm1mYuPDfKmnDHXysGQZs7dnf0lvH9dwNesAdfmo6kRaLh+OtlwTTI80/K7nqXbKhGGmBCEd/BHp68bTaHu0a1kemz1xp0KzOhOMsDWzSrHBxl6Xy8NNxpj0XFlGTdjkORswzxqBp2HT+jCGDQeoMh4RynDCWOSmYC7Xn9uDdAa/DetrnggfiCrQmxHn7MdX7t3ofW/5p3Lg8JOxjHilT21eUviAASv+iuREEsuFB0dDDidWTzwdRV2lMmByDsG67a/2Y79l8d1xoyWUdvI/EhPtLg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=google.com 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=MoNrreO+cqjozw64fJEKusEmvweoFmPU/m6yrcHA7sw=; b=AMMeADOlOuq7IWwrXeJL2poDwrKtE4DxkDEISgkS9qj4atiU1JvyDifgQRmwsYjdwTS3NciclvBvB2znQbdEjuODO6fDgjHoWEeVQbdKi6hjfLAD1QfxANgZe6wHuAMEGp88UExwva+ArFYyWzQ/2sCCQ8iGdvx0INqDic8rNFU= Received: from DM6PR06CA0086.namprd06.prod.outlook.com (2603:10b6:5:336::19) by SA0PR12MB7003.namprd12.prod.outlook.com (2603:10b6:806:2c0::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.21; Sun, 19 Jan 2025 22:43:14 +0000 Received: from DS3PEPF000099D6.namprd04.prod.outlook.com (2603:10b6:5:336:cafe::a4) by DM6PR06CA0086.outlook.office365.com (2603:10b6:5:336::19) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8356.20 via Frontend Transport; Sun, 19 Jan 2025 22:43:13 +0000 X-MS-Exchange-Authentication-Results: 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=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by DS3PEPF000099D6.mail.protection.outlook.com (10.167.17.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8377.8 via Frontend Transport; Sun, 19 Jan 2025 22:43:13 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Sun, 19 Jan 2025 16:43:13 -0600 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Sun, 19 Jan 2025 16:43:12 -0600 Received: from xhdthippesw40.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Sun, 19 Jan 2025 16:43:09 -0600 From: Thippeswamy Havalige To: , , , , , , CC: , , , , , , Thippeswamy Havalige Subject: [PATCH v7 0/3] Add support for AMD MDB IP as Root Port Date: Mon, 20 Jan 2025 04:13:02 +0530 Message-ID: <20250119224305.4016221-1-thippeswamy.havalige@amd.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Received-SPF: None (SATLEXMB05.amd.com: thippeswamy.havalige@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS3PEPF000099D6:EE_|SA0PR12MB7003:EE_ X-MS-Office365-Filtering-Correlation-Id: bb472ee0-c563-402c-9730-08dd38daa886 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|36860700013|1800799024|7416014|376014; X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ngn3NdoDqmt6JrUKX7YgEDnPeTfgoc1f+71wpiz5TQdHce9FpC32ijlyR9VRxHjMqA4JgLSU8nLNQBZl9PQylz53xbiebuKwybDBV7/P2ow7cMnhOuYYM9dQ4qxdHkAcWeg+WMniSw7FoJV68UZwVb8iJRCiIH2wOFvyFY22Ra5fMBF0jzjCML7zGiL04uGGBzeMpNN7wbgc9pIyO9R+AZzWNCaUCRyAsfnMFuvasvTQeFqQ8goH7xbMKBPrHnJ9OkYNBHHRcp6Ia4VOKoZ8qkB6w/uKPytGDiKSuiQFp7j2n9/htgm+DTu4AMwgtpbs/SYCOiqLQa5p9JdxrsTA1hUWtgTH/aAaJJhj9hEbUWpEqXlY7548+GgLHJTEuMPcmvAknqh2HLHzC8tKihagIDORzHp08OOjYVHWbYR3IpjkhlprLDn9XP9SYZ69lAqW9cw= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(36860700013)(1800799024)(7416014)(376014);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2025 22:43:13.6803 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bb472ee0-c563-402c-9730-08dd38daa886 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=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DS3PEPF000099D6.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB7003 This series of patch add support for AMD MDB IP as Root Port. The AMD MDB IP support's 32 bit and 64bit BAR's at Gen5 speed. As Root Port it supports MSI and legacy interrupts. Thippeswamy Havalige (3): dt-bindings: PCI: dwc: Add AMD Versal2 mdb slcr support dt-bindings: PCI: amd-mdb: Add AMD Versal2 MDB PCIe Root Port Bridge PCI: amd-mdb: Add AMD MDB Root Port driver .../bindings/pci/amd,versal2-mdb-host.yaml | 121 +++++ .../devicetree/bindings/pci/snps,dw-pcie.yaml | 2 + drivers/pci/controller/dwc/Kconfig | 11 + drivers/pci/controller/dwc/Makefile | 1 + drivers/pci/controller/dwc/pcie-amd-mdb.c | 436 ++++++++++++++++++ 5 files changed, 571 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/amd,versal2-mdb-host.yaml create mode 100644 drivers/pci/controller/dwc/pcie-amd-mdb.c