Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp669154ybj; Thu, 7 May 2020 05:01:53 -0700 (PDT) X-Google-Smtp-Source: APiQypLb8zMULbWncJX6NBnNYrIUPjhmcsh9PrRKrzLpvHWuczKXBSRGebkF0pdiSYbWQYXqhnHE X-Received: by 2002:a17:906:1996:: with SMTP id g22mr10361969ejd.53.1588852912976; Thu, 07 May 2020 05:01:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1588852912; cv=pass; d=google.com; s=arc-20160816; b=xFdQ87i4k+fGsFGES1EPjV5JPsXci/2R0N/SpxYswySwPb0Iq4PI2Hjn1u9oLtMfCH sum4/X0JnDtY0X85I+mBVpWwVHWCwlCm+V6lrIiZ5elzsIzpoH6Ewnrko/+1zRfEo7Nt RWIre66QuNt35NIr+3tR64mJ9Uo1xUJtG55vvocsHUbixXRNKPYqqbcsQY0HVGey2sOU ixNoChdKkfpbXFTr+aIMdfgXs/HJ4PJVTkbZ+zCgVHJkEB8xSijy8dat50TYoITFD0J1 SgagkcJj/az1CjEirz83BfySFW6SJqjdf3e2pvycyOJvp2chYTJkJC4LwMP267MQt5iF b+sA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=Ip4pGvK3wOFNUxUA/CfLA8r2aqEcFAy61eQ3BEWSWOY=; b=SGhXZeWYQknKer/9MZOG/w25IIo3mmZ0ctTRcrSwxFtbcefMUuQyBvh9FA10YajXP5 PIixSXbGl2MyQifZeogZqp/HeIylI8HXx2XkVTjcfcaEUgI18HFyT3DbE2J+RKm63wmX amksl9qm4PHswnAz7mCx1JoEoLssif0q8g2Fm+N6F8TuFcXKzCynhK3f3eXQkt1mY42e UIU4PrN07DH0NYnNwFvDS/Sir7usPMEV0aZQsOqVSKKDWWkwb+bmjaho2jt+LDSvjA8W mQDmlHpI2rgqywGsB9i3LN7AyokZi5PSI7UOhvG5nyT/Wt0mDtBdWOxWr4L8Bv/nPvFf bw6g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=hikBo6eX; arc=pass (i=1 spf=pass spfdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b10si2944001ejd.323.2020.05.07.05.01.22; Thu, 07 May 2020 05:01:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=hikBo6eX; arc=pass (i=1 spf=pass spfdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726531AbgEGL7o (ORCPT + 99 others); Thu, 7 May 2020 07:59:44 -0400 Received: from mail-eopbgr750079.outbound.protection.outlook.com ([40.107.75.79]:29590 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725914AbgEGL7n (ORCPT ); Thu, 7 May 2020 07:59:43 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S4DQNQG8B/n5C/z1FW7+rE8RG78au61c+3ahZ6xq5aXkCU+PvMOahQTuRswFAV+kXXzXXao7ERHXYDge9pJWzd2ZvfUI301THkSf7F81TZhTqfxaJtP9qm8JO2d3p7xm9kQa50DSfXWt8xChunkBYKnI1aWKf4XoGJOp7IFLvHh1QwFCgThOdEP1PQlO/NOA9VnhxyjJNKkafBFkKKhUnVnm2LmlzNQqctfo1TpC10A9S4vnOG5T29jMxoB2V29w3WyfqqzWLcR2o7MQfJivT6vlTX8BS1FLUPgyS0f9oGwUkLY+M/PosjSfK9egocQmCo2z4C/Z1/yKNHfaDw6YrQ== 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-SenderADCheck; bh=Ip4pGvK3wOFNUxUA/CfLA8r2aqEcFAy61eQ3BEWSWOY=; b=NbEu0Bra6HYbfa6ilOe/UYMqvZZHwZGZj+AFJFtTsiT1CL5COQ9UWRkd3MSO1py1fT/2PF0AIPO+kueQ+xUryAvhJY4jRBt+o+6OCwm1M7w55m9zGMdtBJ6Cwynzmp0UuevyX6dC2wq++i0877jcU7GHZqjVZr0D7vXZYUsyRlpdYFNzxL1hGcUn/hMUAnuey5I97ZQXtN9NWnnKmgbu5uoYYv82ncYz5EEkWl02QEfdmgq3Ea7LJtTwiqZiXrFXCWZLVAoFLx8b5ur+z1dYICIcmj3NPH2OuzrZdFOyPv0Resod7jElHIl9jB6b8tZgdDBTJkTVi89WoOrbZBz4SQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.60.83) smtp.rcpttodomain=kernel.org smtp.mailfrom=xilinx.com; dmarc=bestguesspass action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ip4pGvK3wOFNUxUA/CfLA8r2aqEcFAy61eQ3BEWSWOY=; b=hikBo6eXAAcVPBn+0+p8dbvq0n0Boy+KW38zvc0ltDW42dWLmqUtwxdpCPSbdn2fv4YJHF+kXqmodg7etxEGsfJp5CRFjGz5hzhSBAeokCXuF1QP30P1ZCXTrep4Ah19fNHKXQZCh/zLe6KGd0Bfbomqipvg0RZbg7pxndSq2Hk= Received: from CY4PR2201CA0010.namprd22.prod.outlook.com (2603:10b6:910:5f::20) by BYAPR02MB4725.namprd02.prod.outlook.com (2603:10b6:a03:4e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.28; Thu, 7 May 2020 11:59:40 +0000 Received: from CY1NAM02FT061.eop-nam02.prod.protection.outlook.com (2603:10b6:910:5f:cafe::9a) by CY4PR2201CA0010.outlook.office365.com (2603:10b6:910:5f::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.27 via Frontend Transport; Thu, 7 May 2020 11:59:40 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by CY1NAM02FT061.mail.protection.outlook.com (10.152.75.30) with Microsoft SMTP Server id 15.20.2979.29 via Frontend Transport; Thu, 7 May 2020 11:59:39 +0000 Received: from [149.199.38.66] (port=60023 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.90) (envelope-from ) id 1jWfBZ-0004yO-WE; Thu, 07 May 2020 04:59:30 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1jWfBj-00082j-Gk; Thu, 07 May 2020 04:59:39 -0700 Received: from xsj-pvapsmtp01 (mailhub.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id 047BxU5D028291; Thu, 7 May 2020 04:59:30 -0700 Received: from [10.140.9.2] (helo=xhdbharatku40.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1jWfBZ-00081d-UD; Thu, 07 May 2020 04:59:30 -0700 From: Bharat Kumar Gogada To: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Cc: lorenzo.pieralisi@arm.com, bhelgaas@google.com, robh@kernel.org, rgummal@xilinx.com, Bharat Kumar Gogada Subject: [PATCH v7 0/2] Adding support for Versal CPM as Root Port driver Date: Thu, 7 May 2020 17:28:34 +0530 Message-Id: <1588852716-23132-1-git-send-email-bharat.kumar.gogada@xilinx.com> X-Mailer: git-send-email 2.7.4 X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:xsj-pvapsmtpgw01;PTR:unknown-60-83.xilinx.com;CAT:NONE;SFTY:;SFS:(346002)(396003)(136003)(39860400002)(376002)(46966005)(33430700001)(478600001)(5660300002)(8676002)(82310400002)(186003)(336012)(70206006)(316002)(426003)(356005)(36756003)(4326008)(33440700001)(82740400003)(47076004)(8936002)(81166007)(70586007)(2616005)(7696005)(107886003)(26005)(9786002)(2906002);DIR:OUT;SFP:1101; MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f0fb02f1-932a-4879-d56b-08d7f27e1f18 X-MS-TrafficTypeDiagnostic: BYAPR02MB4725: X-LD-Processed: 657af505-d5df-48d0-8300-c31994686c5c,ExtAddr X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:3513; X-Forefront-PRVS: 03965EFC76 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3+qh2q5/M0pSwYgAwzAMkgfXaC2VBPXn4I2ICXcw3MIJtkryDQRZQHYlsed+8f241T6zKbrO882fFa9qMbR4XDSzAtf6d4o0lEHsU8YhlBinOUCVgDDjOwd9sb5QnEJsIv5T6IKr1c2E1jbiCvW426lnuOxF2hFF7C51WX+8vvQOS+yKrhdClkgK6YY/i8yO9k/ulW2vjBMfnQTblKgfGwz1Q9rh/Huq+NxDi/M5jLWZJF+CXP/OsApzq7x7J2As9BAAuYiPd0+mMladaaDs3LGBfucP3AYxxOc04R9RQIK8kvMeC6Xye5Nr+eAHTfrMWHPKkgsxqmZrgkARAuPNsgK+m7yfnB9OLnkp3ubUn/PHDT0OQA3zmv8GIIkTM0yuT1NAznysLfjcVVfzOAD0WqpCVMd0AfxFq+bYNs5hIMH7aV+GPrlyv76Oo+tgb4tnXil0CF4KZufMLADVSy3Nb9Lu6gwcwCrZ2itUMvHWANRiIKesN08fN37mfU4mOw8gQUgs+vLPLVJFbTc8Xh7A02qDyC1wn2r4VrSg+aIVCFUdq8eijetidG9ne0ipb6JZoPrPMNFRpTXVLBXcX15QUA== X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 May 2020 11:59:39.7656 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f0fb02f1-932a-4879-d56b-08d7f27e1f18 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR02MB4725 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org - Adding support for Versal CPM as Root port. - The Versal ACAP devices include CCIX-PCIe Module (CPM). The integrated block for CPM along with the integrated bridge can function as PCIe Root Port. - Versal CPM uses GICv3 ITS feature for assigning MSI/MSI-X vectors and handling MSI/MSI-X interrupts. - Bridge error and legacy interrupts in Versal CPM are handled using Versal CPM specific interrupt line. Changes for v7: - Adding device tree documentation as schema. - Using pci_host_probe for registering bridge. Bharat Kumar Gogada (2): PCI: xilinx-cpm: Add YAML schemas for Versal CPM Root Port PCI: xilinx-cpm: Add Versal CPM Root Port driver .../devicetree/bindings/pci/xilinx-versal-cpm.yaml | 105 +++++ drivers/pci/controller/Kconfig | 9 + drivers/pci/controller/Makefile | 1 + drivers/pci/controller/pcie-xilinx-cpm.c | 506 +++++++++++++++++++++ 4 files changed, 621 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml create mode 100644 drivers/pci/controller/pcie-xilinx-cpm.c -- 2.7.4