soc/amd/mendocino: Do not load MP2 Firmware when in RO
Currently MP2 Firmware is not built into RO firmware section but the soft fuse bit to disable MP2 firmware loading is not set. This causes the device to boot loop during recovery mode. Set the bit to disable MP2 firmware loading in RO. BUG=b:259554520 TEST=Build and boot to OS in Skyrim under both normal and recovery modes. Change-Id: I9e4cf4f72e2d36ad3cc33629ddb501ecdbf5eda9 Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/78023 Reviewed-by: Robert Zieba <robertzieba@google.com> Reviewed-by: Tim Van Patten <timvp@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jon Murphy <jpmurphy@google.com> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Reviewed-by: Martin L Roth <gaumless@gmail.com>
This commit is contained in:
parent
c72ebeca13
commit
e728766f45
|
@ -81,6 +81,7 @@ endif
|
||||||
|
|
||||||
# Use additional Soft Fuse bits specified in Kconfig
|
# Use additional Soft Fuse bits specified in Kconfig
|
||||||
PSP_SOFTFUSE_BITS += $(call strip_quotes, $(CONFIG_PSP_SOFTFUSE_BITS))
|
PSP_SOFTFUSE_BITS += $(call strip_quotes, $(CONFIG_PSP_SOFTFUSE_BITS))
|
||||||
|
PSP_RO_SOFTFUSE_BITS=$(PSP_SOFTFUSE_BITS)
|
||||||
|
|
||||||
# type = 0x3a
|
# type = 0x3a
|
||||||
ifeq ($(CONFIG_HAVE_PSP_WHITELIST_FILE),y)
|
ifeq ($(CONFIG_HAVE_PSP_WHITELIST_FILE),y)
|
||||||
|
@ -158,6 +159,8 @@ endif # CONFIG_SEPARATE_SIGNED_PSPFW
|
||||||
set-bit=$(call int-shift-left, 1 $(call _toint,$1))
|
set-bit=$(call int-shift-left, 1 $(call _toint,$1))
|
||||||
PSP_SOFTFUSE=$(shell A=$(call int-add, \
|
PSP_SOFTFUSE=$(shell A=$(call int-add, \
|
||||||
$(foreach bit,$(PSP_SOFTFUSE_BITS),$(call set-bit,$(bit)))); printf "0x%x" $$A)
|
$(foreach bit,$(PSP_SOFTFUSE_BITS),$(call set-bit,$(bit)))); printf "0x%x" $$A)
|
||||||
|
PSP_RO_SOFTFUSE=$(shell A=$(call int-add, \
|
||||||
|
$(foreach bit,$(PSP_RO_SOFTFUSE_BITS),$(call set-bit,$(bit)))); printf "0x%x" $$A)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Build the arguments to amdfwtool (order is unimportant). Missing file names
|
# Build the arguments to amdfwtool (order is unimportant). Missing file names
|
||||||
|
@ -194,6 +197,7 @@ OPT_SIGNED_AMDFW_B_POSITION=$(call add_opt_prefix, $(SIGNED_AMDFW_B_POSITION), -
|
||||||
OPT_SIGNED_AMDFW_B_FILE=$(call add_opt_prefix, $(SIGNED_AMDFW_B_FILE), --signed-output)
|
OPT_SIGNED_AMDFW_B_FILE=$(call add_opt_prefix, $(SIGNED_AMDFW_B_FILE), --signed-output)
|
||||||
|
|
||||||
OPT_PSP_SOFTFUSE=$(call add_opt_prefix, $(PSP_SOFTFUSE), --soft-fuse)
|
OPT_PSP_SOFTFUSE=$(call add_opt_prefix, $(PSP_SOFTFUSE), --soft-fuse)
|
||||||
|
OPT_PSP_RO_SOFTFUSE=$(call add_opt_prefix, $(PSP_RO_SOFTFUSE), --soft-fuse)
|
||||||
|
|
||||||
OPT_WHITELIST_FILE=$(call add_opt_prefix, $(PSP_WHITELIST_FILE), --whitelist)
|
OPT_WHITELIST_FILE=$(call add_opt_prefix, $(PSP_WHITELIST_FILE), --whitelist)
|
||||||
OPT_SPL_TABLE_FILE=$(call add_opt_prefix, $(SPL_TABLE_FILE), --spl-table)
|
OPT_SPL_TABLE_FILE=$(call add_opt_prefix, $(SPL_TABLE_FILE), --spl-table)
|
||||||
|
@ -211,7 +215,6 @@ AMDFW_COMMON_ARGS=$(OPT_PSP_APCB_FILES) \
|
||||||
$(OPT_PSP_BIOSBIN_FILE) \
|
$(OPT_PSP_BIOSBIN_FILE) \
|
||||||
$(OPT_PSP_BIOSBIN_DEST) \
|
$(OPT_PSP_BIOSBIN_DEST) \
|
||||||
$(OPT_PSP_BIOSBIN_SIZE) \
|
$(OPT_PSP_BIOSBIN_SIZE) \
|
||||||
$(OPT_PSP_SOFTFUSE) \
|
|
||||||
--use-pspsecureos \
|
--use-pspsecureos \
|
||||||
--load-s0i3 \
|
--load-s0i3 \
|
||||||
$(OPT_TOKEN_UNLOCK) \
|
$(OPT_TOKEN_UNLOCK) \
|
||||||
|
@ -229,6 +232,9 @@ AMDFW_COMMON_ARGS=$(OPT_PSP_APCB_FILES) \
|
||||||
ifeq ($(CONFIG_VBOOT),)
|
ifeq ($(CONFIG_VBOOT),)
|
||||||
AMDFW_COMMON_ARGS += $(OPT_PSP_LOAD_MP2_FW)
|
AMDFW_COMMON_ARGS += $(OPT_PSP_LOAD_MP2_FW)
|
||||||
OPT_PSP_LOAD_MP2_FW =
|
OPT_PSP_LOAD_MP2_FW =
|
||||||
|
else
|
||||||
|
# Disable MP2 FW loading in VBOOT RO
|
||||||
|
PSP_RO_SOFTFUSE_BITS += 29
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(obj)/amdfw.rom: $(call strip_quotes, $(PSP_BIOSBIN_FILE)) \
|
$(obj)/amdfw.rom: $(call strip_quotes, $(PSP_BIOSBIN_FILE)) \
|
||||||
|
@ -249,6 +255,7 @@ $(obj)/amdfw.rom: $(call strip_quotes, $(PSP_BIOSBIN_FILE)) \
|
||||||
$(OPT_VERSTAGE_SIG_FILE) \
|
$(OPT_VERSTAGE_SIG_FILE) \
|
||||||
$(OPT_SPL_TABLE_FILE) \
|
$(OPT_SPL_TABLE_FILE) \
|
||||||
$(OPT_MANIFEST) \
|
$(OPT_MANIFEST) \
|
||||||
|
$(OPT_PSP_RO_SOFTFUSE) \
|
||||||
--location $(CONFIG_AMD_FWM_POSITION) \
|
--location $(CONFIG_AMD_FWM_POSITION) \
|
||||||
--output $@
|
--output $@
|
||||||
|
|
||||||
|
@ -275,6 +282,7 @@ $(obj)/amdfw_a.rom: $(obj)/amdfw.rom
|
||||||
$(OPT_SIGNED_AMDFW_A_POSITION) \
|
$(OPT_SIGNED_AMDFW_A_POSITION) \
|
||||||
$(OPT_SIGNED_AMDFW_A_FILE) \
|
$(OPT_SIGNED_AMDFW_A_FILE) \
|
||||||
$(OPT_PSP_LOAD_MP2_FW) \
|
$(OPT_PSP_LOAD_MP2_FW) \
|
||||||
|
$(OPT_PSP_SOFTFUSE) \
|
||||||
--location $(call _tohex,$(MENDOCINO_FW_A_POSITION)) \
|
--location $(call _tohex,$(MENDOCINO_FW_A_POSITION)) \
|
||||||
--body-location $(call _tohex,$$(($(MENDOCINO_FW_A_POSITION) + $(MENDOCINO_FW_BODY_OFFSET)))) \
|
--body-location $(call _tohex,$$(($(MENDOCINO_FW_A_POSITION) + $(MENDOCINO_FW_BODY_OFFSET)))) \
|
||||||
--anywhere \
|
--anywhere \
|
||||||
|
@ -291,6 +299,7 @@ $(obj)/amdfw_b.rom: $(obj)/amdfw.rom
|
||||||
$(OPT_SIGNED_AMDFW_B_POSITION) \
|
$(OPT_SIGNED_AMDFW_B_POSITION) \
|
||||||
$(OPT_SIGNED_AMDFW_B_FILE) \
|
$(OPT_SIGNED_AMDFW_B_FILE) \
|
||||||
$(OPT_PSP_LOAD_MP2_FW) \
|
$(OPT_PSP_LOAD_MP2_FW) \
|
||||||
|
$(OPT_PSP_SOFTFUSE) \
|
||||||
--location $(call _tohex,$(MENDOCINO_FW_B_POSITION)) \
|
--location $(call _tohex,$(MENDOCINO_FW_B_POSITION)) \
|
||||||
--body-location $(call _tohex,$$(($(MENDOCINO_FW_B_POSITION) + $(MENDOCINO_FW_BODY_OFFSET)))) \
|
--body-location $(call _tohex,$$(($(MENDOCINO_FW_B_POSITION) + $(MENDOCINO_FW_BODY_OFFSET)))) \
|
||||||
--anywhere \
|
--anywhere \
|
||||||
|
|
Loading…
Reference in New Issue