From nobody@FreeBSD.org  Wed Jan  9 13:43:19 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A222A16A417
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  9 Jan 2008 13:43:19 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 8DDFE13C442
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  9 Jan 2008 13:43:19 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m09DgFLd080005
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 9 Jan 2008 13:42:15 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m09DgFWI080004;
	Wed, 9 Jan 2008 13:42:15 GMT
	(envelope-from nobody)
Message-Id: <200801091342.m09DgFWI080004@www.freebsd.org>
Date: Wed, 9 Jan 2008 13:42:15 GMT
From: "Y.Okabe" <be_works_us@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: padlock enable for new VIA C7 (CentaurHauls) cpuid 0x6d0
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         119491
>Category:       i386
>Synopsis:       [i386] [patch] [request] padlock enable for new VIA C7 (CentaurHauls) cpuid 0x6d0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jhb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 09 13:50:01 UTC 2008
>Closed-Date:    Fri Jun 06 17:46:38 UTC 2008
>Last-Modified:  Fri Jun 06 17:46:38 UTC 2008
>Originator:     Y.Okabe
>Release:        7.0-PRERELEASE
>Organization:
Japan
>Environment:
FreeBSD  7.0-PRERELEASE FreeBSD 7.0-PRERELEASE

CPU: VIA C7 Esther+RNG+AES+AES-CTR+SHA1+SHA256+RSA (1500.00-MHz 686-class CPU)
  Origin = "CentaurHauls"  Id = 0x6d0  Stepping = 0
  Features=0xa7c9bbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,CMOV,PAT,CLFLUSH,ACPI,MMX,FXSR,SSE,SSE2,TM,PBE>
  Features2=0x4181<SSE3,EST,TM2,xTPR>
>Description:
New VIA C7 (CentaurHauls) machine not detected VIA CPU feauture.

ex. GA-C7V7-CSI-RH-SI

dmesg reports follow line.

kernel> padlock0: No ACE Support.



>How-To-Repeat:
install GENERIC kernel for RENENG_7
>Fix:

patched for 2 files.


/usr/src/sys/i386/i386/initcpu.c

line 685 near 
#endif
                } else if (strcmp(cpu_vendor, "CentaurHauls") == 0) {
                        switch (cpu_id & 0xff0) {
                        case 0x690:
                                if ((cpu_id & 0xf) < 3)
                                        break;
                                /* fall through. */
                        case 0x6a0:
+                        case 0x6d0: // new cpu id patch
                                init_via();
                                break;
                        default:
                                break;
                        }


/usr/src/sys/i386/i386/identcpu.c 

line 586 near.
 

                                break;
                        goto via_common;
                case 0x6a0:
+                case 0x6d0: // new cpu id
                        strcpy(cpu_model, "VIA C7 Esther");
via_common:
                        do_cpuid(0xc0000000, regs);




>Release-Note:
>Audit-Trail:

From: Michael Proto <mike@jellydonut.org>
To: bug-followup@FreeBSD.org, be_works_us@yahoo.com
Cc:  
Subject: Re: i386/119491: [i386] [patch] padlock enable for new VIA C7 (CentaurHauls)
 cpuid 0x6d0
Date: Thu, 24 Jan 2008 00:32:16 -0500

 I can confirm this patch also works with 6.3-RELEASE and a 0x6d0 VIA C7
 (Jetway J7F4K1G2E):
 
 CPU: VIA C7 Esther+RNG+AES+AES-CTR+SHA1+SHA256+RSA (1200.01-MHz
 686-class CPU)
    Origin = "CentaurHauls"  Id = 0x6d0  Stepping = 0
 
 Features=0xa7c9baff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,APIC,SEP,MTRR,PGE,CMOV,PAT,CLFLUSH,ACPI,MMX,FXSR,SSE,SSE2,TM,PBE>
    Features2=0x4181<SSE3,EST,TM2,xTPR>
 ...
 PadLock: HW support loaded for AES-CBC,SHA1,SHA256.
 
 
 Thanks!
 -Michael Proto
State-Changed-From-To: open->patched 
State-Changed-By: jhb 
State-Changed-When: Mon Feb 25 22:43:04 UTC 2008 
State-Changed-Why:  
Fix committed to HEAD, will MFC in a few days. 


Responsible-Changed-From-To: freebsd-i386->jhb 
Responsible-Changed-By: jhb 
Responsible-Changed-When: Mon Feb 25 22:43:04 UTC 2008 
Responsible-Changed-Why:  
Fix committed to HEAD, will MFC in a few days. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=119491 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: i386/119491: commit references a PR
Date: Mon, 25 Feb 2008 22:42:41 +0000 (UTC)

 jhb         2008-02-25 22:42:33 UTC
 
   FreeBSD src repository
 
   Modified files:
     sys/i386/i386        identcpu.c initcpu.c 
   Log:
   Support the VIA C7 Eden CPU and treat it just like a C7 Esther.  We may
   want to adjust this code to just assume that all CPUs >= Esther should
   be checked for the extended cpuid flags register.
   
   MFC after:      3 days
   PR:             i386/119491
   
   Revision  Changes    Path
   1.181     +3 -0      src/sys/i386/i386/identcpu.c
   1.57      +1 -0      src/sys/i386/i386/initcpu.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: gavin 
State-Changed-When: Fri Jun 6 17:44:32 UTC 2008 
State-Changed-Why:  
This was MFC'd to RELENG_7 and RELENG_6 by jhb@ on 2008-03-07 so 
will be fixed in 6.4 and 7.1-RELEASE.  Thanks for your submission! 

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