From yasu@home.utahime.org  Thu Aug 14 07:04:59 2003
Return-Path: <yasu@home.utahime.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 621E637B401
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 14 Aug 2003 07:04:59 -0700 (PDT)
Received: from utahime.as.wakwak.ne.jp (utahime.as.wakwak.ne.jp [61.205.238.40])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 87B6C43FAF
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 14 Aug 2003 07:04:58 -0700 (PDT)
	(envelope-from yasu@home.utahime.org)
Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1])
	by utahime.as.wakwak.ne.jp (Postfix) with ESMTP id 9791D76
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 14 Aug 2003 23:04:56 +0900 (JST)
Received: from 127.0.0.1 (localhost.home.utahime.org [127.0.0.1])
	by localhost-backdoor.home.utahime.org (Postfix) with SMTP
	id 65D8854B4; Thu, 14 Aug 2003 23:04:56 +0900 (JST)
Received: by eastasia.home.utahime.org (Postfix, from userid 1000)
	id 55D1854AC; Thu, 14 Aug 2003 23:04:56 +0900 (JST)
Message-Id: <20030814140456.55D1854AC@eastasia.home.utahime.org>
Date: Thu, 14 Aug 2003 23:04:56 +0900 (JST)
From: KIMURA Yasuhiro <yasu@utahime.org>
Reply-To: KIMURA Yasuhiro <yasu@utahime.org>
To: FreeBSD-gnats-submit@freebsd.org
Subject: identcpu.c patch for VIA C3
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         55581
>Category:       i386
>Synopsis:       identcpu.c patch for VIA C3
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-i386
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 14 07:10:16 PDT 2003
>Closed-Date:    Fri Aug 15 00:06:26 MDT 2003
>Last-Modified:  Fri Aug 15 00:06:26 MDT 2003
>Originator:     KIMURA Yasuhiro
>Release:        FreeBSD 4.8-RELEASE-p3 i386
>Organization:
>Environment:
System: FreeBSD eastasia.home.utahime.org 4.8-RELEASE-p3 FreeBSD 4.8-RELEASE-p3 #2: Thu Aug 14 22:22:48 JST 2003 yasu@eastasia.home.utahime.org:/usr/obj/usr1/cvsup/releng_4_8/src/sys/EASTASIA i386


	
>Description:
	This patch make FreeBSD identify some newer version of VIA C3.
	It is for RELENG_4_8 source tree but should also be applicable
	to RELENG_4 and HEAD.
	The information about Samuel2, Ezra and Ezra-T is from official
	datasheet found at following URL, and that about Nehemiah is
	from output of dmesg generated by my Nehemiah box.

	http://www.via.com.tw/en/Products/C3/C3_EGBA_datasheet.zip

>How-To-Repeat:
	
>Fix:

	

--- identcpu.VIA-C3.patch begins here ---
--- /usr/src/sys/i386/i386/identcpu.c.dist	Wed Apr 23 08:59:55 2003
+++ /usr/src/sys/i386/i386/identcpu.c	Thu Aug 14 22:15:47 2003
@@ -523,7 +523,16 @@
 			strcpy(cpu_model, "IDT WinChip 2");
 			break;
 		case 0x670:
-			strcpy(cpu_model, "VIA C3 Samuel 2");
+			if (cpu_id & 0x8)
+				strcpy(cpu_model, "VIA C3 Ezra");
+			else
+				strcpy(cpu_model, "VIA C3 Samuel 2");
+			break;
+		case 0x680:
+			strcpy(cpu_model, "VIA C3 Ezra-T");
+			break;
+		case 0x690:
+			strcpy(cpu_model, "VIA C3 Nehemiah");
 			break;
 		default:
 			strcpy(cpu_model, "VIA/IDT Unknown");
--- identcpu.VIA-C3.patch ends here ---



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: imp 
State-Changed-When: Fri Aug 15 00:05:57 MDT 2003 
State-Changed-Why:  
Committed 

http://www.freebsd.org/cgi/query-pr.cgi?pr=55581 
>Unformatted:
