From: Tom Rini Date: Thu, 22 Jun 2023 13:59:43 +0000 (-0400) Subject: Merge branch '2023-06-21-fix-get_ram_size-with-cache-enabled' into next X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=eef4a771e85fc30a18719316a23d0ad1476ae1a5;p=u-boot.git Merge branch '2023-06-21-fix-get_ram_size-with-cache-enabled' into next To quote the author: Ensure that every write is flushed to memory and afterward reads are from memory. Since the algorithm rely on the fact that accessing to not existent memory lead to write at addr / 2 without this modification accesses to aliased (not physically present) addresses are cached and wrong size is returned. This was discovered while working on a TI AM625 based board where cache is normally enabled, see commit c02712a74849 ("arm: mach-k3: Enable dcache in SPL"). --- eef4a771e85fc30a18719316a23d0ad1476ae1a5