Subject: Re: VIA C7 CPU and crypto capabilities
To: None <current-users@netbsd.org>
From: Daniel de Kok <danieldk@pobox.com>
List: current-users
Date: 06/26/2007 22:31:15
--LZvS9be/3tNcYl/X
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

> In the dmesg, I can not see evidence of AES in the cpu flags (complete
> dmesg is at end of this mail)

Could you try the attached patch against sys/arch/i386/i386/identcpu.c?
This seems to be a bug in the vendor documentation.

-- Daniel

--LZvS9be/3tNcYl/X
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="esther-identcpu.diff"

--- identcpu.c.orig	2007-06-19 16:16:56.000000000 +0200
+++ identcpu.c	2007-06-26 22:27:16.000000000 +0200
@@ -666,7 +666,7 @@
 		/* Nehemiah or Esther */
 		CPUID(0xc0000000, descs[0], descs[1], descs[2], descs[3]);
 		lfunc = descs[0];
-		if (lfunc == 0xc0000001) {
+		if (lfunc >= 0xc0000001) {
 			CPUID(lfunc, descs[0], descs[1], descs[2], descs[3]);
 			lfunc = descs[3];
 			if (model > 0x9 || stepping >= 8) {	/* ACE */

--LZvS9be/3tNcYl/X--