From 80b5fe69f6d9897173d0fa7c0284be678d775821 Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Sat, 21 Oct 2023 20:24:22 -0500 Subject: soc/intel/common/pcie: Disable removed RPs when updating devicetree If a root port is not present but was enabled in the devicetree, mark it disabled so that no ACPI references will be generated by any function which walks the devicetree (eg, LPI constraints). TEST=tested with rest of patch train Change-Id: I52e23fb1c0148a599ed736fc294e593ebbd27860 Signed-off-by: Matt DeVillier Reviewed-on: https://review.coreboot.org/c/coreboot/+/78517 Reviewed-by: Felix Singer Reviewed-by: Paul Menzel Reviewed-by: Subrata Banik Tested-by: build bot (Jenkins) --- src/soc/intel/common/block/pcie/pcie_rp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/soc') diff --git a/src/soc/intel/common/block/pcie/pcie_rp.c b/src/soc/intel/common/block/pcie/pcie_rp.c index 145159f6eb..650da1ff91 100644 --- a/src/soc/intel/common/block/pcie/pcie_rp.c +++ b/src/soc/intel/common/block/pcie/pcie_rp.c @@ -115,8 +115,9 @@ static bool pcie_rp_update_dev( if (new_fn < 0) { if (dev->enabled) { printk(BIOS_NOTICE, "%s: Couldn't find PCIe Root Port #%u " - "(originally %s) which was enabled in devicetree, removing.\n", + "(originally %s) which was enabled in devicetree, removing and disabling.\n", __func__, rp_idx + 1, dev_path(dev)); + dev->enabled = 0; } return true; } else if (PCI_FUNC(dev->path.pci.devfn) != new_fn) { -- cgit v1.2.3