]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Loongson: Disallow 4kB pages
authorWu Zhangjin <wuzhangjin@gmail.com>
Tue, 1 Dec 2009 06:55:25 +0000 (14:55 +0800)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 1 Dec 2009 16:21:26 +0000 (16:21 +0000)
commit13ceaec726732321794cb71ebf53c606b5c4b1bb
treef3bf789a101752e9075c8d21623cd07ef5c76f48
parent2a7712ee5dac613189a43c99ded3d0f691fd2fc7
MIPS: Loongson: Disallow 4kB pages

Currently, with PAGE_SIZE_4KB, the kernel for loongson will hang on:

Kernel panic - not syncing: Attempted to kill init!

The possible reason is the cache aliases problem:

Loongson 2F has 64kb, 4 way L1 Cache, the way size is 16kb, which is bigger
then 4kb. so, If using 4kb page size, there is cache aliases problem.
To avoid this kind of problem, extra cache flushing.  The 2nd possible
solution is 16kb page size which avoids cache aliases without the need for
extra cache flushes.  So we disable 4kB pages until the aliasing issue is
solved.

Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
Patchwork: http://patchwork.linux-mips.org/patch/736/
Cc: linux-mips@linux-mips.org
Cc: zhangfx@lemote.com
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/Kconfig