Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2629106ybc; Wed, 20 Nov 2019 17:50:21 -0800 (PST) X-Google-Smtp-Source: APXvYqyEXls4nd500kgvemO1B41iUhOzH30gYIoJGSPGdPiIrMqU0NP5ArwqF3REFnaalD18PrI/ X-Received: by 2002:a17:906:b6c3:: with SMTP id ec3mr10056399ejb.27.1574301021544; Wed, 20 Nov 2019 17:50:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574301021; cv=none; d=google.com; s=arc-20160816; b=Iy8pl2vv/FMVwXcqlKv0vwKu44Dr8vTz1wEntm3GkVgwkQ0x0xR051FsD2qtnqWsu/ rT6nooVxzENfiULGS5JrS0IIcO3KnA2gpeKKD5NndaxoBcjGZon3l8M6S4Cp/qTdPtu4 qQ/vHOqpKyztOv2cvv9jsSYAQAQgHtvi4rQg3xprMEd5UGt/T8BVbkZA54r7lIwLAFzU EkaHpnL8kKNYhw6H8s+qv+QtfesmA+LiEnOwE5WcL46Tty2E1vjhhIwfj9Q8xTyc58Vo uEH//uun3CrX5zBGAc4pQexj+uplmZvt7E1LBxQXvsWCqNTLcIjY+KX4a1hc1tnDtIU9 MgWg== 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=I0dNotWOW+9kPRIn/NRz15gRteZ1IHzxXJ4P3Az7dcg=; b=mlN7Ftyzkbk5BNkQXebk/umFlLWF1vhYTp2KkDo2A6RVws6lsa3Ed3rn91XIG9axSY Y838IDeJc0Rj2F+l+ixMlBeftBqQg5QI3YaWpc7kGMsrZUcEZPR/uw/cctUKmouqBpi8 DUj1AETUiyf1J48e2AxUWSFFTuCygoxLzw+tMp71A7LuEaOcCDAB5iaN8LESOXYmtcWQ uA1LB+Jx7iTsiDhtI1Z1ZCj7LUFoW2kp/8YtUe6d1vCrLogzcgSAJRRhffgBJ7b9HfVT DATb3aqu3BrQB4oxuRnXX929BYgZuVDpQwlLi/h85SCbsgRNU6b4iQ1nQlqfyu9z86iA nAfQ== 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 ce16si736643ejb.118.2019.11.20.17.49.56; Wed, 20 Nov 2019 17:50:21 -0800 (PST) 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 S1726574AbfKUBpv (ORCPT + 99 others); Wed, 20 Nov 2019 20:45:51 -0500 Received: from mga05.intel.com ([192.55.52.43]:49098 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725936AbfKUBpv (ORCPT ); Wed, 20 Nov 2019 20:45:51 -0500 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; 20 Nov 2019 17:45:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,224,1571727600"; d="scan'208";a="407025894" Received: from romley-ivt3.sc.intel.com ([172.25.110.60]) by fmsmga005.fm.intel.com with ESMTP; 20 Nov 2019 17:45:49 -0800 From: Fenghua Yu To: "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , "H Peter Anvin" , "Peter Zijlstra" , "Tony Luck" , "Ashok Raj" , "Ravi V Shankar" Cc: "linux-kernel" , "x86" , Fenghua Yu Subject: [PATCH v10 1/6] x86/msr-index: Add two new MSRs Date: Wed, 20 Nov 2019 16:53:18 -0800 Message-Id: <1574297603-198156-2-git-send-email-fenghua.yu@intel.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1574297603-198156-1-git-send-email-fenghua.yu@intel.com> References: <1574297603-198156-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 IA32_CORE_CAPABILITIES(0xCF): Core Capabilities Register Bit5: #AC(0) exception for split locked accesses supported. TEST_CTRL(0x33): Test Control Register Bit29: Enable #AC(0) exception for split locked accesses. Signed-off-by: Fenghua Yu Reviewed-by: Tony Luck --- arch/x86/include/asm/msr-index.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/x86/include/asm/msr-index.h b/arch/x86/include/asm/msr-index.h index 6a3124664289..7b25cec494fd 100644 --- a/arch/x86/include/asm/msr-index.h +++ b/arch/x86/include/asm/msr-index.h @@ -41,6 +41,10 @@ /* Intel MSRs. Some also available on other CPUs */ +#define MSR_TEST_CTRL 0x00000033 +#define MSR_TEST_CTRL_SPLIT_LOCK_DETECT_BIT 29 +#define MSR_TEST_CTRL_SPLIT_LOCK_DETECT BIT(MSR_TEST_CTRL_SPLIT_LOCK_DETECT_BIT) + #define MSR_IA32_SPEC_CTRL 0x00000048 /* Speculation Control */ #define SPEC_CTRL_IBRS BIT(0) /* Indirect Branch Restricted Speculation */ #define SPEC_CTRL_STIBP_SHIFT 1 /* Single Thread Indirect Branch Predictor (STIBP) bit */ @@ -70,6 +74,10 @@ */ #define MSR_IA32_UMWAIT_CONTROL_TIME_MASK (~0x03U) +#define MSR_IA32_CORE_CAPABILITIES 0x000000cf +#define MSR_IA32_CORE_CAPABILITIES_SPLIT_LOCK_DETECT_BIT 5 +#define MSR_IA32_CORE_CAPABILITIES_SPLIT_LOCK_DETECT BIT(MSR_IA32_CORE_CAPABILITIES_SPLIT_LOCK_DETECT_BIT) + #define MSR_PKG_CST_CONFIG_CONTROL 0x000000e2 #define NHM_C3_AUTO_DEMOTE (1UL << 25) #define NHM_C1_AUTO_DEMOTE (1UL << 26) -- 2.19.1