linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* 32-bit kernel on PPC64 supported?
@ 2008-07-18 18:43 Marvin
  2008-07-18 21:24 ` Arnd Bergmann
  2008-07-18 22:14 ` Benjamin Herrenschmidt
  0 siblings, 2 replies; 4+ messages in thread
From: Marvin @ 2008-07-18 18:43 UTC (permalink / raw)
  To: linuxppc-dev


Hi,

while trying to cleanup some configs/makefiles for ppc64 I noticed, that 
CONFIG_POWER4 implies CONFIG_PPC64 and vice versa in all defconfigs.
So I want to boldly replace CONFIG_POWER4 by CONFIG_PPC64 - ugh.

However, there are some constructs like:

#ifndef CONFIG_PPC64
...
#ifdef CONFIG_POWER4
...
#endif
...
#endif /* CONFIG_PPC64 */

in which POWER4 is always undefined, e.g. in 
include/asm-powerpc/mmu_context.h. Maybe this is a leftover from times, where 
64-bit kernels where not supported on Powermacs. Is this 32-bit support still 
necessary?

Greetings

Marvin

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

* Re: 32-bit kernel on PPC64 supported?
  2008-07-18 18:43 32-bit kernel on PPC64 supported? Marvin
@ 2008-07-18 21:24 ` Arnd Bergmann
  2008-07-18 22:14 ` Benjamin Herrenschmidt
  1 sibling, 0 replies; 4+ messages in thread
From: Arnd Bergmann @ 2008-07-18 21:24 UTC (permalink / raw)
  To: linuxppc-dev

On Friday 18 July 2008, Marvin wrote:
> in which POWER4 is always undefined, e.g. in 
> include/asm-powerpc/mmu_context.h. Maybe this is a leftover from times, where 
> 64-bit kernels where not supported on Powermacs. Is this 32-bit support still 
> necessary?

There is currently no 64-bit machine that is supported by current kernels,
and I don't think there is any reason to add this again.

I'm not sure what the point of your plan to replace CONFIG_POWER4 is, but
it sounds like this case is slightly different, as you remove a potential
feature, so I guess it should be a separate patch.

	Arnd <><

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

* Re: 32-bit kernel on PPC64 supported?
  2008-07-18 18:43 32-bit kernel on PPC64 supported? Marvin
  2008-07-18 21:24 ` Arnd Bergmann
@ 2008-07-18 22:14 ` Benjamin Herrenschmidt
  2008-07-19  7:29   ` Marvin
  1 sibling, 1 reply; 4+ messages in thread
From: Benjamin Herrenschmidt @ 2008-07-18 22:14 UTC (permalink / raw)
  To: Marvin; +Cc: linuxppc-dev

On Fri, 2008-07-18 at 20:43 +0200, Marvin wrote:
> Hi,
> 
> while trying to cleanup some configs/makefiles for ppc64 I noticed, that 
> CONFIG_POWER4 implies CONFIG_PPC64 and vice versa in all defconfigs.
> So I want to boldly replace CONFIG_POWER4 by CONFIG_PPC64 - ugh.

No, those are different.

CONFIG_PPC64 means a 64 bits kernel.

CONFIG_POWER4 means a 64 bits kernel that only runs on IBM POWER4 and
later (ie, processors conforming to, iirc, version 2.01 or later of
the architecture).

That is, it's legal to have CONFIG_PPC64 and !CONFIG_POWER4, and this
is even necessary if you want to boot on a POWER3 or an RS64 processor.

Now, there also used to be some 32 bits support for POWER4 and G5 but
that has been dropped a while ago.

Cheers,
Ben.

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

* Re: 32-bit kernel on PPC64 supported?
  2008-07-18 22:14 ` Benjamin Herrenschmidt
@ 2008-07-19  7:29   ` Marvin
  0 siblings, 0 replies; 4+ messages in thread
From: Marvin @ 2008-07-19  7:29 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Arnd Bergmann


Hi,

On Saturday 19 July 2008 00:14:35 Benjamin Herrenschmidt wrote:
> On Fri, 2008-07-18 at 20:43 +0200, Marvin wrote:
> > Hi,
> >
> > while trying to cleanup some configs/makefiles for ppc64 I noticed, that
> > CONFIG_POWER4 implies CONFIG_PPC64 and vice versa in all defconfigs.
> > So I want to boldly replace CONFIG_POWER4 by CONFIG_PPC64 - ugh.
>
> No, those are different.
>
> CONFIG_PPC64 means a 64 bits kernel.
>
> CONFIG_POWER4 means a 64 bits kernel that only runs on IBM POWER4 and
> later (ie, processors conforming to, iirc, version 2.01 or later of
> the architecture).
>
> That is, it's legal to have CONFIG_PPC64 and !CONFIG_POWER4, and this
> is even necessary if you want to boot on a POWER3 or an RS64 processor.

I don't want to replace CONFIG_POWER4 by void, but by something like 
CONFIG_TUNE_POWER4 (see my previous post, one week ago). So there is 
no "feature loss". CONFIG_POWER3 is used only to define HAVE_BATS, so I 
thought I can clean this up. 

> Now, there also used to be some 32 bits support for POWER4 and G5 but
> that has been dropped a while ago.

Ok - that's fine. 

I hope to finish my patches during the weekend, so things will become more 
clear. 

Greetings

Marvin

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

end of thread, other threads:[~2008-07-19  7:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-18 18:43 32-bit kernel on PPC64 supported? Marvin
2008-07-18 21:24 ` Arnd Bergmann
2008-07-18 22:14 ` Benjamin Herrenschmidt
2008-07-19  7:29   ` Marvin

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).