Date: Mon, 2 Oct 2000 01:11:58 +1100 (EST) From: john@pakprotector.com To: FreeBSD-gnats-submit@freebsd.org Subject: i386/21672: AMD Duron Rev. A0 reports incorrect L2 cache size Message-ID: <200010011411.e91EBwm00582@pacer.pakprotector.com>
next in thread | raw e-mail | index | archive | help
>Number: 21672
>Category: i386
>Synopsis: AMD Duron Rev. A0 reports incorrect L2 cache size
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Oct 01 07:20:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: John Saunders
>Release: FreeBSD 4.1-STABLE i386
>Organization:
NORTHLINK COMMUNICATIONS PTY LTD
>Environment:
AMD Duron Rev. A0 chip.
>Description:
There is errata with Rev. A0 AMD Duron in that it reports a L2 cache size of 1K
when it really should be 64K.
>How-To-Repeat:
Boot with the -v option with a Rev. A0 Duron.
>Fix:
Apply the following patch to implement AMD's suggestion solution.
--- sys/i386/i386/identcpu.c.orig Sat Sep 30 15:07:33 2000
+++ sys/i386/i386/identcpu.c Mon Oct 2 01:07:22 2000
@@ -918,9 +918,16 @@
printf(", %d bytes/line", regs[3] & 0xff);
printf(", %d lines/tag", (regs[3] >> 8) & 0xff);
print_AMD_assoc((regs[3] >> 16) & 0xff);
- if (amd_maxregs >= 0x80000006) { /* K6-III only */
+ if (amd_maxregs >= 0x80000006) { /* K6-III, K7 or later */
do_cpuid(0x80000006, regs);
- printf("L2 internal cache: %d kbytes", regs[2] >> 16);
+ /*
+ * Duron Rev. A0 incorrectly reports L2 cache size as 1K when it's 64K.
+ */
+ if ((cpu_id & 0xFF0) == 0x630) {
+ printf("L2 internal cache: 64 kbytes");
+ } else {
+ printf("L2 internal cache: %d kbytes", regs[2] >> 16);
+ }
printf(", %d bytes/line", regs[2] & 0xff);
printf(", %d lines/tag", (regs[2] >> 8) & 0x0f);
print_AMD_assoc((regs[2] >> 12) & 0x0f);
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010011411.e91EBwm00582>
