From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 15609 invoked from network); 23 Mar 2000 05:16:57 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 23 Mar 2000 05:16:57 -0000 Received: from network-services.uoregon.edu (network-services.uoregon.edu [128.223.60.21]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id AAA20255 for ; Thu, 23 Mar 2000 00:16:57 -0500 From: werner@darkwing.uoregon.edu Received: from darkwing.uoregon.edu (ev6.uoregon.edu [128.223.23.31]) by network-services.uoregon.edu (8.9.3/8.9.3) with ESMTP id VAA21484; Wed, 22 Mar 2000 21:16:50 -0800 (PST) Sender: werner@network-services.uoregon.edu Message-ID: <38D9A8C1.125F3147@darkwing.uoregon.edu> Date: Wed, 22 Mar 2000 21:16:49 -0800 X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.3.99-pre3 alpha) X-Accept-Language: en MIME-Version: 1.0 To: torvalds@transmeta.com, axp-list@redhat.com Subject: new patch for EV6 cache line Content-Type: multipart/mixed; boundary="------------4D6A497E71F812C05BC3E622" This is a multi-part message in MIME format. --------------4D6A497E71F812C05BC3E622 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit This patch is what I think Linus wanted rather than cpu testing in cache.h --------------4D6A497E71F812C05BC3E622 Content-Type: text/plain; charset=us-ascii; name="config.in.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="config.in.diff" --- linux/arch/alpha/config.in.orig Wed Mar 22 20:57:38 2000 +++ linux/arch/alpha/config.in Wed Mar 22 21:00:59 2000 @@ -61,6 +61,7 @@ unset CONFIG_ALPHA_TSUNAMI CONFIG_ALPHA_MCPCIA unset CONFIG_ALPHA_IRONGATE unset CONFIG_ALPHA_BROKEN_IRQ_MASK +unset CONFIG_L1_CACHELINE # Most of these machines have ISA slots; not exactly sure which don't, # and this doesn't activate hordes of code, so do it always. define_bool CONFIG_ISA y @@ -68,6 +69,7 @@ if [ "$CONFIG_ALPHA_GENERIC" = "y" ] then define_bool CONFIG_PCI y + define_int CONFIG_L1_CACHELINE 32 fi if [ "$CONFIG_ALPHA_BOOK1" = "y" ] then @@ -155,6 +157,14 @@ define_bool CONFIG_PCI y define_bool CONFIG_ALPHA_EV6 y define_bool CONFIG_ALPHA_IRONGATE y +fi +if [ "$CONFIG_ALPHA_EV4" = "y" -o "$CONFIG_ALPHA_EV5" = "y" ] +then + define_int CONFIG_L1_CACHELINE 32 +fi +if [ "$CONFIG_ALPHA_EV6" = "y" ] +then + define_int CONFIG_L1_CACHELINE 64 fi if [ "$CONFIG_ALPHA_CABRIOLET" = "y" -o "$CONFIG_ALPHA_AVANTI" = "y" \ -o "$CONFIG_ALPHA_EB64P" = "y" -o "$CONFIG_ALPHA_JENSEN" = "y" \ --------------4D6A497E71F812C05BC3E622 Content-Type: text/plain; charset=us-ascii; name="cache.h.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="cache.h.diff" --- linux/include/asm-alpha/cache.h.orig Wed Mar 22 21:07:52 2000 +++ linux/include/asm-alpha/cache.h Wed Mar 22 21:03:40 2000 @@ -1,12 +1,35 @@ /* * include/asm-alpha/cache.h + * */ + #ifndef __ARCH_ALPHA_CACHE_H #define __ARCH_ALPHA_CACHE_H -/* Bytes per L1 (data) cache line. Both EV4 and EV5 are write-through, - read-allocate, direct-mapped, physical. */ -#define L1_CACHE_BYTES 32 +#include + +/* L1_CACHE_BYTES is Bytes per L1 (data) cache line. */ + +/* + * EV5 has a dual-read-ported, single-write-ported, 8KB data cache. + * It is a write-through, read-allocate, direct-mapped, physical cache + * with 32-byte blocks. + * See 21164 and 21164PC Alpha Microprocessor Data Sheets. + */ + +/* + * EV6 has a virtually-indexed, physically-tagged two-way associative + * write-back, read/write allocate 64KB data cache. + * See 21264 Alpha Microprocessor Data Sheet at + * http://ftp.digital.com/pub/Digital/info/semiconductor/literature/dsc-library.html + * + * Avoid touching data that is 32KB apart. + * The 21264 can have only one memory operation in progress at a time + * that maps to any one cache index. Otherwise a replay trap may result. + * See 21264 Compilers Writers Guide for more information. + */ + +#define L1_CACHE_BYTES CONFIG_L1_CACHELINE #define L1_CACHE_ALIGN(x) (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1)) #define SMP_CACHE_BYTES L1_CACHE_BYTES --------------4D6A497E71F812C05BC3E622--