soc/amd/picasso: Move DRAM end to after transfer buffer
Move PSP_SHAREDMEM_DRAM_END after _etransfer_buffer to ensure that the transfer buffer actually lives within the 32KiB that is supported to be transferred. Resulting symbol address change in bootblock.debug file summarized below. BEFORE: 02011000 T _psp_sharedmem_dram 02011000 T _transfer_buffer 02011000 T _transfer_info 02011040 T _etransfer_info 02011040 T _vboot2_work 02014040 T _evboot2_work 02019000 T _epsp_sharedmem_dram 02019000 T _preram_cbmem_console 0201a600 T _epreram_cbmem_console 0201a600 T _timestamp 0201a800 T _etimestamp 0201a800 T _fmap_cache 0201ac52 T _efmap_cache 0201ac52 T _etransfer_buffer AFTER: 02011000 T _psp_sharedmem_dram 02011000 T _transfer_buffer 02011000 T _transfer_info 02011040 T _etransfer_info 02011040 T _vboot2_work 02014040 T _evboot2_work 02014040 T _preram_cbmem_console 02015640 T _epreram_cbmem_console 02015640 T _timestamp 02015840 T _etimestamp 02015840 T _fmap_cache 02015c92 T _efmap_cache 02015c92 T _etransfer_buffer 02019000 T _epsp_sharedmem_dram BUG=b:167243965 BRANCH=None TEST=checked 'cbmem -1' for FMAP error after ec reboot Signed-off-by: Josie Nordrum <josienordrum@google.com> Change-Id: I9b482aced5deb40bd87d19d9c42585d8a6db5fc0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/45045 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
36839296d7
commit
5ae96aa171
|
@ -39,14 +39,14 @@
|
||||||
* | Unused hole |
|
* | Unused hole |
|
||||||
* +--------------------------------+
|
* +--------------------------------+
|
||||||
* | FMAP cache (FMAP_SIZE) |
|
* | FMAP cache (FMAP_SIZE) |
|
||||||
* +--------------------------------+ PSP_SHAREDMEM_BASE + 0x40 + PSP_SHAREDMEM_SIZE + PRERAM_CBMEM_CONSOLE_SIZE + 0x200
|
* +--------------------------------+ PSP_SHAREDMEM_BASE + 0x40 + VB2_FIRMWARE_WORKBUF_RECOMMENDED_SIZE + PRERAM_CBMEM_CONSOLE_SIZE + 0x200
|
||||||
* | Early Timestamp region (512B) |
|
* | Early Timestamp region (512B) |
|
||||||
* +--------------------------------+ PSP_SHAREDMEM_BASE + 0x40 + PSP_SHAREDMEM_SIZE + PRERAM_CBMEM_CONSOLE_SIZE
|
* +--------------------------------+ PSP_SHAREDMEM_BASE + 0x40 + VB2_FIRMWARE_WORKBUF_RECOMMENDED_SIZE + PRERAM_CBMEM_CONSOLE_SIZE
|
||||||
* | Preram CBMEM console |
|
* | Preram CBMEM console |
|
||||||
* | (PRERAM_CBMEM_CONSOLE_SIZE) |
|
* | (PRERAM_CBMEM_CONSOLE_SIZE) |
|
||||||
* +--------------------------------+ PSP_SHAREDMEM_BASE + 0x40 + PSP_SHAREDMEM_SIZE
|
* +--------------------------------+ PSP_SHAREDMEM_BASE + 0x40 + VB2_FIRMWARE_WORKBUF_RECOMMENDED_SIZE
|
||||||
* | PSP shared (vboot workbuf) |
|
* | PSP shared (vboot workbuf) |
|
||||||
* | (PSP_SHAREDMEM_SIZE) |
|
* |(VB2_FIRMWARE_WORKBUF_RECOMMENDED_SIZE) |
|
||||||
* +--------------------------------+ PSP_SHAREDMEM_BASE + 0x40
|
* +--------------------------------+ PSP_SHAREDMEM_BASE + 0x40
|
||||||
* | Transfer Info Structure |
|
* | Transfer Info Structure |
|
||||||
* +--------------------------------+ PSP_SHAREDMEM_BASE
|
* +--------------------------------+ PSP_SHAREDMEM_BASE
|
||||||
|
@ -78,7 +78,6 @@ SECTIONS
|
||||||
_transfer_buffer = .;
|
_transfer_buffer = .;
|
||||||
REGION(transfer_info, ., TRANSFER_INFO_SIZE, 4)
|
REGION(transfer_info, ., TRANSFER_INFO_SIZE, 4)
|
||||||
VBOOT2_WORK(., VB2_FIRMWARE_WORKBUF_RECOMMENDED_SIZE)
|
VBOOT2_WORK(., VB2_FIRMWARE_WORKBUF_RECOMMENDED_SIZE)
|
||||||
PSP_SHAREDMEM_DRAM_END(CONFIG_PSP_SHAREDMEM_BASE + CONFIG_PSP_SHAREDMEM_SIZE)
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
PRERAM_CBMEM_CONSOLE(., CONFIG_PRERAM_CBMEM_CONSOLE_SIZE)
|
PRERAM_CBMEM_CONSOLE(., CONFIG_PRERAM_CBMEM_CONSOLE_SIZE)
|
||||||
|
@ -86,6 +85,7 @@ SECTIONS
|
||||||
FMAP_CACHE(., FMAP_SIZE)
|
FMAP_CACHE(., FMAP_SIZE)
|
||||||
#if CONFIG(VBOOT)
|
#if CONFIG(VBOOT)
|
||||||
_etransfer_buffer = .;
|
_etransfer_buffer = .;
|
||||||
|
PSP_SHAREDMEM_DRAM_END(CONFIG_PSP_SHAREDMEM_BASE + CONFIG_PSP_SHAREDMEM_SIZE)
|
||||||
#endif
|
#endif
|
||||||
_ = ASSERT((CONFIG_BOOTBLOCK_ADDR + CONFIG_C_ENV_BOOTBLOCK_SIZE - 0x10) == CONFIG_X86_RESET_VECTOR, "Reset vector should be -0x10 from end of bootblock");
|
_ = ASSERT((CONFIG_BOOTBLOCK_ADDR + CONFIG_C_ENV_BOOTBLOCK_SIZE - 0x10) == CONFIG_X86_RESET_VECTOR, "Reset vector should be -0x10 from end of bootblock");
|
||||||
_ = ASSERT(CONFIG_BOOTBLOCK_ADDR == ((CONFIG_BOOTBLOCK_ADDR + 0xFFFF) & 0xFFFF0000), "Bootblock must be 16 bit aligned");
|
_ = ASSERT(CONFIG_BOOTBLOCK_ADDR == ((CONFIG_BOOTBLOCK_ADDR + 0xFFFF) & 0xFFFF0000), "Bootblock must be 16 bit aligned");
|
||||||
|
|
Loading…
Reference in New Issue