Date: Sat, 31 May 1997 21:52:00 +0900 From: KATO Takenori <kato@eclogite.eps.nagoya-u.ac.jp> To: se@freebsd.org Cc: asami@vader.cs.berkeley.edu, kato@eclogite.eps.nagoya-u.ac.jp, roberto@keltia.freenix.fr, hardware@freebsd.org Subject: Re: Intel Pentium II released Message-ID: <199705311252.VAA00623@gneiss.eps.nagoya-u.ac.jp> In-Reply-To: Your message of "Thu, 29 May 1997 00:24:06 %2B0200" References: <19970529002406.34366@x14.mi.uni-koeln.de>
next in thread | previous in thread | raw e-mail | index | archive | help
From: Stefan Esser <se@freebsd.org>
Subject: Re: Intel Pentium II released
Date: Thu, 29 May 1997 00:24:06 +0200
> Guess this is the write-allocate feature of the primary cache,
Thanks. I found information for write-allocate in the K6 data sheet
and made patch for 3.0-current.
Could someone test following patch?
---------- BEGIN ----------
*** machdep.c.ORIG Sat May 31 21:48:41 1997
--- machdep.c Sat May 31 21:48:36 1997
***************
*** 1384,1389 ****
--- 1384,1401 ----
avail_end + off, VM_PROT_ALL, TRUE);
msgbufmapped = 1;
+ #ifdef CPU_WCDE
+ if (strcmp(cpu_vendor, "AuthenticAMD") == 0 &&
+ (cpu_id & 0xff0) == 0x560) {
+ /* Enable cachebility detection to enable write allocate of K6 */
+ wrmsr(0xc0000082, (quad_t)(Maxmem / 512) | 0x80LL
+ #ifndef CPU_DISABLE_WA15M
+ | 1LL
+ #endif
+ );
+ }
+ #endif
+
#ifdef SMP
/* look for the MP hardware */
mp_probe();
---------- END ----------
New options CPU_WCDE enables write-allocate on K6 cpu.
----
KATO Takenori <kato@eclogite.eps.nagoya-u.ac.jp>
Dept. Earth Planet. Sci., Nagoya Univ., Nagoya, 464-01, Japan
PGP public key: finger kato@eclogite.eps.nagoya-u.ac.jp
------------------- Powered by FreeBSD(98) -------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705311252.VAA00623>
