From patchwork Fri Aug 18 09:35:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Havalige, Thippeswamy" X-Patchwork-Id: 13357557 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A3409C7112B for ; Fri, 18 Aug 2023 09:37:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=3P8Y3Uw8y6+PNuhFeOTpB8lDO5rkiDYtx04pqV2yq+Y=; b=Pd/jDGUxMfSh9o c+QA4EkvF/4rRBxVUdJJPP0cIiNIOwwYI3xoFZRBf+iduVZXIk+UvKe41nUL221S/s6wmWcojVs/H 77UcOfTUQqgZOVBzrt0tTDivaEFKoguRO0aqzYWkoe3QAaqIMArKL5wE0A6bZVO86gI3WmNUyq/u/ MvNSwfmXR2Ez3AH0esb+VWcVrWMEKkBNQMlF/qQmh8+jGBoinCmiB6d84MlR4vcHNFsZ/W6LsLuzX UR+tr0ZBW9a+6ZxXhDutqvfv+9IS31pO4kZO1/R1Lbo6n2kbbCNgAVj2CDYWJl8LN1hke8ZqHCtTy rAv8/xjAsfBuHQTjD7Pg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qWvuA-0086nK-19; Fri, 18 Aug 2023 09:36:30 +0000 Received: from mail-bn8nam12on2060c.outbound.protection.outlook.com ([2a01:111:f400:fe5b::60c] helo=NAM12-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qWvtt-0086iH-38 for linux-arm-kernel@lists.infradead.org; Fri, 18 Aug 2023 09:36:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Fu6ng6+Nb5QCoqEBKqt0CmlF1Wtg9R1MhTX/M0TFcs6VdJWYRV/J4bHL9c6DqQKhkdLEFTejNkeeRpNqlocmuaAUYqEgcKtLlCqlZRMs6R1KfEa9OSkeNbJ0K2vdtOe2W8zMDAYjMJN8TnhkjTBj3MBrFaiq+ohwNvDU42vP3xY2Odm4yYS7nSBpjLWAs8LKwowJLVRoNIZ81117/io0zOmD5cPAXgh2znHbAB11aM30InWoU/tgxkY759uG37YuClww6MD42qmDo/Mo42xDYppeY95VKnUobfM87+J2NV6/ext+snCWmifGPhIpIEI7NOika4dBqfai3TsE5DPPQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=kU7frFLcJptOKDpxyN6SEJx9b9lz/72kqx7PuUTaY4o=; b=OGaA/LOQFvUOnb2zU3xJyDCWkQNrR/ngRCti7Rsi+nUYBCctCBSYs+0mT2HLw37hk783rycz8bewNtcphfiLB4JxYBIwvdoaP5kjrzsJ40YQ9KwNH4WXiyQeRy86pd9eKq0MyWv7Towij3P3A75zf36ByStChLjKzcpHnrlYDpAPSi2Hblg1hCQlf1kvkG2eokPPNRyDMPV50A8SYkeKAzDbH+uaItvMXErKtr9vUlZZC4EkcVgHf16O5z2gu9iKGTK2IpCAWKxlqfwzERKtLRC0D8sV5gxjDxjNc4ur+Lch4LRP8GNUuSW0AXL1qg2cL3aH9xnpvLJY8kxqhePpbQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.infradead.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 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=kU7frFLcJptOKDpxyN6SEJx9b9lz/72kqx7PuUTaY4o=; b=BIomDweNDFD37FUhtptYm+4Zu/OFxkuZT7mbBbrND6fBaZAQ9ZVVhy/WWaNB2qeOrCJiY+Kocu9CUQ3EnJ2S0X34YUVD4ccRCfXrNWQ3b5BMs+M8sT0ow4eajz775myMQx2OK3LPOxrChQZTxvjR242uurMNW+wNMH/rjDjHghs= Received: from MW4PR04CA0299.namprd04.prod.outlook.com (2603:10b6:303:89::34) by CYYPR12MB8889.namprd12.prod.outlook.com (2603:10b6:930:cb::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6678.31; Fri, 18 Aug 2023 09:35:58 +0000 Received: from CO1PEPF000044FC.namprd21.prod.outlook.com (2603:10b6:303:89:cafe::33) by MW4PR04CA0299.outlook.office365.com (2603:10b6:303:89::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.19 via Frontend Transport; Fri, 18 Aug 2023 09:35:58 +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 CO1PEPF000044FC.mail.protection.outlook.com (10.167.241.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6723.3 via Frontend Transport; Fri, 18 Aug 2023 09:35:58 +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.27; Fri, 18 Aug 2023 04:35:57 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) 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.27; Fri, 18 Aug 2023 04:35:56 -0500 Received: from xhdthippesw40.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.27 via Frontend Transport; Fri, 18 Aug 2023 04:35:53 -0500 From: Thippeswamy Havalige To: , , , CC: , , , , , , , Thippeswamy Havalige Subject: [PATCH v6 0/3] Add support for Xilinx XDMA Soft IP as Root Port. Date: Fri, 18 Aug 2023 15:05:04 +0530 Message-ID: <20230818093507.24435-1-thippeswamy.havalige@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PEPF000044FC:EE_|CYYPR12MB8889:EE_ X-MS-Office365-Filtering-Correlation-Id: 20ca9694-aff3-42a5-016e-08db9fce8717 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: psrsoPPhj52e8J+O9a2I34KW2x6XIofyDkdo5IK1vW7Z7RVs+Olczy5bFJfv8IZpXCNs/WUou5X24iDI+tXjQASWVnhIhqHzE641A1wKfxGwvNOHg2koGo4r5F8U0OSexx2CJNp9/nU/tEeZ0Ms7pmxUgIP6ou/jH5OWlnYDTstzW2kqaDqnFzWWH0huG+iz9mUOVG5Zgg0+oc6HVs1AATk4ZH2kSsG9TpEGcRU5ff0i5D8JiRelo1QHq5vW4+iQmnVk30pNMwaPMbRuHALCdamHVk2pT/8JeN8Vee1mdtHs72IC5D5of273i0ooZNteGc1aUH5L8mgvw17IKj9HOBZwh3B2ANWpa224v07v6gOADY5wmsqfta5UzPQuA3KKgrTzIGH4cCR8OLUfkRX0FMuu7n/9aKM9oPLMloFTpQVWzZ8R02u+sjTLkmDb1OUENj4L6mmqs+tkFP+9f4OAaDaTljMs/vd+O9vDlyjW7vbZfB2+27pHxIG4iMESlK8c2k6eKqqbLG1c87h9ZzG0fyzaTs0AqojiOWB6P0SQHIPwfEJ2VAipNzwXs1juehjMYE1Jd8MS2qcsC+ATRd3CaNBX3Aa5sJM65MEqh2HC8RK/oHepsXnMgmkxTv71aTBn7WJXt5Ly99Xot1ZdL4Kflyy8VCEdVdNvFqwZUOeUm0R9Py1htzAFniYE8+nhmGwTclqHZA1Z8N9aJwmj2BlrsdbV1OQtMg+RdkFHhmhRjBV0LPvREkK/+c4NkBShffhHYcOYWCPMUS3q9M/bTvTv8ZB6a0L2rErTceXqCPLA54c= 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:(13230031)(4636009)(346002)(376002)(136003)(396003)(39860400002)(451199024)(1800799009)(82310400011)(186009)(40470700004)(36840700001)(46966006)(86362001)(36756003)(82740400003)(356005)(81166007)(40480700001)(2616005)(5660300002)(44832011)(110136005)(70586007)(478600001)(70206006)(6666004)(54906003)(316002)(26005)(1076003)(4326008)(8676002)(8936002)(41300700001)(40460700003)(47076005)(336012)(36860700001)(83380400001)(426003)(2906002)(2101003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Aug 2023 09:35:58.0005 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 20ca9694-aff3-42a5-016e-08db9fce8717 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: CO1PEPF000044FC.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR12MB8889 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230818_023614_046377_71F47CAD X-CRM114-Status: GOOD ( 11.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series of patch add support for Xilinx XDMA Soft IP as Root Port. The Xilinx XDMA Soft IP support's 32 bit and 64bit BAR's. As Root Port it supports MSI and legacy interrupts. For code reusability existing CPM4 error interrupt bits are moved to common header. Signed-off-by: Thippeswamy Havalige Signed-off-by: Bharat Kumar Gogada --- Thippeswamy Havalige (3): PCI: xilinx-cpm: Move interrupt bit definitions to common header dt-bindings: PCI: xilinx-xdma: Add YAML schemas for Xilinx XDMA PCIe Root Port Bridge PCI: xilinx-xdma: Add Xilinx XDMA Root Port driver .../devicetree/bindings/pci/xlnx,xdma-host.yaml | 114 +++ drivers/pci/controller/Kconfig | 11 + drivers/pci/controller/Makefile | 1 + drivers/pci/controller/pcie-xilinx-common.h | 31 + drivers/pci/controller/pcie-xilinx-cpm.c | 38 +- drivers/pci/controller/pcie-xilinx-dma-pl.c | 802 +++++++++++++++++++++ 6 files changed, 966 insertions(+), 31 deletions(-) create mode 100644 Documentation/devicetree/bindings/pci/xlnx,xdma-host.yaml create mode 100644 drivers/pci/controller/pcie-xilinx-common.h create mode 100644 drivers/pci/controller/pcie-xilinx-dma-pl.c