From mboxrd@z Thu Jan 1 00:00:00 1970 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 35241C4345F for ; Sun, 21 Apr 2024 19:11:10 +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:References:In-Reply-To: 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: List-Owner; bh=sIudV0TOgWbbMnBADacZP4D+8SaO/s4Goohse3j/z2c=; b=0qA1v7ZUqrGPOU eljWFDV0DsKWMCn3g8Ugm06bkAoLJZEHwvcDKNKqRBJuBHXpibrcSHyFStGEQXs9vdAnAZBrWhpjz EsvMx/FMCn7+FL0I8RjXKNjJEEvcPyUDr68s8uW+JoUQ737kJy+Lc/bOJvkRpd8RkI0TcqpRNCUZV E0yWzH9hmqVON9VMyjfu0Z/XnnoV05jDQRgiUGIFwstcqcE1Lqh5DHQXmj9hShyzAUGtLZ9idWBSg 6EZrCtpUwlFrpiALHZsZb+vI0j00LvfScCg7EMyixLMXMoDZnFRONXJIJcOP9LlzMkLQKs0YUj4vk gQXbDaL5zfzKFz+jkYBQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rycaa-0000000B92s-26Az; Sun, 21 Apr 2024 19:11:00 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rycZG-0000000B8Wq-4ANn for linux-arm-kernel@lists.infradead.org; Sun, 21 Apr 2024 19:09:41 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 0A643CE01BD; Sun, 21 Apr 2024 19:09:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10610C113CE; Sun, 21 Apr 2024 19:09:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713726567; bh=Cg1eXO0eZNRYPj2a7qijOthKjtEPw18jmjNdvJvLi/c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pA5ujGR6O+RicashdOKTnXSJ6tMhHjCXt/2zQb8itsO7yEOogMV/1iF9dGN1YLc1D EiBkI9Eak40xo6wntraDzxAkSYiczGW5Vs36B9zyptvmdXzMPg2bqzuFtLq3bMQd/v GVhdhuc/WcG6q7JJ/9DQrtGcaHxPviHGE0QdDUH4r5jd+RjBS87pfpagNBzOihFqt2 qV3T9uCOZLURZI/pBgcRnfiKxOh089ZAJ20XwMqR0mSds0Da4fCJMNUpnM/26K8rQU tZz2V5H5QORxJxfc+awPheGq9ISTd+2rUiNEkojfhbcqp8ZCy0+/JiGxrZ12+vZFE1 11q//awSIjvaw== From: Bjorn Helgaas To: Vidya Sagar Cc: "Rafael J . Wysocki" , Len Brown , Will Deacon , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Rob Herring , Frank Rowand , Thierry Reding , Jonathan Hunter , Krishna Thota , Manikanta Maddireddy , Vidya Sagar , linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Bjorn Helgaas Subject: [PATCH v7-incomplete 0/3] PCI: Add support for preserving boot configuration Date: Sun, 21 Apr 2024 14:09:11 -0500 Message-Id: <20240421190914.374399-1-helgaas@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240418174043.3750240-1-vidyas@nvidia.com> References: <20240418174043.3750240-1-vidyas@nvidia.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240421_120939_438502_DE9D58E4 X-CRM114-Status: GOOD ( 10.60 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Bjorn Helgaas This is Vidya's work; I started splitting it into separate patches. This is based on v6 (https://lore.kernel.org/r/20240418174043.3750240-1-vidyas@nvidia.com) but is missing a few pieces, so it's not complete yet. I just wanted to show the idea of what I had in mind. The missing pieces are: - Set PCI_REASSIGN_ALL_BUS if !PCI_PROBE_ONLY - Use bridge->preserve_config instead of PCI_PROBE_ONLY - Change to use pci_assign_unassigned_root_bus_resources() instead of pci_bus_size_bridge() and pci_bus_assign_resources() Bjorn Helgaas (3): 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 drivers/acpi/pci_root.c | 12 --------- drivers/pci/of.c | 60 ++++++++++++++++++++++++++++++++--------- drivers/pci/pci-acpi.c | 22 +++++++++++++++ drivers/pci/pci.h | 12 +++++++++ drivers/pci/probe.c | 14 ++++++++++ 5 files changed, 95 insertions(+), 25 deletions(-) -- 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel