Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp564655yba; Wed, 3 Apr 2019 14:32:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDvFaFbeo+iUMb/pMhcV9yFFG91AbjeSP9kKGiVQ2KrLdRpDTFAv5Ir7maUXqjPGqfGM9O X-Received: by 2002:aa7:8d01:: with SMTP id j1mr1788650pfe.122.1554327176669; Wed, 03 Apr 2019 14:32:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554327176; cv=none; d=google.com; s=arc-20160816; b=X2jp1p+K/fq7I4zHRTXX/gh8aiIUe34YDVFY/++VpLzJSuscN6athFziHTj6Fz21Jk muO9wQXxZZbaW2aBIU9AdnAsOqZOoXLsPyOE3pOSR0zQUhBE7Ud4/o3CTsbcMm4OdkX8 W/K2D+tAhAPvfP0e5tWCGenwVGiREG2w/LYUjNfMXb2lw4evpjgfNQZsggmluOHF/csP ZSU6PMJeHWfJdXHyIkI4SXA8lUMBk4YAtkThnnOwngNVjjxlxKwGQLvCv6kBO7pdQuey 2jEQ7vEsQ7hqGnRedH81kMYiK2jj976Fd5pby/RAUD1/MDWN6D1utK5dnyXkgpBe6Qxd c8sA== 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=Wj5grfe2LC3AWGYUQpONIqHfRCWesSSEDKQ1ERASw1Q=; b=fh4eAvssf5TW4Bm9n5TYdW6G+LlOThEftbT+dQIQUushbt8vRqOFjlWrgo1DEOPVdS y9UCg6k1uWs1ucQdt3AJdN3hPqNqZXOg8p8obr0/Jw/t5wc8FLTmPgFOuBB3P9KaD/CN NPzmP5JlmtXzGDGPcgWFpo5dgQ0c2yC/HISqTSGX/4gp+V+XB+1sEdb3I0B+uElRFK7D TxnCt3jcy0COPQ6SbZaBNMYkEjvwEVDiHKbMGpK4LB17KryTNHIEsqrIWAQSTXmrU8hD vQWWhJ406WNuJufIXKgdOaEfQWwS7nSFGavuYAoVAoD3kb0rM275DnSJ3yIdO/haVCWU QVSA== 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 e9si15327196plb.99.2019.04.03.14.32.41; Wed, 03 Apr 2019 14:32:56 -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 S1728589AbfDCVb1 (ORCPT + 99 others); Wed, 3 Apr 2019 17:31:27 -0400 Received: from mga05.intel.com ([192.55.52.43]:37332 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726761AbfDCVaV (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="334754235" 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 05/20] x86/msr-index: Define MSR_IA32_CORE_CAPABILITY and split lock detection bit Date: Wed, 3 Apr 2019 14:21:51 -0700 Message-Id: <1554326526-172295-6-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 A new MSR_IA32_CORE_CAPABILITY (0xcf) is defined. Each bit in the MSR enumerates a model specific feature. Currently bit 5 enumerates split lock detection. When bit 5 is 1, split lock detection is supported. When the bit is 0, split lock detection is not supported. Please check the latest Intel 64 and IA-32 Architectures Software Developer's Manual for more detailed information on the MSR and the split lock detection bit. Signed-off-by: Fenghua Yu --- arch/x86/include/asm/msr-index.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/include/asm/msr-index.h b/arch/x86/include/asm/msr-index.h index ca5bc0eacb95..f65ef6f783d2 100644 --- a/arch/x86/include/asm/msr-index.h +++ b/arch/x86/include/asm/msr-index.h @@ -59,6 +59,9 @@ #define MSR_PLATFORM_INFO_CPUID_FAULT_BIT 31 #define MSR_PLATFORM_INFO_CPUID_FAULT BIT_ULL(MSR_PLATFORM_INFO_CPUID_FAULT_BIT) +#define MSR_IA32_CORE_CAPABILITY 0x000000cf +#define CORE_CAP_SPLIT_LOCK_DETECT BIT(5) /* Detect split lock */ + #define MSR_PKG_CST_CONFIG_CONTROL 0x000000e2 #define NHM_C3_AUTO_DEMOTE (1UL << 25) #define NHM_C1_AUTO_DEMOTE (1UL << 26) -- 2.19.1