From patchwork Wed May 8 17:41:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vidya Sagar X-Patchwork-Id: 13658985 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 07B2EC04FFE for ; Wed, 8 May 2024 17:42:41 +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=NHvE8pD+9HjjIw0//mLXm1J6SHNslncqXadX2c1jjVk=; b=eiJc3ugu8+Fns+ zELCxirU+zIvHf7WuyWfTqVrlVyuJpLy6QplwxPYuj4g8Y0p2csl9DVjifLGOfd0xcnm3aPbAYPur ZFW2UmxuDWf0skk4axMQODR77XpnII/QrlNhfjnXQaiTqZgruJxqEJDd3KxEUPEHrNZGbhyLGGqO6 ysUNf7CWgnRdUp1zTlmfkXsD7GQc+67hgxkWlndneUZEhCwxVPWsUkydnp45pzrNQfjuEbJEMNIWg mko95cAXvtqbPMkPxmwAg0yJikSeT0m8Ns0rDYGhnVNDdmP5uBqu8dn1fDprX8670mda8AARw6Fj4 vGYiz+KUYMtZq0qUt1Cg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4lJB-0000000GPT8-1SE3; Wed, 08 May 2024 17:42:25 +0000 Received: from mail-dm6nam04on20601.outbound.protection.outlook.com ([2a01:111:f403:2409::601] helo=NAM04-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4lJ5-0000000GPQ2-3IMk for linux-arm-kernel@lists.infradead.org; Wed, 08 May 2024 17:42:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EyyShvuPn9D6Tb2VUyVu2pHzUQsXc3V2XrtSJUQTCz563DiMyBZUXY+50GqMBu1WGAEdEAKiQXVIxaRPbaGVQhSa6Mcombar9JJvdleJya/lj8CjyXXDDsGmvwPJrzaD060SIp7QIpVQtnGSdnsGFG1YPtPmw/uzMtBP9+nvDRq8DTak9gxY5mGkP+IyUvcI4D8nKXbR7RzQG602OVG3QMpa6OSsFTl7S7AwQoSm5BZuhHXze4HM8fiAq+t62PO/J/l9yH6Czi7TkzB71blDStP82pI9PkDn3+i4hu9tpaehjdJHg5zq5hHHxY2onLb2qawlrcF3mWidMPLTeA6YJQ== 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=GKJQiOLkfEh9HpwgRAIE1i5CG4HNSgWc0XmqRclezfs=; b=FzPvy2RgFikm3HG8EXJUYwMuSINUdQFWO0CTi0jvTyn54VuizQF68D3LrF8qRaEM8sOGa8MFJXMewxGUlTp2d9ntceOHMOUzCakBUsnQVoyuByTyR1da5QbvB3RRs2IKj2xAXpmTY8zklmgcdMMTLfSvA99y47tC8RNrvmkq55NNIqEGrjQlHXgvWtEqri/mPnq/w8pFlZexzDqjnQoX/sTzu0gzTaDM7yRJMb8XvkdXRTytRMiEkDQn8aXbV2k1tQZVtFhYNlC67bz6lYQO0CNljYmIwWrk5DDYmpQ7MOkOMiZ6Es/VChBz7amCtC6x+JjQnm/fQIjbCJIqS9r1gA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=google.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GKJQiOLkfEh9HpwgRAIE1i5CG4HNSgWc0XmqRclezfs=; b=YocjhnZd78F85usa7fvEevFhUXK4NpmAiH/YbNC2JhIIxtRjna1kNDllfioJ+HrTI1qUoZbppXrBMCPVeddNor6+QK2CaiEF6bdnAfc9elMIIxEPqgaPfXMag6Zhfa1EeJIA/TYZxC1KAvbbOaNwuU3fIlxcCCtuTtRRHVI0o3CDJ51b16nmHxjZ1SLVgf+DgfEe0J0PlkMnef3xzOM8j+KVAc8yKUExZuML2tkPjEH5/+WA03ZWmPD4DpHfSKj3zd0DY3h3jLr8xsY9orsQrxZMH9z1BUgtuT6UKDGq8ZXe2Ox2s3QFyPMci1EizaLXWU2H6bhESHRQy4j5LPggjw== Received: from BYAPR04CA0005.namprd04.prod.outlook.com (2603:10b6:a03:40::18) by MW4PR12MB6681.namprd12.prod.outlook.com (2603:10b6:303:1e1::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.46; Wed, 8 May 2024 17:42:07 +0000 Received: from CO1PEPF000066E7.namprd05.prod.outlook.com (2603:10b6:a03:40:cafe::c8) by BYAPR04CA0005.outlook.office365.com (2603:10b6:a03:40::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.42 via Frontend Transport; Wed, 8 May 2024 17:42:06 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by CO1PEPF000066E7.mail.protection.outlook.com (10.167.249.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.18 via Frontend Transport; Wed, 8 May 2024 17:42:06 +0000 Received: from rnnvmail202.nvidia.com (10.129.68.7) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 8 May 2024 10:41:48 -0700 Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail202.nvidia.com (10.129.68.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 8 May 2024 10:41:47 -0700 Received: from vidyas-desktop.nvidia.com (10.127.8.9) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Wed, 8 May 2024 10:41:42 -0700 From: Vidya Sagar To: , , , , , , , CC: , , , , , , , , , , Subject: [PATCH V7 0/4] PCI: Add support for preserving boot configuration Date: Wed, 8 May 2024 23:11:34 +0530 Message-ID: <20240508174138.3630283-1-vidyas@nvidia.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-NVConfidentiality: public X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PEPF000066E7:EE_|MW4PR12MB6681:EE_ X-MS-Office365-Filtering-Correlation-Id: 30344116-f510-45de-90d2-08dc6f862e12 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|36860700004|7416005|1800799015|82310400017; X-Microsoft-Antispam-Message-Info: sbhMhLEAwLZsvlhH8UPOvpWz0gW0WYJGgdPZU6MOUolMPBe2GViHlTH39hFz5ab2+/TO6oQxBUFNUeFzotdSUBf3K4Ai6CIaX86HEEaOsb1Ae0bCGCN3JxImtizayIGaFrgjdgZ8GuDVZuCv4BtRDUzKiSMv5miCLgW7Xrmsp3fPkQRtwVgcSwa6x0XSwJw/dM9/Yc21vkCiA8mJn0u25kMtbMPqtiWJnJO6+8KWarOKi+2yibPkptbgSE7TMm2yFUYHOkHb/OjwCr20Vul3c2x15ANMZc5f//gq1hctymmppQuxdBWlV4BNht9GGDjVt+TLFuQasdnxNVLiy9ApEOuDY2XjPjT5gIhVq7THri+p3qmJD1VXWeGtc+SDMhU96zF2RQnqa59LBV1mzmIutcD2pljMvmh9a9gfBpeIBPVsYDQTGQlqUK4LCfe5nWNcxttmv7I9bRms4jjV2ADqfE50kVQXEExO+ayjk3rjsgojV7mWWCO3HDJCKX7+yq+WeRPpAiZQLwog3QHLsvdu34iEI3GHcBw9FnTrAzyHrw89Ucn3SB2ceXZcyklWNyJU8OwoeUK5oz5EmM+z+OGn9Rm8DRkfKThxmD0/sj8wmhbPXbJIen+6qP74A8PFmGmIRYG2DEY5KaW/CuMaFR7Il1d2nrQF7RCN2tuOFQMDziWSWzPFs3flJZD2lcqVtcdleDlPFWo3tRglAjvLkloq1fJ3D1uHWhFMSq6l5OWW57sJPR4pVL6+lZawLvjz8zFxWuJUBoyrQ4E29+eySZ44Te6fluoIArHIv8QK+TDee26nw0Yov/d5ccSYLAMKludKBY0WFJQOXaku9NSsSamVw3QNMI8/iEno9DSZDJXnBlLaNU8PdmgwTLehJjjw3AdZZB2DNcEGZYWHTM4ENz/B8MAmheYbX+Sx6JgkgYiglraKX7zGth9l3wVbWXFXwr4Ne+ktNKZJ8x9y0ii5cuC1o05X28vnZSevtjKhVxxQufV3ykYYUMG2cO2On6vCGGqGm8sB3DXAfGBJ1YOGX2hq/9UcmLNec3+Ym3+XnT79/967GpwN+balYE+xCbJ2+8zUXrgLbwZI6xhCzXGFYdx+C1fD5YDmO7mJuDRRiLrA2bqOTbMnaaZNgHFMHCJ/flBf+MIjfVPobG0Zbik6i8C/jNo2fFT4K0jaubRCOz5BGU6aqQyTvnc5gyHFhmcx2UV8afLOeXyL16VoCpaW46OnTlA8YKFQPy9GZno7JPIstsd8s8rgpr5xz49auRhkUukH/87W59UzNiyanGA18YzBlUn7sjGcPtLKcw6rYC1IcObfKBsDURn/EJxoH5reeocYMsaS83lFGqAENzRenhxkO6QdNfQ7xuK+GlmM2BhCe/F6ygyIaT5tyTUEWaQIKD/Z X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230031)(376005)(36860700004)(7416005)(1800799015)(82310400017);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 May 2024 17:42:06.8099 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 30344116-f510-45de-90d2-08dc6f862e12 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1PEPF000066E7.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB6681 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240508_104219_849524_74752CDB X-CRM114-Status: UNSURE ( 8.59 ) X-CRM114-Notice: Please train this message. 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 Add support for preserving the boot configuration done by the platform firmware per host bridge basis, based on the presence of 'linux,pci-probe-only' property in the respective PCI host bridge device-tree node. It also unifies the ACPI and DT based boot flows in this regard. This patch series is a complete version of the incomplete series ( https://lore.kernel.org/linux-pci/20240421190914.374399-1-helgaas@kernel.org/ ) posted by Bjorn which in turn was an attempted split work of the single V6 patch ( https://lore.kernel.org/linux-pci/20240418174043.3750240-1-vidyas@nvidia.com/ ) posted by me. Vidya Sagar (4): PCI: Move PRESERVE_BOOT_CONFIG _DSM evaluation to pci_register_host_bridge() PCI: of: Add of_pci_preserve_config() for per-host bridge support PCI: Unify ACPI and DT 'preserve config' support PCI: Use preserve_config in place of pci_flags drivers/acpi/pci_root.c | 12 ------ drivers/pci/controller/pci-host-common.c | 4 -- drivers/pci/of.c | 54 +++++++++++++++++++----- drivers/pci/pci-acpi.c | 22 ++++++++++ drivers/pci/pci.h | 12 ++++++ drivers/pci/probe.c | 34 ++++++++++----- 6 files changed, 101 insertions(+), 37 deletions(-)