]> git.baikalelectronics.ru Git - uboot.git/commit
arm64: Initialize TLB memory if CMO_BY_VA_ONLY
authorPierre-Clément Tosi <ptosi@google.com>
Wed, 8 Feb 2023 20:54:28 +0000 (04:54 +0800)
committerTom Rini <trini@konsulko.com>
Mon, 6 Mar 2023 22:03:55 +0000 (17:03 -0500)
commit95b19f84e4c2c937c91b7d67a85e1b9248fce564
tree4860e2c2777b0d4605427f9905ce374bfffbe30c
parenta8a00fc8cca661c224e8235bb5c7d186cd413225
arm64: Initialize TLB memory if CMO_BY_VA_ONLY

Memory used to hold the page tables is allocated from the top of RAM
with no prior initialization and could therefore hold invalid data. As
invalidate_dcache_all() will be called before the MMU has been
initialized and as that function relies indirectly on the page tables
when using CMO_BY_VA_ONLY, these must be in a valid state from their
allocation.

Signed-off-by: Pierre-Clément Tosi <ptosi@google.com>
[ Paul: pick from the Android tree. Fix checkpatch warnings, and rebased
  to the upstream. ]
Signed-off-by: Ying-Chun Liu (PaulLiu) <paul.liu@linaro.org>
Cc: Tom Rini <trini@konsulko.com>
Link: https://android.googlesource.com/platform/external/u-boot/+/e3ceef4230b772186c6853cace4a676a407e6ab7
arch/arm/lib/cache.c