From owner-freebsd-bugs@FreeBSD.ORG Sat Oct 4 17:50:02 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74C721065687 for ; Sat, 4 Oct 2008 17:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 516478FC16 for ; Sat, 4 Oct 2008 17:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m94Ho1l0056096 for ; Sat, 4 Oct 2008 17:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m94Ho19g056095; Sat, 4 Oct 2008 17:50:01 GMT (envelope-from gnats) Resent-Date: Sat, 4 Oct 2008 17:50:01 GMT Resent-Message-Id: <200810041750.m94Ho19g056095@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Artem Naluzhnyy Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB72B106569F for ; Sat, 4 Oct 2008 17:47:05 +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 DA2878FC0C for ; Sat, 4 Oct 2008 17:47:05 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id m94Hl4YD025047 for ; Sat, 4 Oct 2008 17:47:04 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id m94Hl4Re025045; Sat, 4 Oct 2008 17:47:04 GMT (envelope-from nobody) Message-Id: <200810041747.m94Hl4Re025045@www.freebsd.org> Date: Sat, 4 Oct 2008 17:47:04 GMT From: Artem Naluzhnyy To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/127859: Update AMD features in identcpu.c X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Oct 2008 17:50:02 -0000 >Number: 127859 >Category: kern >Synopsis: Update AMD features in identcpu.c >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Oct 04 17:50:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Artem Naluzhnyy >Release: >Organization: >Environment: >Description: Here is a patch to satisfy recent CPUID Specification from AMD (http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/25481.pdf). It should be applied to sys/i386/i386/identcpu.c and sys/amd64/amd64/identcpu.c probably. >How-To-Repeat: >Fix: --- identcpu.c.orig 2008-10-04 19:56:38.000000000 +0300 +++ identcpu.c 2008-10-04 20:21:26.000000000 +0300 @@ -754,6 +754,9 @@ } /* + * AMD CPUID Specification, Revision 2.28 + * http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/25481.pdf + * * AMD64 Architecture Programmer's Manual Volume 3: * General-Purpose and System Instructions * http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/24594.pdf @@ -775,7 +778,7 @@ "\010" /* Same */ "\011" /* Same */ "\012" /* Same */ - "\013" /* Undefined */ + "\013" /* Reserved */ "\014SYSCALL" /* Have SYSCALL/SYSRET */ "\015" /* Same */ "\016" /* Same */ @@ -783,17 +786,17 @@ "\020" /* Same */ "\021" /* Same */ "\022" /* Same */ - "\023" /* Reserved, unknown */ - "\024MP" /* Multiprocessor Capable */ + "\023" /* Reserved */ + "\024" /* Reserved */ "\025NX" /* Has EFER.NXE, NX */ - "\026" /* Undefined */ + "\026" /* Reserved */ "\027MMX+" /* AMD MMX Extensions */ "\030" /* Same */ "\031" /* Same */ "\032FFXSR" /* Fast FXSAVE/FXRSTOR */ "\033Page1GB" /* 1-GB large page support */ "\034RDTSCP" /* RDTSCP */ - "\035" /* Undefined */ + "\035" /* Reserved */ "\036LM" /* 64 bit long mode */ "\0373DNow!+" /* AMD 3DNow! Extensions */ "\0403DNow!" /* AMD 3DNow! */ @@ -808,15 +811,18 @@ "\003SVM" /* Secure Virtual Mode */ "\004ExtAPIC" /* Extended APIC register */ "\005CR8" /* CR8 in legacy mode */ - "\006" - "\007" - "\010" + "\006ABM" /* Advanced Bit Manipulation */ + "\007SSE4A" /* + * EXTRQ, INSERTQ, MOVNTSS, + * and MOVNTSD instructions + */ + "\010MASSE" /* Misaligned SSE mode */ "\011Prefetch" /* 3DNow! Prefetch/PrefetchW */ - "\012" - "\013" - "\014" - "\015" - "\016" + "\012OSVW" /* OS Visible Workaround */ + "\013IBS" /* Instruction Based Sampling */ + "\014SSE5" /* SSE5 Instruction support */ + "\015SKINIT" /* SKINIT/STGI support */ + "\016WDT" /* Watchdog timer support */ "\017" "\020" "\021" >Release-Note: >Audit-Trail: >Unformatted: