mb/google/zork: Add Kconfig to set IGD UMA allocation via APCB
Add a Kconfig choice to select the IGD UMA allocation, which selects a precompiled ACPB binary with the corresponding UMA value set. Default to the previous value (128MB) for non-ChromeOS builds, and 64MB for ChromeOS as that is the value used there. TEST=build/boot google/morphius, verify UMA size changes with selection via dxdiag tool under Windows. Change-Id: I6debd10527c33ce37ef3ada20955c8f7b7500039 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84237 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
8edbd872c8
commit
2c16092a21
6 changed files with 31 additions and 1 deletions
|
|
@ -301,4 +301,25 @@ config CHROMEOS_WIFI_SAR
|
|||
select SAR_ENABLE
|
||||
select USE_SAR
|
||||
|
||||
choice
|
||||
prompt "UMA Memory Allocation"
|
||||
default ZORK_UMA_SIZE_64MB if CHROMEOS
|
||||
default ZORK_UMA_SIZE_128MB
|
||||
help
|
||||
The amount of system memory allocated for the integrated GPU.
|
||||
|
||||
config ZORK_UMA_SIZE_64MB
|
||||
bool "64MB"
|
||||
|
||||
config ZORK_UMA_SIZE_128MB
|
||||
bool "128MB"
|
||||
|
||||
config ZORK_UMA_SIZE_256MB
|
||||
bool "256MB"
|
||||
|
||||
config ZORK_UMA_SIZE_512MB
|
||||
bool "512MB"
|
||||
|
||||
endchoice
|
||||
|
||||
endif # BOARD_GOOGLE_BASEBOARD_TREMBYLE || BOARD_GOOGLE_BASEBOARD_DALBOZ
|
||||
|
|
|
|||
|
|
@ -5,7 +5,16 @@ SPD_SOURCES_DIR=$(dir $(word 1, $(SPD_SOURCES)))
|
|||
APCB_SOURCES=$(foreach f, $(basename $(notdir $(SPD_SOURCES))), $(obj)/APCB_$(f).gen)
|
||||
|
||||
# APCB binary with magic numbers to be replaced by apcb_edit tool
|
||||
APCB_NAME=data.apcb
|
||||
ifeq ($(CONFIG_ZORK_UMA_SIZE_64MB),y)
|
||||
APCB_NAME=uma_64.apcb
|
||||
else ifeq ($(CONFIG_ZORK_UMA_SIZE_128MB),y)
|
||||
APCB_NAME=uma_128.apcb
|
||||
else ifeq ($(CONFIG_ZORK_UMA_SIZE_256MB),y)
|
||||
APCB_NAME=uma_256.apcb
|
||||
else ifeq ($(CONFIG_ZORK_UMA_SIZE_512MB),y)
|
||||
APCB_NAME=uma_512.apcb
|
||||
endif
|
||||
|
||||
APCB_PATH=$(src)/mainboard/$(MAINBOARDDIR)
|
||||
|
||||
$(obj)/APCB_%.gen: $(SPD_SOURCES_DIR)%.hex \
|
||||
|
|
|
|||
Binary file not shown.
BIN
src/mainboard/google/zork/uma_256.apcb
Normal file
BIN
src/mainboard/google/zork/uma_256.apcb
Normal file
Binary file not shown.
BIN
src/mainboard/google/zork/uma_512.apcb
Normal file
BIN
src/mainboard/google/zork/uma_512.apcb
Normal file
Binary file not shown.
BIN
src/mainboard/google/zork/uma_64.apcb
Normal file
BIN
src/mainboard/google/zork/uma_64.apcb
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue