* new patch for EV6 cache line
@ 2000-03-23 5:16 werner
2000-03-23 7:31 ` Richard Henderson
0 siblings, 1 reply; 2+ messages in thread
From: werner @ 2000-03-23 5:16 UTC (permalink / raw)
To: torvalds, axp-list
[-- Attachment #1: Type: text/plain, Size: 75 bytes --]
This patch is what I think Linus wanted rather than cpu testing in
cache.h
[-- Attachment #2: config.in.diff --]
[-- Type: text/plain, Size: 1064 bytes --]
--- 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" \
[-- Attachment #3: cache.h.diff --]
[-- Type: text/plain, Size: 1441 bytes --]
--- 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 <linux/config.h>
+
+/* 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-03-23 7:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-23 5:16 new patch for EV6 cache line werner
2000-03-23 7:31 ` Richard Henderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox