From 196d8559d90ff1ac1ebf52fc23b5a6a2493b386c Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Fri, 15 May 2020 23:34:27 -0700 Subject: Revert "pciexp_device: Add option to allocate prefetch memory above 4G boundary" This reverts commit dcbf6454b6d2d9b3627a14126ef20ed4b9c7d954. Reason for revert: Resource allocator patches need to be reverted until the AMD chipsets can be fixed to handle the resource allocation flow correctly. Change-Id: I58c9fff1a18ea1c9941e29c2c6e60e338c517c30 Signed-off-by: Furquan Shaikh Reviewed-on: https://review.coreboot.org/c/coreboot/+/41465 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons Reviewed-by: Mike Banon --- src/device/Kconfig | 15 --------------- src/device/pciexp_device.c | 10 +++------- 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/src/device/Kconfig b/src/device/Kconfig index 2976a61a8f..6096a38b6f 100644 --- a/src/device/Kconfig +++ b/src/device/Kconfig @@ -585,21 +585,6 @@ config PCIEXP_HOTPLUG_PREFETCH_MEM child devices. This size should be page-aligned. The default is 256 MiB. -config PCIEXP_HOTPLUG_PREFETCH_MEM_ABOVE_4G - bool - default y if !PCIEXP_HOTPLUG_PREFETCH_MEM_BELOW_4G - default n - help - This enables prefetch memory allocation above 4G boundary for the - hotplug resources. - -config PCIEXP_HOTPLUG_PREFETCH_MEM_BELOW_4G - bool "PCI Express Hotplug Prefetch Memory Allocation below 4G boundary" - default n - help - This enables prefetch memory allocation below 4G boundary for the - hotplug resources. - config PCIEXP_HOTPLUG_IO hex "PCI Express Hotplug I/O Space" default 0x2000 diff --git a/src/device/pciexp_device.c b/src/device/pciexp_device.c index f04d865152..1189207539 100644 --- a/src/device/pciexp_device.c +++ b/src/device/pciexp_device.c @@ -512,7 +512,7 @@ static void pciexp_hotplug_dummy_read_resources(struct device *dev) { struct resource *resource; - /* Add extra memory space */ + // Add extra memory space resource = new_resource(dev, 0x10); resource->size = CONFIG_PCIEXP_HOTPLUG_MEM; resource->align = 12; @@ -520,7 +520,7 @@ static void pciexp_hotplug_dummy_read_resources(struct device *dev) resource->limit = 0xffffffff; resource->flags |= IORESOURCE_MEM; - /* Add extra prefetchable memory space */ + // Add extra prefetchable memory space resource = new_resource(dev, 0x14); resource->size = CONFIG_PCIEXP_HOTPLUG_PREFETCH_MEM; resource->align = 12; @@ -528,11 +528,7 @@ static void pciexp_hotplug_dummy_read_resources(struct device *dev) resource->limit = 0xffffffffffffffff; resource->flags |= IORESOURCE_MEM | IORESOURCE_PREFETCH; - /* Set resource flag requesting allocation above 4G boundary. */ - if (CONFIG(PCIEXP_HOTPLUG_PREFETCH_MEM_ABOVE_4G)) - resource->flags |= IORESOURCE_ABOVE_4G; - - /* Add extra I/O space */ + // Add extra I/O space resource = new_resource(dev, 0x18); resource->size = CONFIG_PCIEXP_HOTPLUG_IO; resource->align = 12; -- cgit v1.2.3