diff options
| author | Stefan Eichenberger <[email protected]> | 2025-03-14 11:06:49 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-03-02 08:21:47 -0600 |
| commit | 8d24789abed0822fbe41a2f9d72cf19650159dc6 (patch) | |
| tree | d2ba0c0be2950312bbcc02aea2974de598927285 /include | |
| parent | e6e7b2427a78caef292065206da9f1a00a7c9139 (diff) | |
common/memsize.c: Fix get_ram_size() original data restore
The get_ram_size() function fails to restore the original RAM data when
the data cache is enabled. This issue was observed on an AM625 R5 SPL
with 512MB of RAM and is a regression that became visible with
commit bc07851897bd ("board: ti: Pull redundant DDR functions to a common
location and Fixup DDR size when ECC is enabled").
Observed boot failure messages:
Warning: Did not detect image signing certificate. Skipping authentication to prevent boot failure. This will fail on Security Enforcing(HS-SE) devices
Authentication passed
Starting ATF on ARM64 core...
The system then hangs. This indicates that without a data cache flush,
data in the cache is not coherent with RAM, preventing the system from
booting. This was verified by printing the content of this address when
the issue occurs.
Add a data cache flush after each restore operation to resolve this
issue.
Fixes: bc07851897bd ("board: ti: Pull redundant DDR functions to a common location and Fixup DDR size when ECC is enabled")
Fixes: 1c64b98c1ec4 ("common/memsize.c: Fix get_ram_size() when cache is enabled")
Signed-off-by: Stefan Eichenberger <[email protected]>
Reviewed-by: Emanuele Ghidoli <[email protected]>
Tested-by: Francesco Dolcini <[email protected]> # Toradex Verdin AM62
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
