* Re: The Plan
2001-11-07 11:35 The Plan Paul Mackerras
@ 2001-11-07 11:47 ` Geert Uytterhoeven
2001-11-07 11:50 ` Paul Mackerras
2001-11-07 20:41 ` Val Henson
2001-11-07 12:09 ` Matt Porter
` (4 subsequent siblings)
5 siblings, 2 replies; 16+ messages in thread
From: Geert Uytterhoeven @ 2001-11-07 11:47 UTC (permalink / raw)
To: Paul Mackerras; +Cc: Linux/PPC Development
On Wed, 7 Nov 2001, Paul Mackerras wrote:
> - Files which relate only to one platform, or a small number of
> platforms, move to arch/ppc/platforms. (There are some minor
> exceptions to this rule which we can discuss if people are
> concerned.) We end up with:
Why not move platform-specific files to arch/ppc/<platform>/ instead?
Your solution reduces the clutter only by a factor of 2, while creating
platform-specific directories reduces it by a factor of n.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: The Plan
2001-11-07 11:47 ` Geert Uytterhoeven
@ 2001-11-07 11:50 ` Paul Mackerras
2001-11-07 22:19 ` Frank Rowand
2001-11-07 20:41 ` Val Henson
1 sibling, 1 reply; 16+ messages in thread
From: Paul Mackerras @ 2001-11-07 11:50 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Linux/PPC Development
Geert Uytterhoeven writes:
> Why not move platform-specific files to arch/ppc/<platform>/ instead?
>
> Your solution reduces the clutter only by a factor of 2, while creating
> platform-specific directories reduces it by a factor of n.
But adds n extra directories, most of which would only have 2 or 3
files in them, thereby cluttering up arch/ppc.
Paul.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: The Plan
2001-11-07 11:50 ` Paul Mackerras
@ 2001-11-07 22:19 ` Frank Rowand
0 siblings, 0 replies; 16+ messages in thread
From: Frank Rowand @ 2001-11-07 22:19 UTC (permalink / raw)
To: paulus; +Cc: Geert Uytterhoeven, Linux/PPC Development
Paul Mackerras wrote:
>
> Geert Uytterhoeven writes:
>
> > Why not move platform-specific files to arch/ppc/<platform>/ instead?
> >
> > Your solution reduces the clutter only by a factor of 2, while creating
> > platform-specific directories reduces it by a factor of n.
>
> But adds n extra directories, most of which would only have 2 or 3
> files in them, thereby cluttering up arch/ppc.
One advantage of having arch/ppc/<platform>/ is that it allows for
the possibility of arch/ppc/platform/, which is a link to the
specific <platform> which is being built. This would be similar
to the way that include/asm/ is a link to include/asm-<architecture>/
-Frank
--
Frank Rowand <frank_rowand@mvista.com>
MontaVista Software, Inc
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: The Plan
2001-11-07 11:47 ` Geert Uytterhoeven
2001-11-07 11:50 ` Paul Mackerras
@ 2001-11-07 20:41 ` Val Henson
2001-11-08 0:24 ` Mark A. Greer
1 sibling, 1 reply; 16+ messages in thread
From: Val Henson @ 2001-11-07 20:41 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Paul Mackerras, Linux/PPC Development
On Wed, Nov 07, 2001 at 12:47:33PM +0100, Geert Uytterhoeven wrote:
>
> On Wed, 7 Nov 2001, Paul Mackerras wrote:
> > - Files which relate only to one platform, or a small number of
> > platforms, move to arch/ppc/platforms. (There are some minor
> > exceptions to this rule which we can discuss if people are
> > concerned.) We end up with:
>
> Why not move platform-specific files to arch/ppc/<platform>/ instead?
>
> Your solution reduces the clutter only by a factor of 2, while creating
> platform-specific directories reduces it by a factor of n.
I agree with Geert. I don't think that dividing the clutter into two
directories instead of one really improves matters. Each directory is
still monstrously huge and the division is non-obvious.
arch/ppc/masochist would be easier to understand. :)
What is the problem we're trying to solve here?
-VAL
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: The Plan
2001-11-07 20:41 ` Val Henson
@ 2001-11-08 0:24 ` Mark A. Greer
2001-11-08 0:26 ` Mark A. Greer
0 siblings, 1 reply; 16+ messages in thread
From: Mark A. Greer @ 2001-11-08 0:24 UTC (permalink / raw)
To: Val Henson; +Cc: Geert Uytterhoeven, Paul Mackerras, Linux/PPC Development
Val Henson wrote:
> I agree with Geert. I don't think that dividing the clutter into two
> directories instead of one really improves matters. Each directory is
> still monstrously huge and the division is non-obvious.
> arch/ppc/masochist would be easier to understand. :)
Yeah but if you do it the other way, you end up with a directory with a
clutter of subdirs--exchanged one clutter for another.
> What is the problem we're trying to solve here?
Hmmm, clutter I suppose but to be honest I don't have a problem with the way
it is now...
Mark
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: The Plan
2001-11-08 0:24 ` Mark A. Greer
@ 2001-11-08 0:26 ` Mark A. Greer
0 siblings, 0 replies; 16+ messages in thread
From: Mark A. Greer @ 2001-11-08 0:26 UTC (permalink / raw)
To: Val Henson, Geert Uytterhoeven, Paul Mackerras,
Linux/PPC Development
"Mark A. Greer" wrote:
> Hmmm, clutter I suppose but to be honest I don't have a problem with the way
> it is now...
That is as long as everyone uses descriptive file names.
Now that I think about it a little more, I do like the platforms dir
idea...separates board-specific code from more generic infracture code (e.g.,
bridge code, todc, head.S)
Mark
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: The Plan
2001-11-07 11:35 The Plan Paul Mackerras
2001-11-07 11:47 ` Geert Uytterhoeven
@ 2001-11-07 12:09 ` Matt Porter
2001-11-07 17:44 ` Mark A. Greer
` (3 subsequent siblings)
5 siblings, 0 replies; 16+ messages in thread
From: Matt Porter @ 2001-11-07 12:09 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linuxppc-dev
On Wed, Nov 07, 2001 at 10:35:07PM +1100, Paul Mackerras wrote:
>
> (to reduce the arch/ppc/kernel clutter, that is)
<snip>
> We can discuss variations on this theme, for example we could possibly
> move platforms/iSeries* to iSeries/, since it already has its own
> directory. As the number of platforms grows, we can consider moving
> other groups of platforms into their own directories as well.
Sounds great to me. I'd like to fold a number of embedded 7xx/74xx
system files into directories by their manufacturer names.
arch/ppc/kernel/platforms/Motorola/
sandpoint_*
mvme5100_*
mcp765_*
etc.
arch/ppc/kernel/platforms/Force/
pcore_*
powerpmc_*
etc.
arch/ppc/kernel/platforms/xyz/
...
The next step (since we've all been working away at abstracting
our common interfaces) is to collapse the *_[setup|pci].c files
in a single file to further reduce clutter on those systems for
which it makes practical sense. Again, that's most of our
embedded 7xx/74xx/8240 ports.
--
Matt Porter
MontaVista Software, Inc.
mporter@mvista.com
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: The Plan
2001-11-07 11:35 The Plan Paul Mackerras
2001-11-07 11:47 ` Geert Uytterhoeven
2001-11-07 12:09 ` Matt Porter
@ 2001-11-07 17:44 ` Mark A. Greer
2001-11-08 0:41 ` Mark A. Greer
` (2 subsequent siblings)
5 siblings, 0 replies; 16+ messages in thread
From: Mark A. Greer @ 2001-11-07 17:44 UTC (permalink / raw)
To: paulus; +Cc: linuxppc-dev
Paul Mackerras wrote:
> This is what I am thinking of; I have implemented it locally here and
> I'm doing test compiles with arch/ppc/configs/*.
>
> - arch/ppc/kernel/ppc_asm.h moves to include/asm-ppc, and the contents
> of ppc_asm.tmpl get folded into it, with corresponding changes to
> arch/ppc/*/*.S.
>
> - Files which relate only to one platform, or a small number of
> platforms, move to arch/ppc/platforms. (There are some minor
> exceptions to this rule which we can discuss if people are
> concerned.) We end up with:
I like this too. Seems like a good compromise between one dir with a
bunch of files and a bunch of dirs each with a couple files.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: The Plan
2001-11-07 11:35 The Plan Paul Mackerras
` (2 preceding siblings ...)
2001-11-07 17:44 ` Mark A. Greer
@ 2001-11-08 0:41 ` Mark A. Greer
2001-11-08 2:51 ` Paul Mackerras
2001-11-08 0:48 ` Mark A. Greer
2001-11-08 11:14 ` Chris Emerson
5 siblings, 1 reply; 16+ messages in thread
From: Mark A. Greer @ 2001-11-08 0:41 UTC (permalink / raw)
To: paulus; +Cc: linuxppc-dev
Paul,
I would move harrier.c and pplus_common.c to the "kernel" dir since they
are both bridge related files (kinda like the mpc10x_common.c file).
Mark
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: The Plan
2001-11-08 0:41 ` Mark A. Greer
@ 2001-11-08 2:51 ` Paul Mackerras
2001-11-08 19:08 ` Mark A. Greer
0 siblings, 1 reply; 16+ messages in thread
From: Paul Mackerras @ 2001-11-08 2:51 UTC (permalink / raw)
To: Mark A. Greer; +Cc: linuxppc-dev
Mark A. Greer writes:
> I would move harrier.c and pplus_common.c to the "kernel" dir since they
> are both bridge related files (kinda like the mpc10x_common.c file).
I wondered about pplus_common.c, actually. Are pplus_common.c and
harrier.c likely to be used by more than one or two platforms in the
future? If we leave them in kernel then we need to move the
corresponding header files to include/asm-ppc.
BTW, I would love to find a way to move all the platform-specific
files (mvme5100.h, for instance) from include/asm-ppc to
arch/ppc/platforms too. The obstacle at the moment is the serial
stuff.
Paul.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: The Plan
2001-11-08 2:51 ` Paul Mackerras
@ 2001-11-08 19:08 ` Mark A. Greer
0 siblings, 0 replies; 16+ messages in thread
From: Mark A. Greer @ 2001-11-08 19:08 UTC (permalink / raw)
To: paulus; +Cc: linuxppc-dev
Paul Mackerras wrote:
> Mark A. Greer writes:
>
> > I would move harrier.c and pplus_common.c to the "kernel" dir since they
> > are both bridge related files (kinda like the mpc10x_common.c file).
>
> I wondered about pplus_common.c, actually. Are pplus_common.c and
> harrier.c likely to be used by more than one or two platforms in the
> future?
Depends what you mean by "platform".
Basically, most of the older MCG boards will use pplus_common.c (supports
falcon/raven and hawk); most of the newer ones will use the harrier. It
depends on whether the MCG boards are supported by one or two "board ports"
or if each board has its own "board port". Lately, we've been separating
them out because there have been more significant differences between the
various boards and having things like residual data are not assured anymore
(or residual data that's close to correct).
Any comments Matt?
> If we leave them in kernel then we need to move the
> corresponding header files to include/asm-ppc.
> BTW, I would love to find a way to move all the platform-specific
> files (mvme5100.h, for instance) from include/asm-ppc to
> arch/ppc/platforms too. The obstacle at the moment is the serial
> stuff.
Sounds like the right place to me too.
Mark
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: The Plan
2001-11-07 11:35 The Plan Paul Mackerras
` (3 preceding siblings ...)
2001-11-08 0:41 ` Mark A. Greer
@ 2001-11-08 0:48 ` Mark A. Greer
2001-11-08 1:12 ` Tom Rini
2001-11-08 11:14 ` Chris Emerson
5 siblings, 1 reply; 16+ messages in thread
From: Mark A. Greer @ 2001-11-08 0:48 UTC (permalink / raw)
To: paulus; +Cc: linuxppc-dev
ok, last one:
My guess is to also move cpc700*, cpc710*, sleep.S (in addition to pplus*
and harrier*).
A separate question...isn't prep_time.c obsolete with todc_time.c? What
about chrp_time.c and others?
YES, I need to make it mp-safe (as Tom requested). I will do that soon.
Mark
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: The Plan
2001-11-07 11:35 The Plan Paul Mackerras
` (4 preceding siblings ...)
2001-11-08 0:48 ` Mark A. Greer
@ 2001-11-08 11:14 ` Chris Emerson
2001-11-08 12:07 ` Geert Uytterhoeven
5 siblings, 1 reply; 16+ messages in thread
From: Chris Emerson @ 2001-11-08 11:14 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linuxppc-dev
On Wed, Nov 07, 2001 at 10:35:07PM +1100, Paul Mackerras wrote:
> (to reduce the arch/ppc/kernel clutter, that is)
>
> This is what I am thinking of; I have implemented it locally here and
> I'm doing test compiles with arch/ppc/configs/*.
>
> - arch/ppc/kernel/ppc_asm.h moves to include/asm-ppc, and the contents
> of ppc_asm.tmpl get folded into it, with corresponding changes to
> arch/ppc/*/*.S.
This sounds like a good thing for the user-mode port, which tries to use
a couple of the assembler files from arch/ppc. There's some hideous symlink
hackery going on to get them to work at the moment. If it's all just in
include/asm-ppc, that should be much nicer.
Cheers,
Chris
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: The Plan
2001-11-08 11:14 ` Chris Emerson
@ 2001-11-08 12:07 ` Geert Uytterhoeven
0 siblings, 0 replies; 16+ messages in thread
From: Geert Uytterhoeven @ 2001-11-08 12:07 UTC (permalink / raw)
To: Chris Emerson; +Cc: Paul Mackerras, Linux/PPC Development
On Thu, 8 Nov 2001, Chris Emerson wrote:
> On Wed, Nov 07, 2001 at 10:35:07PM +1100, Paul Mackerras wrote:
> > (to reduce the arch/ppc/kernel clutter, that is)
> >
> > This is what I am thinking of; I have implemented it locally here and
> > I'm doing test compiles with arch/ppc/configs/*.
> >
> > - arch/ppc/kernel/ppc_asm.h moves to include/asm-ppc, and the contents
> > of ppc_asm.tmpl get folded into it, with corresponding changes to
> > arch/ppc/*/*.S.
>
> This sounds like a good thing for the user-mode port, which tries to use
> a couple of the assembler files from arch/ppc. There's some hideous symlink
> hackery going on to get them to work at the moment. If it's all just in
> include/asm-ppc, that should be much nicer.
Both MIPS and ARM have board-specific directories in include/asm-*/ and
arch/*/.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 16+ messages in thread