linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Starting the arch/powerpc merge
@ 2005-09-27  0:25 Paul Mackerras
  2005-09-27  3:39 ` Kumar Gala
  2005-09-27  8:23 ` Christoph Hellwig
  0 siblings, 2 replies; 19+ messages in thread
From: Paul Mackerras @ 2005-09-27  0:25 UTC (permalink / raw)
  To: linuxppc-dev, linuxppc64-dev

I have pushed a commit to the powerpc-merge.git tree which gets us far
enough to be able to build a 32-bit powermac kernel with
ARCH=powerpc.  It's still very rough in places, and it uses bits out
of arch/ppc/kernel and arch/ppc/syslib, but it is a start.

Of course, this means that we are about to bump up against the really
hard bits of the merge.  Things like

* converting ppc32 to use the lmb infrastructure
* introducing the device-tree flattening/unflattening to ppc32
* working out how to deal with the early hash table initialization
  that POWER4 needs on ppc32
* reconciling the fact that ppc64 needs RELOC in the prom_init code,
  whereas ppc32 doesn't; but ppc64 doesn't need RELOC when running
  with the MMU off but ppc32 does (or needs -mrelocatable).

I look forward to people sending me patches to push this on a bit
further, and in particular to populate arch/powerpc/platforms a bit
more. :)

Paul.

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

* Re: Starting the arch/powerpc merge
  2005-09-27  0:25 Paul Mackerras
@ 2005-09-27  3:39 ` Kumar Gala
  2005-09-27  5:38   ` Stephen Rothwell
  2005-09-27  9:56   ` Paul Mackerras
  2005-09-27  8:23 ` Christoph Hellwig
  1 sibling, 2 replies; 19+ messages in thread
From: Kumar Gala @ 2005-09-27  3:39 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: linuxppc-dev, linuxppc64-dev


On Sep 26, 2005, at 7:25 PM, Paul Mackerras wrote:

> I have pushed a commit to the powerpc-merge.git tree which gets us far
> enough to be able to build a 32-bit powermac kernel with
> ARCH=powerpc.  It's still very rough in places, and it uses bits out
> of arch/ppc/kernel and arch/ppc/syslib, but it is a start.
>
> Of course, this means that we are about to bump up against the really
> hard bits of the merge.  Things like
>
> * converting ppc32 to use the lmb infrastructure
> * introducing the device-tree flattening/unflattening to ppc32
> * working out how to deal with the early hash table initialization
>   that POWER4 needs on ppc32
> * reconciling the fact that ppc64 needs RELOC in the prom_init code,
>   whereas ppc32 doesn't; but ppc64 doesn't need RELOC when running
>   with the MMU off but ppc32 does (or needs -mrelocatable).
>
> I look forward to people sending me patches to push this on a bit
> further, and in particular to populate arch/powerpc/platforms a bit
> more. :)

You have duplicated files between arch/ppc/ and arch/powerpc.  Do you  
plan on cleaning this up are should we make sure we "fix" both?

- kumar

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

* Re: Starting the arch/powerpc merge
  2005-09-27  3:39 ` Kumar Gala
@ 2005-09-27  5:38   ` Stephen Rothwell
  2005-09-27  9:56   ` Paul Mackerras
  1 sibling, 0 replies; 19+ messages in thread
From: Stephen Rothwell @ 2005-09-27  5:38 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-dev, linuxppc64-dev

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

On Mon, 26 Sep 2005 22:39:56 -0500 Kumar Gala <kumar.gala@freescale.com> wrote:
>
> You have duplicated files between arch/ppc/ and arch/powerpc.  Do you  
> plan on cleaning this up are should we make sure we "fix" both?

I have done a patch that fixed most of those (but not all).  It will be in the
merge tree when Paulus next pushes it out.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: Starting the arch/powerpc merge
  2005-09-27  0:25 Paul Mackerras
  2005-09-27  3:39 ` Kumar Gala
@ 2005-09-27  8:23 ` Christoph Hellwig
  2005-09-27  8:30   ` Paul Mackerras
  1 sibling, 1 reply; 19+ messages in thread
From: Christoph Hellwig @ 2005-09-27  8:23 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: linuxppc-dev, linuxppc64-dev

On Tue, Sep 27, 2005 at 10:25:38AM +1000, Paul Mackerras wrote:
> * working out how to deal with the early hash table initialization
>   that POWER4 needs on ppc32

What about just dropping POWER3/4 support in 32bit mode?

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

* Re: Starting the arch/powerpc merge
  2005-09-27  8:23 ` Christoph Hellwig
@ 2005-09-27  8:30   ` Paul Mackerras
  2005-09-27  9:16     ` Heikki Lindholm
  2005-09-28  0:05     ` Benjamin Herrenschmidt
  0 siblings, 2 replies; 19+ messages in thread
From: Paul Mackerras @ 2005-09-27  8:30 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linuxppc-dev, linuxppc64-dev

Christoph Hellwig writes:

> What about just dropping POWER3/4 support in 32bit mode?

Yes... I'm getting very close to deciding to do that.  In fact POWER3
isn't too bad, since it still has BATs, but POWER4/PPC970 would be
tricky.

Does anyone on these lists have any major objections if we drop
support for 32-bit kernels on POWER3 and POWER4/PPC970?

Paul.

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

* Re: Starting the arch/powerpc merge
  2005-09-27  8:30   ` Paul Mackerras
@ 2005-09-27  9:16     ` Heikki Lindholm
  2005-09-27  9:26       ` Pantelis Antoniou
  2005-09-28  0:05     ` Benjamin Herrenschmidt
  1 sibling, 1 reply; 19+ messages in thread
From: Heikki Lindholm @ 2005-09-27  9:16 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: linuxppc-dev, linuxppc64-dev

Paul Mackerras kirjoitti:
> Christoph Hellwig writes:
> 
> 
>>What about just dropping POWER3/4 support in 32bit mode?
> 
> 
> Yes... I'm getting very close to deciding to do that.  In fact POWER3
> isn't too bad, since it still has BATs, but POWER4/PPC970 would be
> tricky.
> 
> Does anyone on these lists have any major objections if we drop
> support for 32-bit kernels on POWER3 and POWER4/PPC970?

I think it was Kumar Gala who already asked this a while ago. For me, 
32-bit kernel on a 970 has been useful "initial stage" of gradually 
porting kernel stuff over to real 64-bit, but if I'm the only user and 
keeping the support is a nuisance, go ahead and drop it.

-- Heikki Lindholm

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

* Re: Starting the arch/powerpc merge
  2005-09-27  9:16     ` Heikki Lindholm
@ 2005-09-27  9:26       ` Pantelis Antoniou
  2005-09-27  9:55         ` Paul Mackerras
  0 siblings, 1 reply; 19+ messages in thread
From: Pantelis Antoniou @ 2005-09-27  9:26 UTC (permalink / raw)
  To: Heikki Lindholm; +Cc: linuxppc-dev, linuxppc64-dev

Heikki Lindholm wrote:
> Paul Mackerras kirjoitti:
> 
>> Christoph Hellwig writes:
>>
>>
>>> What about just dropping POWER3/4 support in 32bit mode?
>>
>>
>>
>> Yes... I'm getting very close to deciding to do that.  In fact POWER3
>> isn't too bad, since it still has BATs, but POWER4/PPC970 would be
>> tricky.
>>
>> Does anyone on these lists have any major objections if we drop
>> support for 32-bit kernels on POWER3 and POWER4/PPC970?
> 
> 
> I think it was Kumar Gala who already asked this a while ago. For me, 
> 32-bit kernel on a 970 has been useful "initial stage" of gradually 
> porting kernel stuff over to real 64-bit, but if I'm the only user and 
> keeping the support is a nuisance, go ahead and drop it.
> 
> -- Heikki Lindholm

Count me in too; using a 970 in 32 bit mode, because of gentoo X.org
problems in 64 bit mode.

Regards

Pantelis

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

* Re: Starting the arch/powerpc merge
  2005-09-27  9:55         ` Paul Mackerras
@ 2005-09-27  9:51           ` Pantelis Antoniou
  0 siblings, 0 replies; 19+ messages in thread
From: Pantelis Antoniou @ 2005-09-27  9:51 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: linuxppc-dev, Heikki Lindholm, linuxppc64-dev

Paul Mackerras wrote:
> Pantelis Antoniou writes:
> 
> 
>>Count me in too; using a 970 in 32 bit mode, because of gentoo X.org
>>problems in 64 bit mode.
> 
> 
> I'm using an X.org server on a ppc64 kernel, and it all works,
> including DRI.  Both 32-bit and 64-bit X server and clients work.  We
> now have the 32-bit ioctl compatibility sorted out in the kernel DRM.
> So I don't think X is a reason to run a 32-bit kernel any more.
> 
> What X.org problems do you see with a 64-bit kernel?
> 
> Paul.
> 
> 
> 

I didn't really tried a very recent kernel, I tried it about a month ago,
and it didn't work. Could be a gentoo problem for all I know.

Since I don't have time to debug these kind of problems, it's really nice
to know that it now works :).

No worries then.

Regards

Pantelis

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

* Re: Starting the arch/powerpc merge
  2005-09-27  9:26       ` Pantelis Antoniou
@ 2005-09-27  9:55         ` Paul Mackerras
  2005-09-27  9:51           ` Pantelis Antoniou
  0 siblings, 1 reply; 19+ messages in thread
From: Paul Mackerras @ 2005-09-27  9:55 UTC (permalink / raw)
  To: Pantelis Antoniou; +Cc: linuxppc-dev, Heikki Lindholm, linuxppc64-dev

Pantelis Antoniou writes:

> Count me in too; using a 970 in 32 bit mode, because of gentoo X.org
> problems in 64 bit mode.

I'm using an X.org server on a ppc64 kernel, and it all works,
including DRI.  Both 32-bit and 64-bit X server and clients work.  We
now have the 32-bit ioctl compatibility sorted out in the kernel DRM.
So I don't think X is a reason to run a 32-bit kernel any more.

What X.org problems do you see with a 64-bit kernel?

Paul.

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

* Re: Starting the arch/powerpc merge
  2005-09-27  3:39 ` Kumar Gala
  2005-09-27  5:38   ` Stephen Rothwell
@ 2005-09-27  9:56   ` Paul Mackerras
  1 sibling, 0 replies; 19+ messages in thread
From: Paul Mackerras @ 2005-09-27  9:56 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-dev, linuxppc64-dev

Kumar Gala writes:

> You have duplicated files between arch/ppc/ and arch/powerpc.  Do you  
> plan on cleaning this up are should we make sure we "fix" both?

I did that deliberately so that I could hack the merged version
without worrying about whether I would break the compile with ARCH=ppc
or ARCH=ppc64.  If it turns out that the merged version of some file
is sufficiently similar to the ppc version, we can then delete the ppc
version and just use the merged version.

Paul.

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

* Re: Starting the arch/powerpc merge
@ 2005-09-27 15:43 Daniel Ostrow
  2005-09-27 16:43 ` Christopher Friesen
  0 siblings, 1 reply; 19+ messages in thread
From: Daniel Ostrow @ 2005-09-27 15:43 UTC (permalink / raw)
  To: panto; +Cc: linuxppc64-dev, linuxppc-dev

>Pantelis Antoniou writes:
>
>> Count me in too; using a 970 in 32 bit mode, because of gentoo X.org
>> problems in 64 bit mode.
>
>I'm using an X.org server on a ppc64 kernel, and it all works,
>including DRI.  Both 32-bit and 64-bit X server and clients work.  We
>now have the 32-bit ioctl compatibility sorted out in the kernel DRM.
>So I don't think X is a reason to run a 32-bit kernel any more.
>
>What X.org problems do you see with a 64-bit kernel?
>
>Paul.

Speaking as a member of the Gentoo/PPC64 team I'm also curious what
issues you are having...the only open issues that I am aware of have to
do with the recent r7 X.org prereleases...both modular and monolithic.
If that is what you are talking about then yeah there are issues...but
more then likely they are on the X.org side not the kernels. Anything in
the 6.8.2 range (which is what is stable) has been working fine for a
long long time under a pure 64-bit env.

Thanks,

-- 
Daniel Ostrow
Gentoo Foundation Board of Trustees
Gentoo/{PPC,PPC64,DevRel}
dostrow@gentoo.org

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

* Re: Starting the arch/powerpc merge
  2005-09-27 15:43 Starting the arch/powerpc merge Daniel Ostrow
@ 2005-09-27 16:43 ` Christopher Friesen
  2005-09-27 17:29   ` Daniel Ostrow
  0 siblings, 1 reply; 19+ messages in thread
From: Christopher Friesen @ 2005-09-27 16:43 UTC (permalink / raw)
  To: dostrow; +Cc: linuxppc64-dev, linuxppc-dev

Daniel Ostrow wrote:
> Anything in
> the 6.8.2 range (which is what is stable) has been working fine for a
> long long time under a pure 64-bit env.

What about mixed 32-bit userspace and 64-bit kernel?

Chris

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

* Re: Starting the arch/powerpc merge
  2005-09-27 16:43 ` Christopher Friesen
@ 2005-09-27 17:29   ` Daniel Ostrow
  2005-09-28  0:07     ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 19+ messages in thread
From: Daniel Ostrow @ 2005-09-27 17:29 UTC (permalink / raw)
  To: Christopher Friesen; +Cc: linuxppc64-dev, linuxppc-dev

On Tue, 2005-09-27 at 10:43 -0600, Christopher Friesen wrote:
> Daniel Ostrow wrote:
> > Anything in
> > the 6.8.2 range (which is what is stable) has been working fine for a
> > long long time under a pure 64-bit env.
> 
> What about mixed 32-bit userspace and 64-bit kernel?
> 
> Chris
> 

The way I set that up is still young...and has some issues (most of
which should be fixed by the ppc && ppc64 -> powerpc merge). From what I
have tested, it does work perfectly fine with 6.8.2...I haven't run into
any issues. I maintain that profile so if there are issues please take
them off this list...feel free to send them to ppc64@gentoo.org or open
a bug at bugs.gentoo.org and assign it to the ppc64 group. I'll see it
either way.

Thanks,

-- 
Daniel Ostrow
Gentoo Foundation Board of Trustees
Gentoo/{PPC,PPC64,DevRel}
dostrow@gentoo.org

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

* Re: Starting the arch/powerpc merge
  2005-09-27  8:30   ` Paul Mackerras
  2005-09-27  9:16     ` Heikki Lindholm
@ 2005-09-28  0:05     ` Benjamin Herrenschmidt
  2005-09-29  7:20       ` Giuliano Pochini
  1 sibling, 1 reply; 19+ messages in thread
From: Benjamin Herrenschmidt @ 2005-09-28  0:05 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: linuxppc-dev, linuxppc64-dev

On Tue, 2005-09-27 at 18:30 +1000, Paul Mackerras wrote:
> Christoph Hellwig writes:
> 
> > What about just dropping POWER3/4 support in 32bit mode?
> 
> Yes... I'm getting very close to deciding to do that.  In fact POWER3
> isn't too bad, since it still has BATs, but POWER4/PPC970 would be
> tricky.
> 
> Does anyone on these lists have any major objections if we drop
> support for 32-bit kernels on POWER3 and POWER4/PPC970?

I've stopped supporting G5 on 32 bits kernel for some time now, I have
absolutely no problem just dropping the POWER4 support in 32 bits kernel
in the merged tree.

Ben.

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

* Re: Starting the arch/powerpc merge
  2005-09-27 17:29   ` Daniel Ostrow
@ 2005-09-28  0:07     ` Benjamin Herrenschmidt
  0 siblings, 0 replies; 19+ messages in thread
From: Benjamin Herrenschmidt @ 2005-09-28  0:07 UTC (permalink / raw)
  To: dostrow; +Cc: linuxppc-dev, Christopher Friesen, linuxppc64-dev


> The way I set that up is still young...and has some issues (most of
> which should be fixed by the ppc && ppc64 -> powerpc merge). From what I
> have tested, it does work perfectly fine with 6.8.2...I haven't run into
> any issues. I maintain that profile so if there are issues please take
> them off this list...feel free to send them to ppc64@gentoo.org or open
> a bug at bugs.gentoo.org and assign it to the ppc64 group. I'll see it
> either way.

I'm running a 32 bits X.org 6.8.99 from CVS with the r300 DRI stuff
etc... on a G5 with 64 bits kernel without trouble. Paulus did the same
with a 64 bits X.

Ben.

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

* Re: Starting the arch/powerpc merge
  2005-09-28  0:05     ` Benjamin Herrenschmidt
@ 2005-09-29  7:20       ` Giuliano Pochini
  2005-10-06 23:24         ` Paul Mackerras
  0 siblings, 1 reply; 19+ messages in thread
From: Giuliano Pochini @ 2005-09-29  7:20 UTC (permalink / raw)
  To: Benjamin Herrenschmidt; +Cc: linuxppc64-dev, linuxppc-dev


On 28-Sep-2005 Benjamin Herrenschmidt wrote:
> On Tue, 2005-09-27 at 18:30 +1000, Paul Mackerras wrote:
>> Christoph Hellwig writes:
>>
>> > What about just dropping POWER3/4 support in 32bit mode?
>>
>> Yes... I'm getting very close to deciding to do that.  In fact POWER3
>> isn't too bad, since it still has BATs, but POWER4/PPC970 would be
>> tricky.
>>
>> Does anyone on these lists have any major objections if we drop
>> support for 32-bit kernels on POWER3 and POWER4/PPC970?
>
> I've stopped supporting G5 on 32 bits kernel for some time now, I have
> absolutely no problem just dropping the POWER4 support in 32 bits kernel
> in the merged tree.

Out of curiosity, is there any advantage in using a 32 bits
kernel on ppc64 over a 64 bits kernel ?  Speed ?  Complexity ?
Compatibility ?  Memory ?



--
Giuliano.

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

* Re: Starting the arch/powerpc merge
  2005-09-29  7:20       ` Giuliano Pochini
@ 2005-10-06 23:24         ` Paul Mackerras
  2005-10-20 23:01           ` Paul Mackerras
  2005-10-21  7:19           ` Giuliano Pochini
  0 siblings, 2 replies; 19+ messages in thread
From: Paul Mackerras @ 2005-10-06 23:24 UTC (permalink / raw)
  To: Giuliano Pochini; +Cc: linuxppc-dev, linuxppc64-dev

Giuliano Pochini writes:

> Out of curiosity, is there any advantage in using a 32 bits
> kernel on ppc64 over a 64 bits kernel ?  Speed ?  Complexity ?
> Compatibility ?  Memory ?

Not really.  The main thing in the past has been that DRI with 32-bit
X server and clients would work with a 32-bit kernel but not a 64-bit
kernel, but that's fixed now.  A 64-bit kernel is faster on most
lmbench tests.  I guess a 32-bit kernel might end up a little smaller,
but that's the only possible advantage I can think of.

Paul.

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

* Re: Starting the arch/powerpc merge
  2005-10-06 23:24         ` Paul Mackerras
@ 2005-10-20 23:01           ` Paul Mackerras
  2005-10-21  7:19           ` Giuliano Pochini
  1 sibling, 0 replies; 19+ messages in thread
From: Paul Mackerras @ 2005-10-20 23:01 UTC (permalink / raw)
  To: Giuliano Pochini, linuxppc-dev, linuxppc64-dev

I wrote:

> Not really.  The main thing in the past has been that DRI with 32-bit
> X server and clients would work with a 32-bit kernel but not a 64-bit
> kernel, but that's fixed now.  A 64-bit kernel is faster on most
> lmbench tests.  I guess a 32-bit kernel might end up a little smaller,
> but that's the only possible advantage I can think of.

Oops, sorry, mail system breakage here...

Paul.

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

* Re: Starting the arch/powerpc merge
  2005-10-06 23:24         ` Paul Mackerras
  2005-10-20 23:01           ` Paul Mackerras
@ 2005-10-21  7:19           ` Giuliano Pochini
  1 sibling, 0 replies; 19+ messages in thread
From: Giuliano Pochini @ 2005-10-21  7:19 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: linuxppc-dev, linuxppc64-dev


On 06-Oct-2005 Paul Mackerras wrote:

>> Out of curiosity, is there any advantage in using a 32 bits
>> kernel on ppc64 over a 64 bits kernel ?  Speed ?  Complexity ?
>> Compatibility ?  Memory ?
>
> Not really.  The main thing in the past has been that DRI with 32-bit
> X server and clients would work with a 32-bit kernel but not a 64-bit
> kernel, but that's fixed now.  A 64-bit kernel is faster on most
> lmbench tests.  I guess a 32-bit kernel might end up a little smaller,
> but that's the only possible advantage I can think of.

And 32<->64 bits compatibility layer for 32bits apps is not needed,
so maybe they run a bit faster. Well, at this point IMHO 32-on-64
support may be dropped without regrets. Spending time for an useless
thing is - uhm - useless.


> Oops, sorry, mail system breakage here...

My mail wasn't important anyway :))


--
Giuliano.

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

end of thread, other threads:[~2005-10-21  7:19 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-27 15:43 Starting the arch/powerpc merge Daniel Ostrow
2005-09-27 16:43 ` Christopher Friesen
2005-09-27 17:29   ` Daniel Ostrow
2005-09-28  0:07     ` Benjamin Herrenschmidt
  -- strict thread matches above, loose matches on Subject: below --
2005-09-27  0:25 Paul Mackerras
2005-09-27  3:39 ` Kumar Gala
2005-09-27  5:38   ` Stephen Rothwell
2005-09-27  9:56   ` Paul Mackerras
2005-09-27  8:23 ` Christoph Hellwig
2005-09-27  8:30   ` Paul Mackerras
2005-09-27  9:16     ` Heikki Lindholm
2005-09-27  9:26       ` Pantelis Antoniou
2005-09-27  9:55         ` Paul Mackerras
2005-09-27  9:51           ` Pantelis Antoniou
2005-09-28  0:05     ` Benjamin Herrenschmidt
2005-09-29  7:20       ` Giuliano Pochini
2005-10-06 23:24         ` Paul Mackerras
2005-10-20 23:01           ` Paul Mackerras
2005-10-21  7:19           ` Giuliano Pochini

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