From owner-freebsd-hackers Thu Sep 12 2:56:54 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7FF2D37B400 for ; Thu, 12 Sep 2002 02:56:48 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id CEA8A43E42 for ; Thu, 12 Sep 2002 02:56:47 -0700 (PDT) (envelope-from phoenix@minion.de) Received: from [212.227.126.162] (helo=mrelayng3.kundenserver.de) by moutng0.kundenserver.de with esmtp (Exim 3.35 #1) id 17pQiG-0006nv-00 for freebsd-hackers@freebsd.org; Thu, 12 Sep 2002 11:56:40 +0200 Received: from [80.144.51.16] (helo=chronos) by mrelayng3.kundenserver.de with asmtp (Exim 3.35 #1) id 17pQiG-0002fG-00 for freebsd-hackers@freebsd.org; Thu, 12 Sep 2002 11:56:40 +0200 Received: from phoenix by chronos with local (Exim 3.35 #1 (Debian)) id 17pNgo-0001Ni-00 for ; Thu, 12 Sep 2002 08:42:58 +0200 Date: Thu, 12 Sep 2002 08:42:58 +0200 From: Christian Zander To: freebsd-hackers@freebsd.org Subject: Pentium 4/i686 MTRRs Message-ID: <20020912084258.H673@chronos> Reply-To: Christian Zander Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="u3/rZRmxL6MmkK24" Content-Disposition: inline User-Agent: Mutt/1.3.22.1i X-Operating-System: GNU/Linux [2.4.19][i686] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --u3/rZRmxL6MmkK24 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, With several mentions of FreeBSD on/with Pentium 4s, I wanted to bring up one thing that I noticed. At this point, the i686 MTRR code in RELENG_4 doesn't recognize Pentium 4 or XEON processors. As far as I can tell from the documentation, they should be. The attached patch enables i686 MTRR support on these processors. -- christian zander zander@minion.de --u3/rZRmxL6MmkK24 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="p4_mtrr.diff" diff -ru cvs/4.6/i386/i386/i686_mem.c sys/i386/i386/i686_mem.c --- cvs/4.6/i386/i386/i686_mem.c Fri Jul 5 16:33:28 2002 +++ sys/i386/i386/i686_mem.c Fri Jul 5 16:52:59 2002 @@ -595,7 +595,7 @@ { /* Try for i686 MTRRs */ if ((cpu_feature & CPUID_MTRR) && - ((cpu_id & 0xf00) == 0x600) && + ((cpu_id & 0xf00) == 0x600 || (cpu_id & 0xf00) == 0xf00) && ((strcmp(cpu_vendor, "GenuineIntel") == 0) || (strcmp(cpu_vendor, "AuthenticAMD") == 0))) { mem_range_softc.mr_op = &i686_mrops; --u3/rZRmxL6MmkK24-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message