From patchwork Fri Jun 4 03:22:28 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Len Brown X-Patchwork-Id: 104207 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o543Mkcp023712 for ; Fri, 4 Jun 2010 03:22:46 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932277Ab0FDDWp (ORCPT ); Thu, 3 Jun 2010 23:22:45 -0400 Received: from vms173007pub.verizon.net ([206.46.173.7]:64097 "EHLO vms173007pub.verizon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932167Ab0FDDWo (ORCPT ); Thu, 3 Jun 2010 23:22:44 -0400 Received: from localhost.localdomain ([unknown] [98.118.125.200]) by vms173007.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L3H0093I01J2EU1@vms173007.mailsrvcs.net>; Thu, 03 Jun 2010 22:22:32 -0500 (CDT) Received: from localhost.localdomain (d975xbx2 [127.0.0.1]) by localhost.localdomain (8.14.2/8.14.2) with ESMTP id o543MTxg007287; Thu, 03 Jun 2010 23:22:29 -0400 Received: from localhost (lenb@localhost) by localhost.localdomain (8.14.2/8.14.2/Submit) with ESMTP id o543MSgi007282; Thu, 03 Jun 2010 23:22:28 -0400 X-Authentication-warning: localhost.localdomain: lenb owned process doing -bs Date: Thu, 03 Jun 2010 23:22:28 -0400 (EDT) From: Len Brown X-X-Sender: lenb@localhost.localdomain To: H Peter Anvin Cc: Ingo Molnar , Thomas Gleixner , Dave Jones , Linux Kernel Mailing List , linux-acpi@vger.kernel.org, Venkatesh Pallipadi Subject: [PATCH] x86: Look for IA32_ENERGY_PERF_BIAS support - v3 In-reply-to: <20100304231547.654246000@intel.com> Message-id: References: <20100304231454.247805000@intel.com> <20100304231547.654246000@intel.com> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 04 Jun 2010 03:22:46 +0000 (UTC) Index: linus/arch/x86/include/asm/cpufeature.h =================================================================== --- linus.orig/arch/x86/include/asm/cpufeature.h +++ linus/arch/x86/include/asm/cpufeature.h @@ -162,6 +162,7 @@ #define X86_FEATURE_IDA (7*32+ 0) /* Intel Dynamic Acceleration */ #define X86_FEATURE_ARAT (7*32+ 1) /* Always Running APIC Timer */ #define X86_FEATURE_CPB (7*32+ 2) /* AMD Core Performance Boost */ +#define X86_FEATURE_EPB (7*32+ 3) /* IA32_ENERGY_PERF_BIAS support */ /* Virtualization flags: Linux defined */ #define X86_FEATURE_TPR_SHADOW (8*32+ 0) /* Intel TPR Shadow */ Index: linus/arch/x86/include/asm/msr-index.h =================================================================== --- linus.orig/arch/x86/include/asm/msr-index.h +++ linus/arch/x86/include/asm/msr-index.h @@ -238,6 +238,8 @@ #define MSR_IA32_TEMPERATURE_TARGET 0x000001a2 +#define MSR_IA32_ENERGY_PERF_BIAS 0x000001b0 + /* MISC_ENABLE bits: architectural */ #define MSR_IA32_MISC_ENABLE_FAST_STRING (1ULL << 0) #define MSR_IA32_MISC_ENABLE_TCC (1ULL << 1) Index: linus/arch/x86/kernel/cpu/addon_cpuid_features.c =================================================================== --- linus.orig/arch/x86/kernel/cpu/addon_cpuid_features.c +++ linus/arch/x86/kernel/cpu/addon_cpuid_features.c @@ -33,6 +33,7 @@ void __cpuinit init_scattered_cpuid_feat { X86_FEATURE_IDA, CR_EAX, 1, 0x00000006 }, { X86_FEATURE_ARAT, CR_EAX, 2, 0x00000006 }, { X86_FEATURE_APERFMPERF, CR_ECX, 0, 0x00000006 }, + { X86_FEATURE_EPB, CR_ECX, 3, 0x00000006 }, { X86_FEATURE_CPB, CR_EDX, 9, 0x80000007 }, { X86_FEATURE_NPT, CR_EDX, 0, 0x8000000a }, { X86_FEATURE_LBRV, CR_EDX, 1, 0x8000000a },