From patchwork Sat Dec 7 17:11:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Havalige, Thippeswamy" X-Patchwork-Id: 13898340 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2083.outbound.protection.outlook.com [40.107.220.83]) (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 CBD389460; Sat, 7 Dec 2024 17:11:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.220.83 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733591507; cv=fail; b=lOQ/7Da37UBeoxoZveXL269Sc82ViIQNSSoNyibK/yrNntE+eayovT7AdWLbWbqTvWk1JPDI/PpoMSgn17kg4fG4LczHvpxggRi4WLkXpAx32k+Hvl2t8q+vCYToZsZcgHIiuiOLEv3/oy9y0ZlBKz2KdlNwFOe7nOAEOsRZbhs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733591507; c=relaxed/simple; bh=V061oBFHHdLp7jlGcAQ1o8Z5TQhPnPInVfL7fYSs3LE=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=EFONUS4e4faKaQOcAa5p7o4Psw8oaFp6XQOJV4ONFe02IV4IgkxyluLNqCz/Nll3ctzWbb7/jqFFrTGHUx37HJSj4LhMeNKLDVAnsMUMJV33IhzH6D2mHqUmg+b+BVtHnc73E3tT2ZmCcSEo8AdF41zAEV5q5V6xHdosPxC5API= 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=pknP0bfF; arc=fail smtp.client-ip=40.107.220.83 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="pknP0bfF" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Y57JcMxM2vl42i1HpzsN/lkN8pu9tcEP+qfSUQWOlkFa4NsvYWLJmxZxnxqu1OkM6IhljOe51SihLSPIOYhkfC+XZcJNqfMAsFFkNGTaZBsaNkTroqyMV206VIQz9nuEj08tDddI5hPwUPVTvU29gF3jzLQT4fehT20QgjVZbQpec9JTsZqw2GyI2CzcumBWg2zYI51nKV/1CFXYRRwPikMYuUmarF3vg2V9yIpQWwI3XUpReTO41so7Cu/BQ7if3jEm75mJ+mbEfaaD7CcRau3rmgKfxE7Cruzxm+5St3bRotVTfrOawSf+oBBwQGVk8JcYaBQaRs7ohzJ0z9812A== 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=4m02f2/2AsUPomL2Kqnwz2/k6uTiueWOZI8zM+/ReIA=; b=qatVysmYObAMcP8zQ9TvIDxPWC/bphc/05ZWuAT8oAONDttE11U+HxukBgBhuqpnxWRwkzuebW6FQmx04gzN1ByDye6q9wdQdsVf4e+hC0BiHTfMnOgiPCW1yCzLfUTGOfr6E8jEAkoXcn611vgFgh8q1Xd7D++nYu6xwDzD1XQmko5Z1e7UY7Ml+h5FgYo73bEXDtTA/YbIowNieDCeVTLW42aMeBDuMDvtoIX8mhipmaJXCkorvB6EFDW3tnxrxdrZTkevdg1yiwgBldETWe6vdTPACDK03YwrxdbLKxzZIgp2mSkBQiA8kEaSNbYoozxSQu8eKjJIeLcgp1aDyA== 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=4m02f2/2AsUPomL2Kqnwz2/k6uTiueWOZI8zM+/ReIA=; b=pknP0bfFvFkDFpZAIVQAHvd/POd0KfHYmjt5ubG7MJGuEQO2CT9ObkX0eENbRKvp8iXdpr/SAS40PkvX1/ttkvORMUCVSqP7exUIOYiOhANT/zYBpKf3/18MRGvHG7CY7PPXxr67a5A+/ZjnPGAOKNZttsKm7POC3bWMNPPv/A4= Received: from MN2PR07CA0002.namprd07.prod.outlook.com (2603:10b6:208:1a0::12) by PH0PR12MB7011.namprd12.prod.outlook.com (2603:10b6:510:21c::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.17; Sat, 7 Dec 2024 17:11:41 +0000 Received: from BN3PEPF0000B069.namprd21.prod.outlook.com (2603:10b6:208:1a0:cafe::65) by MN2PR07CA0002.outlook.office365.com (2603:10b6:208:1a0::12) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8230.12 via Frontend Transport; Sat, 7 Dec 2024 17:11:41 +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 BN3PEPF0000B069.mail.protection.outlook.com (10.167.243.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8272.0 via Frontend Transport; Sat, 7 Dec 2024 17:11:41 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) 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; Sat, 7 Dec 2024 11:11:40 -0600 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Sat, 7 Dec 2024 11:11:39 -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; Sat, 7 Dec 2024 11:11:36 -0600 From: Thippeswamy Havalige To: , , , , , , CC: , , , , , , Thippeswamy Havalige Subject: [PATCH v4 0/3] Add support for AMD MDB IP as Root Port Date: Sat, 7 Dec 2024 22:41:31 +0530 Message-ID: <20241207171134.3253027-1-thippeswamy.havalige@amd.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PEPF0000B069:EE_|PH0PR12MB7011:EE_ X-MS-Office365-Filtering-Correlation-Id: dd7e67a9-461f-4f0a-4e0b-08dd16e23808 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|376014|82310400026|1800799024|36860700013; X-Microsoft-Antispam-Message-Info: LKURxg4u3AAfzJy5vwPosG2i5mYI4V8x323nEPl1xC/rNBvfl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6aKlCqSn/oHJrvvm7k21Kwj543MkDxjsQTKb50t6Zzv1JTr3N6dyj2eWtVTWjOHPNETB8bjLLiYG3Z4xn7R3LhKBGMM8bh2SEcaKFTnHkXjCWIdZ5xx3WuG3lfPIvJM03M37BMK/2MmJi6z972v22bN0pbX7iuOvCHPedm3Ga4V0hlCV76GlJ+YS5Dg1odenplyLd7WbMqiq9Fi4efAy4ta3rLrLkK/SNfP8cK6V4FRDE+YSS4QUzxYMsKsjqekbGPHApDPWeqxeO4VsTpNc/9PYhkIeJipt97Vu4OkdkafCw7i58cOOVQIN6soTfs4/qCodtpdgRvxVNIs58LUSALtnmTaJWXTxDdYYMO/3QVNRUpD 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)(7416014)(376014)(82310400026)(1800799024)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2024 17:11:41.4185 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dd7e67a9-461f-4f0a-4e0b-08dd16e23808 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: BN3PEPF0000B069.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB7011 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 | 10 + drivers/pci/controller/dwc/Makefile | 1 + drivers/pci/controller/dwc/pcie-amd-mdb.c | 439 ++++++++++++++++++ 5 files changed, 573 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/amd,versal2-mdb-host.yaml create mode 100644 drivers/pci/controller/dwc/pcie-amd-mdb.c