linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* PPC32 memory models
@ 2005-11-28 19:06 Andy Whitcroft
  2005-11-29  1:58 ` Paul Mackerras
  2005-11-29 19:20 ` [PATCH] powerpc ppc32 clean up available " Andy Whitcroft
  0 siblings, 2 replies; 3+ messages in thread
From: Andy Whitcroft @ 2005-11-28 19:06 UTC (permalink / raw)
  To: Anton Blanchard, Paul Mackerras; +Cc: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 566 bytes --]

It seems that there is some confusion over what we should be supporting
memory model wise for PPC32 under powerpc architecture.  The current
Kconfig limits you to only SPARSEMEM which isn't parameterised for PPC32
at all.  Are we expecting to be able to support PPC32 as yet in this
architecture?  If so it seems we have a couple of issues with the Kconfig.

Attached is a patch to enable FLATMEM and disable SPARSEMEM for PPC32
which seems to be the working combinations.  It may well not be what is
intended.  But I offer it to start discussions.

Comments.

-apw

[-- Attachment #2: sparsemem-powerpc-allow-flatmem-on-32bit --]
[-- Type: text/plain, Size: 796 bytes --]

powerpc: ppc32 clean up available memory models

Clean up the currently available memory models for ppc32.  It seems
that we do need FLATMEM for ppc32 on non-NUMA.  It also seems that
SPARSEMEM is not parameterised yet so disable that.

Signed-off-by: Andy Whitcroft <apw@shadwen.org>
---
diff -upN reference/arch/powerpc/Kconfig current/arch/powerpc/Kconfig
--- reference/arch/powerpc/Kconfig
+++ current/arch/powerpc/Kconfig
@@ -584,14 +584,15 @@ config ARCH_SELECT_MEMORY_MODEL
 
 config ARCH_FLATMEM_ENABLE
        def_bool y
-       depends on PPC64 && !NUMA
+       depends on !NUMA
 
 config ARCH_SPARSEMEM_ENABLE
 	def_bool y
+	depends on PPC64
 
 config ARCH_SPARSEMEM_DEFAULT
 	def_bool y
-	depends on SMP && PPC_PSERIES
+	depends on SMP && PPC_PSERIES && NUMA
 
 source "mm/Kconfig"
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-11-29 19:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-28 19:06 PPC32 memory models Andy Whitcroft
2005-11-29  1:58 ` Paul Mackerras
2005-11-29 19:20 ` [PATCH] powerpc ppc32 clean up available " Andy Whitcroft

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).