arm: enable allocate-on-read for LPAE's DCACHE_WRITEBACK/_WRITETHROUGH
authorArd Biesheuvel <ardb@kernel.org>
Tue, 7 Jul 2020 10:07:07 +0000 (12:07 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 29 Jul 2020 12:43:40 +0000 (08:43 -0400)
commit6744ace5b3831939e1f4f487946a6f823df00e1d
treee2d776457cfa05f83f9ae6bf116db02dad14361d
parent0c7eb6e525decee1b9ce9096888338896ffbb460
arm: enable allocate-on-read for LPAE's DCACHE_WRITEBACK/_WRITETHROUGH

The LPAE versions of DCACHE_WRITEBACK and DCACHE_WRITETHROUGH are currently
defined as no-allocate for both reads and writes, which deviates from the
non-LPAE definition, and mostly defeats the purpose of enabling the caches
in the first place.

So align LPAE with !LPAE, and enable allocate-on-read for both. And while
at it, add some clarification about the meaning of the chosen values.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/include/asm/system.h