Loongson: disable FLATMEM
PATCH 2/2 Loongson: disable FLATMEM
From: Wu Zhangjin <[email protected]>
With FLATMEM, The STD(Hibernation) for Loongson will fail, and there are also some other problems(break the files) when using NFS or CIFS(samba).
And as the config help of SPARSEMEM says:
"This option provides some potential performance benefits, along with decreased code complexity."
So, to avoid the potential problems of FLATMEM, we disable FLATMEM directly and use SPARSEMEM instead.
Relative Email thread:
--- arch/mips/Kconfig | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/mips/Kconfig +1 -1
@@ -1835,7 +1835,7 @@ config SYS_SUPPORTS_SMARTMIPS config ARCH_FLATMEM_ENABLE def_bool y - depends on !NUMA + depends on !NUMA && !CPU_LOONGSON2 config ARCH_DISCONTIGMEM_ENABLE bool
Signature · 1 line
1.6.2.1
Quoted 11 lines · Wu Zhangjin
With FLATMEM, The STD(Hibernation) for Loongson will fail, and there are also some other problems(break the files) when using NFS or CIFS(samba).
And as the config help of SPARSEMEM says:
"This option provides some potential performance benefits, along with decreased code complexity."
So, to avoid the potential problems of FLATMEM, we disable FLATMEM directly and use SPARSEMEM instead.
Quoted 6 lines
Relative Email thread:
Reported-by Tatu Kilappa <[email protected]>Signed-off-by Wu Zhangjin <[email protected]>
Applied - though I'm not so sure if I can get this one to Linus as close to a release as we are now.
Thanks!
Ralf