From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 5202 invoked from network); 20 Mar 2000 21:21:39 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 20 Mar 2000 21:21:39 -0000 Received: from zmamail01.zma.compaq.com (zmamail01.zma.compaq.com [161.114.64.101]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id QAA14867 for ; Mon, 20 Mar 2000 16:21:39 -0500 Received: by zmamail01.zma.compaq.com (Postfix, from userid 12345) id A2D9BC96; Mon, 20 Mar 2000 16:21:08 -0500 (EST) Received: from perf.zko.dec.com (perf.zko.dec.com [16.31.144.83]) by zmamail01.zma.compaq.com (Postfix) with ESMTP id 57593C93; Mon, 20 Mar 2000 16:21:08 -0500 (EST) Received: from localhost by perf.zko.dec.com (8.8.8/1.1.10.5/07Mar97-1056AM) id QAA0000022450; Mon, 20 Mar 2000 16:20:57 -0500 (EST) Date: Mon, 20 Mar 2000 16:20:57 -0500 (EST) From: Phillip Ezolt To: werner@darkwing.uoregon.edu Cc: axp-list@redhat.com, Linus Torvalds Subject: Re: patch for include/asm-alpha/cache.h In-Reply-To: <38D6915B.BDEDB59D@darkwing.uoregon.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 >