Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp565479yba; Wed, 3 Apr 2019 14:34:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwyCPr4AIIYBI71wIalmJcPwvQ6VgSpjENTiSs5z0UXGkJp/xYNJbqU4SR0+1YmdraSEF0Y X-Received: by 2002:a65:4183:: with SMTP id a3mr2031193pgq.121.1554327242637; Wed, 03 Apr 2019 14:34:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554327242; cv=none; d=google.com; s=arc-20160816; b=0WlpKNjagtjG6d4I4Cyz44jxJBf+ftbwDAogUWSSL/dL183klmec+/kouyjSWM7mNE YeB1YE5JJERVAdinIbHBy2328yGh3uB2tSac4KpHkZbTzJp1g5I04K2GzQJTnVy2azgO VPhpunh2fn2pNbAg4H8AKpGgOxYTGOCzcjQmUS0cLUtfWusn8M6zy0G4YB1EZ7m7af+6 9NOiIGEjvBVFik88ZqKNL78LLiSmaqdWSA7SoTr+XzhjINvtXqNII1YaBHa9czJ+PDGo EITnK18e04NPzM/wQVXBauhXTNwk3yk3k9lz08cAkFzMfcet37uaMomx/PrtoymXytqm 6TvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=rLVK5YX4IWOZw7kf59i2BVTYB/6dn/bgPebGDcsEbzI=; b=As3uYtY8iIH4vqvkVneEMsmIdSKax56AcpwAUNJxbYkflIQOFjsdrjPkBhsvnVPoX5 4raym0CC7qTa67YlOXP2/SEiBjzv9BTS1qDhWCEysEPwNtmX5rpqobKkoSFtbxxdSo3s FDjezfLPPoLWY9X7SBl66rKEaqXbmNT7bPt75HcMx7U2uvc/rwS6ZM3QQP4TNl0W26m7 tt/L8IzewLK5rFKHsaIlG4c7s9xTFXAOPNHZcSpXZZVH+cpBFgYXL58o6FuXcW4iY59S o4IBQTUqL/89m4rh4EZ9A7xfqftoEkq4QCvtl/MsOjn/rn0X9g4aKpm5ctoMQu0x4wdE Jy/g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t11si14270633pgv.275.2019.04.03.14.33.47; Wed, 03 Apr 2019 14:34:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728546AbfDCVbZ (ORCPT + 99 others); Wed, 3 Apr 2019 17:31:25 -0400 Received: from mga05.intel.com ([192.55.52.43]:37323 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726752AbfDCVaV (ORCPT ); Wed, 3 Apr 2019 17:30:21 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Apr 2019 14:30:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,306,1549958400"; d="scan'208";a="334754236" Received: from romley-ivt3.sc.intel.com ([172.25.110.60]) by fmsmga005.fm.intel.com with ESMTP; 03 Apr 2019 14:30:10 -0700 From: Fenghua Yu To: "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , "H Peter Anvin" , "Dave Hansen" , "Paolo Bonzini" , "Ashok Raj" , "Peter Zijlstra" , "Kalle Valo" , "Xiaoyao Li " , "Michael Chan" , "Ravi V Shankar" Cc: "linux-kernel" , "x86" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, kvm@vger.kernel.org, Fenghua Yu Subject: [PATCH v6 06/20] x86/cpufeatures: Enumerate MSR_IA32_CORE_CAPABILITY Date: Wed, 3 Apr 2019 14:21:52 -0700 Message-Id: <1554326526-172295-7-git-send-email-fenghua.yu@intel.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1554326526-172295-1-git-send-email-fenghua.yu@intel.com> References: <1554326526-172295-1-git-send-email-fenghua.yu@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org MSR_IA32_CORE_CAPABILITY (0xcf) contains bits that enumerate some model specific features. The MSR 0xcf itself is enumerated by CPUID.(EAX=0x7,ECX=0):EDX[30]. When this CPUID bit is 1, the MSR 0xcf exists. Detailed information on the CPUID bit and the MSR can be found in the latest Intel 64 and IA-32 Architectures Software Developer's Manual. Signed-off-by: Fenghua Yu --- arch/x86/include/asm/cpufeatures.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h index 981ff9479648..eff25e2015a5 100644 --- a/arch/x86/include/asm/cpufeatures.h +++ b/arch/x86/include/asm/cpufeatures.h @@ -350,6 +350,7 @@ #define X86_FEATURE_INTEL_STIBP (18*32+27) /* "" Single Thread Indirect Branch Predictors */ #define X86_FEATURE_FLUSH_L1D (18*32+28) /* Flush L1D cache */ #define X86_FEATURE_ARCH_CAPABILITIES (18*32+29) /* IA32_ARCH_CAPABILITIES MSR (Intel) */ +#define X86_FEATURE_CORE_CAPABILITY (18*32+30) /* "" IA32_CORE_CAPABILITY MSR */ #define X86_FEATURE_SPEC_CTRL_SSBD (18*32+31) /* "" Speculative Store Bypass Disable */ /* -- 2.19.1