linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Time for cell code reshuffle?
@ 2007-12-21 14:22 Arnd Bergmann
  2007-12-21 17:23 ` Geoff Levand
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Arnd Bergmann @ 2007-12-21 14:22 UTC (permalink / raw)
  To: cbe-oss-dev; +Cc: linuxppc-dev, Paul Mackerras, Jeremy Kerr

We've been discussing in the past a few times where we should best put
the spufs code, and when to do it. Since Jeremy and I now have all the
current patches in powerpc.git, maybe we should do it now.

To the question, where what it should go, I'd leave the decision to
Jeremy, but my current idea would be:

arch/powerpc/platforms/cell/spufs -> arch/powerpc/spufs
arch/powerpc/platforms/cell/spu_{callbacks,base,syscalls,fault,notify}.[co]
 -> arch/powerpc/spufs/{callbacks,base,syscalls,fault,notify}.[co]

If we do it in git now, that should result in a minimal breakage of patches.

A related question is what to do about the location of the other cell
related files. platforms/ps3 is already pretty self-contained once we have
spufs outside of platforms/cell, but there is still some code shared between
platforms/cell and platforms/celleb, and each of these directories also contains
code that is only relevant for a subset of the platforms.

My position on these files is that while I find the current state a little
bit confusing, I don't have an idea how to do it better either, and I think
we should just leave the platform files where they are.

	Arnd <><

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

* Re: Time for cell code reshuffle?
  2007-12-21 14:22 Time for cell code reshuffle? Arnd Bergmann
@ 2007-12-21 17:23 ` Geoff Levand
  2007-12-21 19:15   ` Arnd Bergmann
  2007-12-22 20:58   ` Benjamin Herrenschmidt
  2007-12-22 20:57 ` Benjamin Herrenschmidt
  2007-12-23  3:47 ` [Cbe-oss-dev] " Jeremy Kerr
  2 siblings, 2 replies; 14+ messages in thread
From: Geoff Levand @ 2007-12-21 17:23 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: linuxppc-dev, Paul Mackerras, cbe-oss-dev, Jeremy Kerr

Arnd Bergmann wrote:
> We've been discussing in the past a few times where we should best put
> the spufs code, and when to do it. Since Jeremy and I now have all the
> current patches in powerpc.git, maybe we should do it now.
> 
> To the question, where what it should go, I'd leave the decision to
> Jeremy, but my current idea would be:
> 
> arch/powerpc/platforms/cell/spufs -> arch/powerpc/spufs
> arch/powerpc/platforms/cell/spu_{callbacks,base,syscalls,fault,notify}.[co]
>  -> arch/powerpc/spufs/{callbacks,base,syscalls,fault,notify}.[co]


I think we should consider support for SpursEngine.  At the moment I have no
idea of what it needs, and if no one else does we need to find out.


> If we do it in git now, that should result in a minimal breakage of patches.
> 
> A related question is what to do about the location of the other cell
> related files. platforms/ps3 is already pretty self-contained once we have
> spufs outside of platforms/cell, but there is still some code shared between
> platforms/cell and platforms/celleb, and each of these directories also contains
> code that is only relevant for a subset of the platforms.


It seems platforms/cell should have the shared and/or generic code, and the other
stuff moved into a new platform directory, but is it worth the effort? 

-Geoff

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

* Re: Time for cell code reshuffle?
  2007-12-21 17:23 ` Geoff Levand
@ 2007-12-21 19:15   ` Arnd Bergmann
  2007-12-22 21:00     ` Benjamin Herrenschmidt
  2007-12-22 20:58   ` Benjamin Herrenschmidt
  1 sibling, 1 reply; 14+ messages in thread
From: Arnd Bergmann @ 2007-12-21 19:15 UTC (permalink / raw)
  To: Geoff Levand; +Cc: linuxppc-dev, Paul Mackerras, cbe-oss-dev, Jeremy Kerr

On Friday 21 December 2007, Geoff Levand wrote:
> Arnd Bergmann wrote:
>
> > arch/powerpc/platforms/cell/spufs -> arch/powerpc/spufs
> > arch/powerpc/platforms/cell/spu_{callbacks,base,syscalls,fault,notify}.[co]
> >  -> arch/powerpc/spufs/{callbacks,base,syscalls,fault,notify}.[co]
> 
> 
> I think we should consider support for SpursEngine.  At the moment I have no
> idea of what it needs, and if no one else does we need to find out.

Hmm, since there is not much documentation available for SpursEngine, it's
rather hard to tell what needs to be done for it.

If we think that it will hit the kernel anytime soon, we could use fs/spufs
instead of arch/powerpc/spufs right away. Interestingly, this is where it was
initially, but got moved to arch/powerpc/platforms/cell/spufs after a lot
of discussion ;-).

> It seems platforms/cell should have the shared and/or generic code, and the other
> stuff moved into a new platform directory, but is it worth the effort? 

There is very little code in platforms/cell that can not be generic, so I think
it's not worth splitting it. The only IBM blade specific files are
cbe_cpufreq_pmi.c and parts of setup.c and pervasive.c. Everything else could
be shared by about any generic implementation without a hypervisor.

	Arnd <><

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

* Re: Time for cell code reshuffle?
  2007-12-21 14:22 Time for cell code reshuffle? Arnd Bergmann
  2007-12-21 17:23 ` Geoff Levand
@ 2007-12-22 20:57 ` Benjamin Herrenschmidt
  2007-12-23  3:47 ` [Cbe-oss-dev] " Jeremy Kerr
  2 siblings, 0 replies; 14+ messages in thread
From: Benjamin Herrenschmidt @ 2007-12-22 20:57 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: linuxppc-dev, Paul Mackerras, cbe-oss-dev, Jeremy Kerr


> A related question is what to do about the location of the other cell
> related files. platforms/ps3 is already pretty self-contained once we have
> spufs outside of platforms/cell, but there is still some code shared between
> platforms/cell and platforms/celleb, and each of these directories also contains
> code that is only relevant for a subset of the platforms.
> 
> My position on these files is that while I find the current state a little
> bit confusing, I don't have an idea how to do it better either, and I think
> we should just leave the platform files where they are.

Some of these files could do to syslib, like the io workarounds, rename
them spider-io-hacks :-)

Ben.

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

* Re: Time for cell code reshuffle?
  2007-12-21 17:23 ` Geoff Levand
  2007-12-21 19:15   ` Arnd Bergmann
@ 2007-12-22 20:58   ` Benjamin Herrenschmidt
  2007-12-22 21:11     ` Josh Boyer
  1 sibling, 1 reply; 14+ messages in thread
From: Benjamin Herrenschmidt @ 2007-12-22 20:58 UTC (permalink / raw)
  To: Geoff Levand
  Cc: linuxppc-dev, Paul Mackerras, cbe-oss-dev, Arnd Bergmann,
	Jeremy Kerr


On Fri, 2007-12-21 at 09:23 -0800, Geoff Levand wrote:
> 
> It seems platforms/cell should have the shared and/or generic code,
> and the other
> stuff moved into a new platform directory, but is it worth the
> effort? 

No, platforms/xxx isn't supposed to be shared code. That's was syslib is
for.

Ben.

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

* Re: Time for cell code reshuffle?
  2007-12-21 19:15   ` Arnd Bergmann
@ 2007-12-22 21:00     ` Benjamin Herrenschmidt
  2007-12-26 11:42       ` Ishizaki Kou
  0 siblings, 1 reply; 14+ messages in thread
From: Benjamin Herrenschmidt @ 2007-12-22 21:00 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: linuxppc-dev, Paul Mackerras, cbe-oss-dev, Jeremy Kerr


On Fri, 2007-12-21 at 20:15 +0100, Arnd Bergmann wrote:
> > It seems platforms/cell should have the shared and/or generic code,
> and the other
> > stuff moved into a new platform directory, but is it worth the
> effort? 
> 
> There is very little code in platforms/cell that can not be generic,
> so I think
> it's not worth splitting it. The only IBM blade specific files are
> cbe_cpufreq_pmi.c and parts of setup.c and pervasive.c. Everything
> else could
> be shared by about any generic implementation without a hypervisor.

Another option is to have:

platforms/celleb -> platforms/beat

and withing platforms/cell, rename blade specific files to
something (can't find what, works on CAB too) and add celleb
"bare metal" files.

A platform directly doesn't have to deal with one platform. For example,
platforms/44x contains a lot of board support.

Now, one question is how far can we merge celleb support with the common
blade/CAB code...

Cheers,
Ben.

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

* Re: Time for cell code reshuffle?
  2007-12-22 20:58   ` Benjamin Herrenschmidt
@ 2007-12-22 21:11     ` Josh Boyer
  2007-12-22 21:21       ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 14+ messages in thread
From: Josh Boyer @ 2007-12-22 21:11 UTC (permalink / raw)
  To: benh; +Cc: Arnd Bergmann, linuxppc-dev, Paul Mackerras, Jeremy Kerr,
	cbe-oss-dev

On Sun, 23 Dec 2007 07:58:02 +1100
Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:

> 
> On Fri, 2007-12-21 at 09:23 -0800, Geoff Levand wrote:
> > 
> > It seems platforms/cell should have the shared and/or generic code,
> > and the other
> > stuff moved into a new platform directory, but is it worth the
> > effort? 
> 
> No, platforms/xxx isn't supposed to be shared code. That's was syslib is
> for.

I think you mean sysdev?

josh

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

* Re: Time for cell code reshuffle?
  2007-12-22 21:11     ` Josh Boyer
@ 2007-12-22 21:21       ` Benjamin Herrenschmidt
  0 siblings, 0 replies; 14+ messages in thread
From: Benjamin Herrenschmidt @ 2007-12-22 21:21 UTC (permalink / raw)
  To: Josh Boyer
  Cc: Arnd Bergmann, linuxppc-dev, Paul Mackerras, Jeremy Kerr,
	cbe-oss-dev


On Sat, 2007-12-22 at 15:11 -0600, Josh Boyer wrote:
> > 
> > No, platforms/xxx isn't supposed to be shared code. That's was
> syslib is
> > for.
> 
> I think you mean sysdev?

Yeah, whatever the name of the day for that thing is.

(It's syslib in arch/ppc ?)

Ben.

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

* Re: [Cbe-oss-dev] Time for cell code reshuffle?
  2007-12-21 14:22 Time for cell code reshuffle? Arnd Bergmann
  2007-12-21 17:23 ` Geoff Levand
  2007-12-22 20:57 ` Benjamin Herrenschmidt
@ 2007-12-23  3:47 ` Jeremy Kerr
  2007-12-23 12:35   ` Christoph Hellwig
  2 siblings, 1 reply; 14+ messages in thread
From: Jeremy Kerr @ 2007-12-23  3:47 UTC (permalink / raw)
  To: cbe-oss-dev; +Cc: linuxppc-dev, Arnd Bergmann

Hi all,

> To the question, where what it should go, I'd leave the decision to
> Jeremy, but my current idea would be:
>
> arch/powerpc/platforms/cell/spufs -> arch/powerpc/spufs

I'd suggest arch/powerpc/sysdev/spufs to keep arch/powerpc clean.

However, this may also depend on the (intended) structure of SPURSEngine 
support, which may mean that fs/spufs might be a better place. It would 
suck to have to move things twice, so maybe someone from Tosihba could 
provide some input? Would the powerpc spufs code be suitable for 
SPURSEngine?

As thers have posted earlier, i gthink that arch/powerpc/sysdev/cell 
would be good for the generic cell support, then we could have 
arch/powerpc/platforms/{cell,ps3,beat} containing only the individual 
platform code.

Cheers,


Jeremy

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

* Re: [Cbe-oss-dev] Time for cell code reshuffle?
  2007-12-23  3:47 ` [Cbe-oss-dev] " Jeremy Kerr
@ 2007-12-23 12:35   ` Christoph Hellwig
  2007-12-23 14:06     ` Geert Uytterhoeven
  0 siblings, 1 reply; 14+ messages in thread
From: Christoph Hellwig @ 2007-12-23 12:35 UTC (permalink / raw)
  To: Jeremy Kerr; +Cc: linuxppc-dev, cbe-oss-dev, Arnd Bergmann

On Sun, Dec 23, 2007 at 12:47:42PM +0900, Jeremy Kerr wrote:
> Hi all,
> 
> > To the question, where what it should go, I'd leave the decision to
> > Jeremy, but my current idea would be:
> >
> > arch/powerpc/platforms/cell/spufs -> arch/powerpc/spufs
> 
> I'd suggest arch/powerpc/sysdev/spufs to keep arch/powerpc clean.
> 
> However, this may also depend on the (intended) structure of SPURSEngine 
> support, which may mean that fs/spufs might be a better place. It would 
> suck to have to move things twice, so maybe someone from Tosihba could 
> provide some input? Would the powerpc spufs code be suitable for 
> SPURSEngine?

Strong NACK for fs/spufs/  fs code is the smallest part of the spu
support, and all this nasty lowlevel code doesn't belong into fs/ at
all.

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

* Re: [Cbe-oss-dev] Time for cell code reshuffle?
  2007-12-23 12:35   ` Christoph Hellwig
@ 2007-12-23 14:06     ` Geert Uytterhoeven
  2007-12-23 17:14       ` Luca Barbato
  0 siblings, 1 reply; 14+ messages in thread
From: Geert Uytterhoeven @ 2007-12-23 14:06 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linuxppc-dev, Jeremy Kerr, Arnd Bergmann, cbe-oss-dev

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1460 bytes --]

On Sun, 23 Dec 2007, Christoph Hellwig wrote:
> On Sun, Dec 23, 2007 at 12:47:42PM +0900, Jeremy Kerr wrote:
> > > To the question, where what it should go, I'd leave the decision to
> > > Jeremy, but my current idea would be:
> > >
> > > arch/powerpc/platforms/cell/spufs -> arch/powerpc/spufs
> > 
> > I'd suggest arch/powerpc/sysdev/spufs to keep arch/powerpc clean.
> > 
> > However, this may also depend on the (intended) structure of SPURSEngine 
> > support, which may mean that fs/spufs might be a better place. It would 
> > suck to have to move things twice, so maybe someone from Tosihba could 
> > provide some input? Would the powerpc spufs code be suitable for 
> > SPURSEngine?
> 
> Strong NACK for fs/spufs/  fs code is the smallest part of the spu
> support, and all this nasty lowlevel code doesn't belong into fs/ at
> all.

drivers/spu/?

With kind regards,
 
Geert Uytterhoeven
Software Architect

Sony Network and Software Technology Center Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium
 
Phone:    +32 (0)2 700 8453	
Fax:      +32 (0)2 700 8622	
E-mail:   Geert.Uytterhoeven@sonycom.com	
Internet: http://www.sony-europe.com/
 	
Sony Network and Software Technology Center Europe	
A division of Sony Service Centre (Europe) N.V.	
Registered office: Technologielaan 7 · B-1840 Londerzeel · Belgium	
VAT BE 0413.825.160 · RPR Brussels	
Fortis Bank Zaventem · Swift GEBABEBB08A · IBAN BE39001382358619

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

* Re: [Cbe-oss-dev] Time for cell code reshuffle?
  2007-12-23 14:06     ` Geert Uytterhoeven
@ 2007-12-23 17:14       ` Luca Barbato
  0 siblings, 0 replies; 14+ messages in thread
From: Luca Barbato @ 2007-12-23 17:14 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: linuxppc-dev, cbe-oss-dev, Christoph Hellwig, Arnd Bergmann,
	Jeremy Kerr

Geert Uytterhoeven wrote:
> On Sun, 23 Dec 2007, Christoph Hellwig wrote:
>> Strong NACK for fs/spufs/  fs code is the smallest part of the spu
>> support, and all this nasty lowlevel code doesn't belong into fs/ at
>> all.
> 
> drivers/spu/?
> 

arch/spu/?

-- 

Luca Barbato
Gentoo Council Member
Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero

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

* Re: Time for cell code reshuffle?
  2007-12-22 21:00     ` Benjamin Herrenschmidt
@ 2007-12-26 11:42       ` Ishizaki Kou
  2007-12-26 22:32         ` Arnd Bergmann
  0 siblings, 1 reply; 14+ messages in thread
From: Ishizaki Kou @ 2007-12-26 11:42 UTC (permalink / raw)
  To: benh; +Cc: linuxppc-dev, paulus, cbe-oss-dev, arnd, jk

Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> On Fri, 2007-12-21 at 20:15 +0100, Arnd Bergmann wrote:
> > > It seems platforms/cell should have the shared and/or generic code,
> > and the other
> > > stuff moved into a new platform directory, but is it worth the
> > effort? 
> > 
> > There is very little code in platforms/cell that can not be generic,
> > so I think
> > it's not worth splitting it. The only IBM blade specific files are
> > cbe_cpufreq_pmi.c and parts of setup.c and pervasive.c. Everything
> > else could
> > be shared by about any generic implementation without a hypervisor.
> 
> Another option is to have:
> 
> platforms/celleb -> platforms/beat
> 
> and withing platforms/cell, rename blade specific files to
> something (can't find what, works on CAB too) and add celleb
> "bare metal" files.
> 
> A platform directly doesn't have to deal with one platform. For example,
> platforms/44x contains a lot of board support.
> 
> Now, one question is how far can we merge celleb support with the common
> blade/CAB code...

Celleb-native needs own machine definition and setup code due to HW
and FW deferences between CellBlade and Celleb. Of course, because
Celleb-native and Celleb-Beat use some codes commonly, we need a place
to put Celleb common codes.

But I don't know your idea is better or not.

Best regards,
Kou Ishizaki

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

* Re: Time for cell code reshuffle?
  2007-12-26 11:42       ` Ishizaki Kou
@ 2007-12-26 22:32         ` Arnd Bergmann
  0 siblings, 0 replies; 14+ messages in thread
From: Arnd Bergmann @ 2007-12-26 22:32 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: jk, paulus, cbe-oss-dev

On Wednesday 26 December 2007, Ishizaki Kou wrote:
> Celleb-native needs own machine definition and setup code due to HW
> and FW deferences between CellBlade and Celleb. Of course, because
> Celleb-native and Celleb-Beat use some codes commonly, we need a place
> to put Celleb common codes.
> 
> But I don't know your idea is better or not.

The two more sensible options I can see are

* leave everything where it is, live with the problem that the
  separation between celleb-native, celleb-beat and ibm-native
  is unclear.
* put both celleb and the ibm blades into the cell subdirectory,
  now with three different machine descriptions in there and only
  make sure that platforms/cell doesn't share any code with ps3,
  which is more clearly separated already (once we move spufs out).

I'm fine either way, and will accept patches from Toshiba to merge
the two directories if you prefer that, but I won't do it myself.

	Arnd <><

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

end of thread, other threads:[~2007-12-26 22:32 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-21 14:22 Time for cell code reshuffle? Arnd Bergmann
2007-12-21 17:23 ` Geoff Levand
2007-12-21 19:15   ` Arnd Bergmann
2007-12-22 21:00     ` Benjamin Herrenschmidt
2007-12-26 11:42       ` Ishizaki Kou
2007-12-26 22:32         ` Arnd Bergmann
2007-12-22 20:58   ` Benjamin Herrenschmidt
2007-12-22 21:11     ` Josh Boyer
2007-12-22 21:21       ` Benjamin Herrenschmidt
2007-12-22 20:57 ` Benjamin Herrenschmidt
2007-12-23  3:47 ` [Cbe-oss-dev] " Jeremy Kerr
2007-12-23 12:35   ` Christoph Hellwig
2007-12-23 14:06     ` Geert Uytterhoeven
2007-12-23 17:14       ` Luca Barbato

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