opensbi/firmware
Anup Patel 7a13beb213 firmware: Add preferred boot HART field in struct fw_dynamic_info
It has been reported that link address range of previous booting stage
(such as U-Boot SPL) can overlap the link address rage of FW_DYNAMIC.

This means self-relocation in FW_DYNAMIC can potentially corrupt
previous booting stage if any of the secondary HART enter FW_DYNAMIC
before primary HART.

To tackle this, we add preferred boot HART field (i.e boot_hart) in
struct fw_dyanmic_info. We use this field to force secondary HARTs
into relocation wait loop till preferred/primary boot HART enters
FW_DYNAMIC completes self-relocation. If preferred boot HART is not
available then we fall back to relocation lottery approach.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
2019-11-15 17:41:18 +05:30
..
payloads lib: Rename existing SBI implementation as 0.1. 2019-10-03 08:53:52 +05:30
external_deps.mk TOP: Allow building platform out-of-tree 2019-04-09 09:14:09 +05:30
fw_base.S firmware: Add preferred boot HART field in struct fw_dynamic_info 2019-11-15 17:41:18 +05:30
fw_base.ldS firmware: add missing linker sections to fw_base.ldS 2019-06-12 17:43:47 +05:30
fw_dynamic.S firmware: Add preferred boot HART field in struct fw_dynamic_info 2019-11-15 17:41:18 +05:30
fw_dynamic.elf.ldS firmware: Relocate when load address is not equal to link address 2019-06-12 17:56:28 +05:30
fw_jump.S firmware: Add preferred boot HART field in struct fw_dynamic_info 2019-11-15 17:41:18 +05:30
fw_jump.elf.ldS firmware: Relocate when load address is not equal to link address 2019-06-12 17:56:28 +05:30
fw_payload.S firmware: Add preferred boot HART field in struct fw_dynamic_info 2019-11-15 17:41:18 +05:30
fw_payload.elf.ldS firmware: Relocate when load address is not equal to link address 2019-06-12 17:56:28 +05:30
objects.mk firmware: Add fw_dynamic firmware 2019-05-10 12:26:22 +05:30