From 9e69c87317794219d7238eb87edc5e23e03803b4 Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Sat, 2 Jun 2018 15:35:27 +0300 Subject: intel/e7505: Fix domain resources MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed resources have to be registered early during read_resources() phase, such that device allocator will avoid them. Change-Id: I3c120cfb96c185f0052b9b3cdd93eeed0f712491 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/26770 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- src/northbridge/intel/e7505/northbridge.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/northbridge/intel') diff --git a/src/northbridge/intel/e7505/northbridge.c b/src/northbridge/intel/e7505/northbridge.c index 38c7d4640b..ea8b4598f4 100644 --- a/src/northbridge/intel/e7505/northbridge.c +++ b/src/northbridge/intel/e7505/northbridge.c @@ -29,11 +29,13 @@ unsigned long acpi_fill_mcfg(unsigned long current) return current; } -static void pci_domain_set_resources(struct device *dev) +static void mch_domain_read_resources(struct device *dev) { struct device *mc_dev; uint32_t pci_tolm; + pci_domain_read_resources(dev); + pci_tolm = find_pci_tolm(dev->link_list); mc_dev = dev->link_list->children; if (mc_dev) { @@ -107,6 +109,10 @@ static void pci_domain_set_resources(struct device *dev) set_late_cbmem_top(tolmk * 1024); } +} + +static void mch_domain_set_resources(struct device *dev) +{ assign_resources(dev->link_list); } @@ -122,8 +128,8 @@ static struct pci_operations intel_pci_ops = { }; static struct device_operations pci_domain_ops = { - .read_resources = pci_domain_read_resources, - .set_resources = pci_domain_set_resources, + .read_resources = mch_domain_read_resources, + .set_resources = mch_domain_set_resources, .enable_resources = NULL, .init = NULL, .scan_bus = pci_domain_scan_bus, -- cgit v1.2.3