diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/device/Kconfig | 7 | ||||
-rw-r--r-- | src/device/resource_allocator_v4.c | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/device/Kconfig b/src/device/Kconfig index 83afa8cda6..374427a372 100644 --- a/src/device/Kconfig +++ b/src/device/Kconfig @@ -1005,6 +1005,13 @@ config RESOURCE_ALLOCATION_TOP_DOWN undeclared resources. EDK2 is currently reported to also have problems on some platforms, at least with Intel's IGD. +config ALWAYS_ALLOW_ABOVE_4G_ALLOCATION + bool + default n if ARCH_X86 + default y + help + Don't limit mem resources to 4G, but to their actual limit. + config XHCI_UTILS def_bool n help diff --git a/src/device/resource_allocator_v4.c b/src/device/resource_allocator_v4.c index 96d44882ed..73ec9c1dba 100644 --- a/src/device/resource_allocator_v4.c +++ b/src/device/resource_allocator_v4.c @@ -84,6 +84,9 @@ static bool dev_has_children(const struct device *dev) static resource_t effective_limit(const struct resource *const res) { + if (CONFIG(ALWAYS_ALLOW_ABOVE_4G_ALLOCATION)) + return res->limit; + /* Always allow bridge resources above 4G. */ if (res->flags & IORESOURCE_BRIDGE) return res->limit; |