Re: [git pull] x86 fixes

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: H. Peter Anvin <hpa@...>
Cc: x86 maintainers <x86@...>, Andrew Morton <akpm@...>, Linux Kernel Mailing List <linux-kernel@...>
Date: Monday, September 8, 2008 - 2:04 pm

On Mon, 8 Sep 2008, H. Peter Anvin wrote:

Ok, so after having realized that this seems to be more about a bug with 
gcc, I'm really not as convinced any more.

As far as I can tell, there are three issues:

 - "-mtune=core/core2/pentium4/.." is buggy in some gas/gcc versions on 
   x86-32, and makes architectural choices.

   Any actual _released_ versions? Maybe it's just a current SVN issue?

   Workaround: don't use it. And yes, X86_GENERIC=y will do that, although 
   quite frankly that seems to be dubious in itself. But quite frankly, 
   it's a gcc bug, and we should see it as such.

   The better workaround may well be "-Wa,-mtune=generic" as you pointed 
   out.

 - We do the CONFIG_P6_NOPL thing ourselves, and we should just stop 
   doing that on 32-bit. There simply isn't a good enough reason to do so. 
   I already posteed the Kconfig.cpu patch to just stop doing it.

 - X86_GENERIC means _other_ things too, like doing a 128-bit cacheline 
   just so that it won't suck horribly on P4's even if it's otherwise 
   tuned for a good microarchitecture.

And they really do seem to be _separate_ issues. Do we really want to tie 
these things together under X86_GENERIC? 

		Linus
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[git pull] x86 fixes, H. Peter Anvin, (Mon Sep 8, 1:52 pm)
Re: [git pull] x86 fixes, Linus Torvalds, (Mon Sep 8, 2:04 pm)
Re: [git pull] x86 fixes, Adrian Bunk, (Tue Sep 9, 12:57 pm)
Re: [git pull] x86 fixes, H. Peter Anvin, (Tue Sep 9, 1:03 pm)
Re: [git pull] x86 fixes, Adrian Bunk, (Tue Sep 9, 1:43 pm)
Re: [git pull] x86 fixes, H. Peter Anvin, (Tue Sep 9, 2:12 pm)
Re: [git pull] x86 fixes, H. Peter Anvin, (Mon Sep 8, 2:22 pm)
Re: [git pull] x86 fixes, Arjan van de Ven, (Mon Sep 8, 2:46 pm)
Re: [git pull] x86 fixes, Andi Kleen, (Mon Sep 8, 6:43 pm)
Re: [git pull] x86 fixes, H. Peter Anvin, (Mon Sep 8, 2:51 pm)
Re: [git pull] x86 fixes, Ingo Molnar, (Mon Sep 8, 3:02 pm)
Re: [git pull] x86 fixes, , (Mon Sep 8, 4:25 pm)
Re: [git pull] x86 fixes, Ingo Molnar, (Tue Sep 9, 3:27 am)
Re: [git pull] x86 fixes, Linus Torvalds, (Mon Sep 8, 3:30 pm)
Re: [git pull] x86 fixes, Adrian Bunk, (Tue Sep 9, 12:05 pm)
Re: [git pull] x86 fixes, Linus Torvalds, (Tue Sep 9, 12:15 pm)
Re: [git pull] x86 fixes, Krzysztof Halasa, (Mon Sep 8, 7:17 pm)
Re: [git pull] x86 fixes, Andi Kleen, (Tue Sep 9, 6:24 am)
Re: [git pull] x86 fixes, Mark Lord, (Tue Sep 9, 1:17 pm)
Re: [git pull] x86 fixes, Andi Kleen, (Tue Sep 9, 2:40 pm)
Re: [git pull] x86 fixes, Mark Lord, (Tue Sep 9, 1:48 pm)
Re: [git pull] x86 fixes, H. Peter Anvin, (Tue Sep 9, 1:19 pm)
Re: [git pull] x86 fixes, H. Peter Anvin, (Tue Sep 9, 1:01 pm)
Re: [git pull] x86 fixes, Linus Torvalds, (Tue Sep 9, 10:54 am)
Re: [git pull] x86 fixes, Arjan van de Ven, (Mon Sep 8, 2:42 pm)
Re: [git pull] x86 fixes, Arjan van de Ven, (Mon Sep 8, 3:55 pm)
Re: [git pull] x86 fixes, H. Peter Anvin, (Mon Sep 8, 4:14 pm)
Re: [git pull] x86 fixes, Linus Torvalds, (Mon Sep 8, 2:17 pm)
Re: [git pull] x86 fixes, Andi Kleen, (Mon Sep 8, 6:42 pm)