From owner-freebsd-hardware Sat May 31 05:52:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id FAA22681 for hardware-outgoing; Sat, 31 May 1997 05:52:10 -0700 (PDT) Received: from gneiss.eps.nagoya-u.ac.jp (gneiss.eps.nagoya-u.ac.jp [133.6.57.99]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA22675; Sat, 31 May 1997 05:52:05 -0700 (PDT) Received: from marble.eps.nagoya-u.ac.jp (localhost [127.0.0.1]) by gneiss.eps.nagoya-u.ac.jp (8.8.5/3.4W4) with ESMTP id VAA00623; Sat, 31 May 1997 21:52:01 +0900 (JST) Message-Id: <199705311252.VAA00623@gneiss.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 In-Reply-To: Your message of "Thu, 29 May 1997 00:24:06 +0200" References: <19970529002406.34366@x14.mi.uni-koeln.de> X-Mailer: Mew version 1.70 on Emacs 19.28.1 / Mule 2.3 X-PGP-Fingerprint: 03 72 85 36 62 46 23 03 52 B1 10 22 44 10 0D 9E Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sat, 31 May 1997 21:52:00 +0900 From: KATO Takenori Sender: owner-hardware@freebsd.org X-Loop: FreeBSD.org Precedence: bulk From: Stefan Esser 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 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) -------------------