* Re: [RFC/PATCH 00/59] Make common x86 arch area for i386 and x86_64
2007-03-13 21:39 ` [RFC/PATCH 00/59] Make common x86 arch area for i386 and x86_64 Linus Torvalds
@ 2007-03-14 1:02 ` Steven Rostedt
2007-03-14 10:12 ` Andi Kleen
2007-03-14 12:49 ` Ingo Molnar
2 siblings, 0 replies; 7+ messages in thread
From: Steven Rostedt @ 2007-03-14 1:02 UTC (permalink / raw)
To: Linus Torvalds
Cc: linux-kernel, Andrew Morton, Ingo Molnar, Chris Wright,
Rusty Russell, Andi Kleen, Glauber de Oliveira Costa
On Tue, 2007-03-13 at 14:39 -0700, Linus Torvalds wrote:
>
> On Tue, 13 Mar 2007, Steven Rostedt wrote:
> >
> > What we have currently is a bunch of hacks. Seems that people can't make
> > up their mind to what to do.
>
> I don't mind the patches, but I'd be a lot happier if it also was a stated
> intention to actually make it be buildable as "x86", the same way that the
> separate 32-bit and 64-bit POWER architectures were merged into just one
> architecture that could be built either way.
That's actually a larger goal, but for the immediate future, I figure
this would be a good first step. Start out by stating what's similar,
and then build off of this for something bigger. But in the mean time,
we can have a staging ground for work that's for both i386 and x86_64
archs. And for those that know these systems in a more intimate way
(Andi :) they can work off of this to make that monster.
-- Steve
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFC/PATCH 00/59] Make common x86 arch area for i386 and x86_64
2007-03-13 21:39 ` [RFC/PATCH 00/59] Make common x86 arch area for i386 and x86_64 Linus Torvalds
2007-03-14 1:02 ` Steven Rostedt
@ 2007-03-14 10:12 ` Andi Kleen
2007-03-14 22:05 ` Rusty Russell
2007-03-14 12:49 ` Ingo Molnar
2 siblings, 1 reply; 7+ messages in thread
From: Andi Kleen @ 2007-03-14 10:12 UTC (permalink / raw)
To: Linus Torvalds
Cc: Steven Rostedt, linux-kernel, Andrew Morton, Ingo Molnar,
Chris Wright, Rusty Russell, Glauber de Oliveira Costa
On Tue, Mar 13, 2007 at 02:39:33PM -0700, Linus Torvalds wrote:
>
>
> On Tue, 13 Mar 2007, Steven Rostedt wrote:
> >
> > What we have currently is a bunch of hacks. Seems that people can't make
> > up their mind to what to do.
I think they work fine. I don't like such large scale renaming -- they
are a pain for anybody with external patches and make regression hunting
later painful. And the gain is about zero as far as I can see.
It won't fix a single bug, just cause pain.
>
> I don't mind the patches, but I'd be a lot happier if it also was a stated
> intention to actually make it be buildable as "x86", the same way that the
> separate 32-bit and 64-bit POWER architectures were merged into just one
> architecture that could be built either way.
I've thought about it, but it would be a lot of work and regression
test on old hardware would be a nightmare.
Besides still x86-64 is a lot cleaner than i386 and imho
easier to hack and with all the 32bit quirks readded it would probably
become worse than current i386. The only good option would be
a "modern 32bit only" but even that gets complicated quickly when
you consider all the corner cases. And a clean 32bit port wouldn't
cover enough hardware to be usable by distributions.
And I also don't have really time to work on that.
> The "32-bit code has legcay issues" thing that Andi complained about (eg
> there's no guarantee of a HPET on 32-bit x86) doesn't really change the
Most 64bit doesn't neither.
> fact that yes, we have to support those legacy issues *anyway*, and 64-bit
> x86 certainly has its set of issues already too.
Yes :/ The more supported systems, the more junk.
The recent nmi watchdog issues are a good example. All just because
a few vendors write crappy AML/SMM code.
> We've started to notice that the i386 build gets broken now that most
> developers tend to have newer CPU's and run mostly on x86-64 (and yes,
> that's me too), and while I don't think unifying things will guarantee
> that doesn't happen in the future, it will hopefully at least help make it
> not get much *worse*.
Build test would be needed anyways, doesn't make much difference I guess.
> As it is, the build environment has to know to pass in "-m32/-m64"
> anyway..
It already does that.
-Andi
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFC/PATCH 00/59] Make common x86 arch area for i386 and x86_64
2007-03-14 10:12 ` Andi Kleen
@ 2007-03-14 22:05 ` Rusty Russell
0 siblings, 0 replies; 7+ messages in thread
From: Rusty Russell @ 2007-03-14 22:05 UTC (permalink / raw)
To: Andi Kleen
Cc: Linus Torvalds, Steven Rostedt, linux-kernel, Andrew Morton,
Ingo Molnar, Chris Wright, Glauber de Oliveira Costa,
Paul Mackerras
On Wed, 2007-03-14 at 11:12 +0100, Andi Kleen wrote:
> On Tue, Mar 13, 2007 at 02:39:33PM -0700, Linus Torvalds wrote:
> >
> >
> > On Tue, 13 Mar 2007, Steven Rostedt wrote:
> > >
> > > What we have currently is a bunch of hacks. Seems that people can't make
> > > up their mind to what to do.
>
> I think they work fine.
My first instinct was to agree with Andi, or maybe have a "shared"
directory a-la x86/. But I had a fruitful discussion with the PowerPC
people, who went through (and are still completing) the transition to
one directory.
Their verdict, surprisingly, was definitely positive. They started with
a single powerpc dir which simply included ppc64/ or ppc/, then pulled
parts into that directory until ppc64/ was gone. The things left in
ppc/ are being slowly merged, and some may be dropped entirely.
They can obviously speak for themselves, but the cleanup caused by the
movement was seen as a net win.
Rusty.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFC/PATCH 00/59] Make common x86 arch area for i386 and x86_64
2007-03-13 21:39 ` [RFC/PATCH 00/59] Make common x86 arch area for i386 and x86_64 Linus Torvalds
2007-03-14 1:02 ` Steven Rostedt
2007-03-14 10:12 ` Andi Kleen
@ 2007-03-14 12:49 ` Ingo Molnar
2 siblings, 0 replies; 7+ messages in thread
From: Ingo Molnar @ 2007-03-14 12:49 UTC (permalink / raw)
To: Linus Torvalds
Cc: Steven Rostedt, linux-kernel, Andrew Morton, Chris Wright,
Rusty Russell, Andi Kleen, Glauber de Oliveira Costa
* Linus Torvalds <torvalds@linux-foundation.org> wrote:
> We've started to notice that the i386 build gets broken now that most
> developers tend to have newer CPU's and run mostly on x86-64 (and yes,
> that's me too), and while I don't think unifying things will guarantee
> that doesn't happen in the future, it will hopefully at least help
> make it not get much *worse*.
actually, even for 'cutting edge' testers, the number of 32-bit x86
systems outnumber the number of 64-bit test-systems by a factor of 5.
For distributions with real users, the ratio is closer to 1:10...
so i typically get bugs reported on 32-bit first, and for 64-bit it is
usually only reported if the bug is 64-bit /only/. That basic property
is true for both upstream, -rt and rawhide kernels.
Andi's x86 merge tree /does/ break quite often on 32-bit, but that's not
really due to testers, that's due to Andi being primarily the 64-bit
maintainer ;)
Ingo
^ permalink raw reply [flat|nested] 7+ messages in thread