Skip to content

Commit

Permalink
device/resource_allocator_v3: Drop code
Browse files Browse the repository at this point in the history
No platform uses this anymore.

Change-Id: Ifccb59ae45daa8fec41a9a2d46c628ff24a0c998
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69140
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
  • Loading branch information
ArthurHeymans committed Nov 7, 2022
1 parent f4c11dc commit 36695f2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 564 deletions.
20 changes: 0 additions & 20 deletions src/device/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,6 @@ config PCIEXP_HOTPLUG_PREFETCH_MEM

config PCIEXP_HOTPLUG_PREFETCH_MEM_ABOVE_4G
bool
depends on RESOURCE_ALLOCATOR_V4
default y if !PCIEXP_HOTPLUG_PREFETCH_MEM_BELOW_4G
default n
help
Expand Down Expand Up @@ -922,28 +921,9 @@ config I2C_TRANSFER_TIMEOUT_US
maximum time a device could stretch clock bits before the transfer
is aborted and an error returned.

config RESOURCE_ALLOCATOR_V3
bool
default n
help
This config option enables resource allocator v3 which performs
top down allocation of resources in a single MMIO window. This is the
old resource allocator meant to be used only until the broken AMD
chipsets are fixed. DO NOT USE THIS FOR ANY NEW CHIPSETS!

config RESOURCE_ALLOCATOR_V4
bool
default n if RESOURCE_ALLOCATOR_V3
default y if !RESOURCE_ALLOCATOR_V3
help
This config option enables resource allocator v4 which uses multiple
ranges for allocating resources. This allows allocation of resources
above 4G boundary as well.

config RESOURCE_ALLOCATION_TOP_DOWN
bool "Allocate resources from top down"
default n
depends on RESOURCE_ALLOCATOR_V4
help
Should be the default, but many platforms don't report resources
correctly. Hence, the allocator might cause conflicts.
Expand Down
3 changes: 1 addition & 2 deletions src/device/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ romstage-y += mmio.c
ramstage-y += mmio.c

ramstage-y += resource_allocator_common.c
ramstage-$(CONFIG_RESOURCE_ALLOCATOR_V3) += resource_allocator_v3.c
ramstage-$(CONFIG_RESOURCE_ALLOCATOR_V4) += resource_allocator_v4.c
ramstage-y += resource_allocator_v4.c

ramstage-$(CONFIG_XHCI_UTILS) += xhci.c

Expand Down

0 comments on commit 36695f2

Please sign in to comment.