lkml.org 
[lkml]   [2003]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Support worst case cache line sizes as config option
On Mon, Apr 28, 2003 at 01:47:17PM +0200, Andi Kleen wrote:
> On Mon, Apr 28, 2003 at 11:16:16AM +0200, Adrian Bunk wrote:
> > Your X86_GENERIC is semantically equivalent to M386.
>
> M386 is tuning for the Intel 386
>
> X86_GENERIC is "try to tune for all CPUs if possible"

M386 says that the minimum CPU supported is the 386 - and all CPUs
above are supported, too. E.g.:

config X86_PPRO_FENCE
bool
depends on M686 || M586MMX || M586TSC || M586 || M486 || M386
default y

config X86_F00F_BUG
bool
depends on M586MMX || M586TSC || M586 || M486 || M386
default y


> > This doesn't work. E.g. MPENTIUMIII has the semantics of "support
> > Pentium-III and above". If you want to compile a kernel that runs on
> > both a Pentium-III and a Pentium-4 you choose MPENTIUMIII which implies
> > X86_L1_CACHE_SHIFT=5 ...
>
> Admittedly the other options could be changed to
>
> default "4" if (MELAN || M486 || M386) && !X86_GENERIC
>
> but that looked a bit too ugly and it seems to work even without.

Your approach as well as the approach I'm currently working on breaks
the current semantics that a plain M386 produces a kernel that runs on
all CPUs.

> -Andi

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.072 / U:1.988 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site