[Top] [All Lists]

[PATCH 2/2] Loongson: disable FLATMEM

To: Ralf Baechle <>
Subject: [PATCH 2/2] Loongson: disable FLATMEM
From: Wu Zhangjin <>
Date: Tue, 1 Dec 2009 14:55:42 +0800
Cc:,, Wu Zhangjin <>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=B//V9feMDCkW5htre6axPFXbRjuVbVmhm1RjhNp7kVg=; b=QdYx1HNlpOORWHaaolTFjJubLOBTdRtO4C6Pzppvlu9Ik2nWcFETBvTU9AW+3QJ1nk 3ztlYtJrZw21/k4rw2EM9N/BSeJ9RUEsMki6KV5b6GU+1gdxWQ+sEMARJ7fezGoqA1d0 1tovsnYoWBMSon9AjBPEy0C98AxuLNRw5p9RI=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=g13fg5bicZjvpNuH6em0Cgxo6DLM0dhPjx3hG+FLbgzAOA9FnntxC2y02B0jtJUIgD Q0l3bPJTSda38iKXa4mtLC6FAb1+6Gh6fi7xc1heOh7m4Q3IfGZwTuoD6DnHIPBeKik8 szXYvj9qnRNEF5Gey5QFgl1TPG87sKbz51GLk=
Original-recipient: rfc822;
From: 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.

Relative Email thread:

Reported-by: Tatu Kilappa <>
Signed-off-by: Wu Zhangjin <>
 arch/mips/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 8bf36d2..0be245d 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -1835,7 +1835,7 @@ config SYS_SUPPORTS_SMARTMIPS
        def_bool y
-       depends on !NUMA
+       depends on !NUMA && !CPU_LOONGSON2

<Prev in Thread] Current Thread [Next in Thread>