From owner-freebsd-i386@FreeBSD.ORG Sun Jul 9 12:30:14 2006 Return-Path: X-Original-To: freebsd-i386@hub.freebsd.org Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 169D016A4E2 for ; Sun, 9 Jul 2006 12:30:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FE7943D46 for ; Sun, 9 Jul 2006 12:30:13 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k69CUD3S064819 for ; Sun, 9 Jul 2006 12:30:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k69CUDx1064818; Sun, 9 Jul 2006 12:30:13 GMT (envelope-from gnats) Resent-Date: Sun, 9 Jul 2006 12:30:13 GMT Resent-Message-Id: <200607091230.k69CUDx1064818@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, François Charlier Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FAEF16A4DE for ; Sun, 9 Jul 2006 12:27:28 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC9EC43D4C for ; Sun, 9 Jul 2006 12:27:27 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k69CRRLh014968 for ; Sun, 9 Jul 2006 12:27:27 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k69CRRDN014965; Sun, 9 Jul 2006 12:27:27 GMT (envelope-from nobody) Message-Id: <200607091227.k69CRRDN014965@www.freebsd.org> Date: Sun, 9 Jul 2006 12:27:27 GMT From: François Charlier To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: i386/99959: Via Padlock ACE support not detected for via C7 (Esther) processor X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jul 2006 12:30:14 -0000 >Number: 99959 >Category: i386 >Synopsis: Via Padlock ACE support not detected for via C7 (Esther) processor >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jul 09 12:30:12 GMT 2006 >Closed-Date: >Last-Modified: >Originator: François Charlier >Release: 6.1 >Organization: >Environment: FreeBSD loin.ploup.net 6.1-STABLE FreeBSD 6.1-STABLE #0: Sun Jul 9 02:09:00 CEST 2006 naz@loin.ploup.net:/usr/obj/usr/src/sys/DEDIBOX i386 >Description: Via Padlock ACE support is not detected vor via Esther (C5J) and maybe Ruth (C5Q) processors. Loading the padlock module returns : PADLOCK: No ACE support. The Via Padlock Programming Guide (http://www.via.com.tw/en/downloads/whitepapers/initiatives/padlock/programming_guide.pdf) specifies on page 5 that "Centaur Extended Features Flags are supported" "if CPUID with EAX = 0xC0000000 returns EAX >= 0xC0000001". However, the file src/sys/crypto/via/padlock.c does the following test in function padlock_init(void) [line 167 in 6.1-STABLE] : if (regs[0] == 0xc0000001) { which is wrong and should be changed to : if (regs[0] >= 0xc0000001) { >How-To-Repeat: kldload padlock.ko on a machine with a C7 processor >Fix: Follow the programming guide and modify src/sys/crypto/via/padlock.c in function padlock_init(void) [line 167 in 6.1-STABLE] from : if (regs[0] == 0xc0000001) { to : if (regs[0] >= 0xc0000001) { >Release-Note: >Audit-Trail: >Unformatted: