From 871baf2230dc1e0ed2becfd8526e00d5367618b3 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Thu, 12 Mar 2020 17:51:24 -0700 Subject: pci_device: Extend PCI domain limit to 64-bit This change updates the resource limit for PCI domain to allow resource allocation above 4G boundary. The resource limit is set to the highest physical address for the CPU. BUG=b:149186922 Signed-off-by: Furquan Shaikh Change-Id: Idfcc9a390d309886ee2b7880b29502c740e6578e Reviewed-on: https://review.coreboot.org/c/coreboot/+/39488 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) --- src/device/pci_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/device/pci_device.c b/src/device/pci_device.c index 9036f53f3b..2c08ebc72e 100644 --- a/src/device/pci_device.c +++ b/src/device/pci_device.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -433,7 +434,7 @@ void pci_domain_read_resources(struct device *dev) /* Initialize the system-wide memory resources constraints. */ res = new_resource(dev, IOINDEX_SUBTRACTIVE(1, 0)); - res->limit = 0xffffffffULL; + res->limit = (1ULL << cpu_phys_address_size()) - 1; res->flags = IORESOURCE_MEM | IORESOURCE_SUBTRACTIVE | IORESOURCE_ASSIGNED; } -- cgit v1.2.3