Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp1851938lqt; Sun, 21 Apr 2024 12:09:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV3QZyPWD5QrqAE/6czhe9lU1U59qjNLKR9380rIyrBR10nWWo2+VWsEx/kZ1WlygpwkyGt4Vz3HjPaqZeLw+PmwYaZic4phUbDlJqiNQ== X-Google-Smtp-Source: AGHT+IFAE088UYzuNn8PLb5pgwjxlGInhIh+r94hif2esSD7ickP2wnWO0/QbGKWOc08Heh13uCE X-Received: by 2002:a05:6a00:1144:b0:6ec:d3a6:801 with SMTP id b4-20020a056a00114400b006ecd3a60801mr9771368pfm.11.1713726592850; Sun, 21 Apr 2024 12:09:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713726592; cv=pass; d=google.com; s=arc-20160816; b=K1kPJYF2u1RNJTIXxbwA+exVa1oLCaUPdhJ/cuUzobYC1MOTtc8V+4D+F9MGzJk+pc zG011fGI3K1XVDfQHMnGbaWsBPnrrFR+axCqfCsDkeqghg8ZJU8YuWPpMU81g8iYYzh3 XSaBk3RL7l0cd5PcR1/ouplQxAZ1p+7v80mUloKg5LV1h/7haAxI9SEcfjethRi39Fvq PYcjx5qu/juaW0hvj0F+afItz9J6PhpUT3IeHXC8oW2UT4tdBfTukGl4mCSISXjOYWG8 XlE0UEkCiUPDKhSMI4TqeDh/FE4T9v/Zy+1EXmtQoyLE0+T9VgyCWbKOVXtnzaicK9I0 C/DA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=yXfRC9T5O+4RELG05scT7bolbe06Nys6BAqqZhIODFE=; fh=SjyyLJaug74WeH+YBfITVzrTrUuKP2sS83jRs9MsakU=; b=Veh/UMjZt1+LI3TfTP1W1AaczQTJuub7uK9uAfmy98T4wRT3yZI2Bs4GBdPGk5OHHK G7izFTIP9zHC85/Ir1y8gckPBBCEDMxtGms3nG33J9R+shLkslKljVOMwYBiW+7ZTjzP /UuqEkuvTd9eX0Zw1fjJ4EWxrxWOQygFj3wPJGWlid1FgVGKKtatR0gPlIaO2O3dHHrg I7ltToHYq7q1TaZUm0zXCh9tBTCdn44JEdWT6awxk2zNV27+mG8FYTk/QjtITOEZ8DCQ WwiASbQPVDPBbt7gzgGZXR+tO6IhkQXXbYsqai3bNYRKwo+QytOgClAR+k3MXERlOQME iQ+Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pA5ujGR6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-152589-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152589-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id x3-20020a056a00270300b006ed0f493b93si6583316pfv.94.2024.04.21.12.09.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Apr 2024 12:09:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152589-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pA5ujGR6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-152589-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152589-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 33DE1B20D67 for ; Sun, 21 Apr 2024 19:09:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D23603FE2D; Sun, 21 Apr 2024 19:09:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pA5ujGR6" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E3F4C3EA73; Sun, 21 Apr 2024 19:09:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713726568; cv=none; b=FYqQwsGw2gz6ualTPP/2oxm9JZy3XWJH9J6XmVTkW3Ho5r38aIGGADw11juh10qLJPO7FnIuzdA/QD/5iGRzz1qtgFkIt8hvKphfyad4HXBbWCjqUFY0OhkpZQGKx8nP1i5RqvW01gpOPIo+rhaN6Ri/FHxKKf24dyXUtLP8yhE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713726568; c=relaxed/simple; bh=Cg1eXO0eZNRYPj2a7qijOthKjtEPw18jmjNdvJvLi/c=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=VhA/5mSOm8JXlLw1sBnp6rtQuvTwOAa+Qc3dTv84NfDvD/fZOtMpx/Ca1mY7KPKCP3UndpuxnUbM55I1IzXXuoGmF0/G7iPL9IQplPdGE5TRvFt+HRgevRE1ZIImE31+lqqOnZefgv62JnXjkdXRZZ0l9syB/tVGrZjqK6+5bcM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pA5ujGR6; arc=none smtp.client-ip=10.30.226.201 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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