Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Phillip Ezolt <ezolt@perf.zko.dec.com>
To: werner@darkwing.uoregon.edu
Cc: axp-list@redhat.com, Linus Torvalds <torvalds@transmeta.com>
Subject: Re: patch for include/asm-alpha/cache.h
Date: Mon, 20 Mar 2000 16:20:57 -0500 (EST)	[thread overview]
Message-ID: <Pine.OSF.3.96.1000320161629.3014G-100000@perf.zko.dec.com> (raw)
In-Reply-To: <38D6915B.BDEDB59D@darkwing.uoregon.edu>

Mike,
	I don't know exactly what you are trying to do, but won't this
make the generic-kernel case harder?  

In an ideal world, a generic kernel would be able to determine which type of
processor it is running on, and run optimally on that. 

Won't this patch require you to recompile your kernel for each alpha
implmentation?  (EV4 vs. EV5 vs. EV6)

Why not have them defined in all cases, and then properly select the
right value at run time?  Or is this not possible? 

--Phil

Compaq:  High Performance Server Division/Benchmark Performance Engineering 
---------------- Alpha, The Fastest Processor on Earth --------------------
Phillip.Ezolt@compaq.com        |C|O|M|P|A|Q|        ezolt@perf.zko.dec.com
------------------- See the results at www.spec.org -----------------------

On Mon, 20 Mar 2000 werner@darkwing.uoregon.edu wrote:

> Linus Torvalds wrote:
> 
> >
> > It's much better to have specific CONFIG_xxx options that are set
> > automatically depending on the CPU type (see, for example, the way the x86
> > stuff sets "CONFIG_X86_WP_WORKS_OK" or whatever we called those options).
> > That makes for much more readable code, and makes the configure scripts
> > work correctly on dependencies.
> >
> > So I'd suggest a CONFIG_L1_CACHELINE define for the size of the L1
> > cacheline instead of having CPU defines and then checking those.
> >
> >                 Linus
> 
> CONFIG_X86_WP_WORKS_OK only takes boolean values so I tried a compromise.
> I now use the config.h way, don't add any new CONFIG_xx options but still
> test cpu type in cache.h.
> It should work with i386 as well but I don't know how the cache lines vary
> across the many versions.
> 
> Yours,
> Mike
> 


  reply	other threads:[~2000-03-20 21:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.10.10003191931230.20342-100000@penguin.transmeta.com>
2000-03-20 21:00 ` patch for include/asm-alpha/cache.h werner
2000-03-20 21:20   ` Phillip Ezolt [this message]
2000-03-20  3:24 werner
2000-03-20 18:40 ` Richard Henderson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox