Commit 3f973e22 authored by Nicolas Pitre's avatar Nicolas Pitre

[ARM] ignore high memory with VIPT aliasing caches

VIPT aliasing caches have issues of their own which are not yet handled.
Usage of discard_old_kernel_data() in copypage-v6.c is not highmem ready,
kmap/fixmap stuff doesn't take account of cache colouring, etc.
If/when those issues are handled then this could be reverted.
Signed-off-by: default avatarNicolas Pitre <nico@marvell.com>
parent 3902a15e
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <asm/cputype.h> #include <asm/cputype.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
#include <asm/sections.h> #include <asm/sections.h>
#include <asm/cachetype.h>
#include <asm/setup.h> #include <asm/setup.h>
#include <asm/sizes.h> #include <asm/sizes.h>
#include <asm/tlb.h> #include <asm/tlb.h>
...@@ -678,6 +679,10 @@ static void __init sanity_check_meminfo(void) ...@@ -678,6 +679,10 @@ static void __init sanity_check_meminfo(void)
if (meminfo.nr_banks >= NR_BANKS) { if (meminfo.nr_banks >= NR_BANKS) {
printk(KERN_CRIT "NR_BANKS too low, " printk(KERN_CRIT "NR_BANKS too low, "
"ignoring high memory\n"); "ignoring high memory\n");
} else if (cache_is_vipt_aliasing()) {
printk(KERN_CRIT "HIGHMEM is not yet supported "
"with VIPT aliasing cache, "
"ignoring high memory\n");
} else { } else {
memmove(bank + 1, bank, memmove(bank + 1, bank,
(meminfo.nr_banks - i) * sizeof(*bank)); (meminfo.nr_banks - i) * sizeof(*bank));
......
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