Commit 80871318 authored by Catalin Marinas's avatar Catalin Marinas

Always set write-allocate caches on ARMv6 SMP

Otherwise, the caches can become uncoherent between cores.
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 3fe656e0
......@@ -259,6 +259,13 @@ static void __init build_mem_type_table(void)
ecc_mask = 0;
}
#ifdef CONFIG_SMP
/* To ensure the cache coherency between multiple ARMv6 cores,
* the cache policy has to be write-allocate */
if (cpu_arch == CPU_ARCH_ARMv6 && cachepolicy >= CPOLICY_WRITEBACK)
cachepolicy = CPOLICY_WRITEALLOC;
#endif
/*
* Xscale must not have PMD bit 4 set for section mappings.
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment