Received: by 10.213.65.68 with SMTP id h4csp15298imn; Mon, 19 Mar 2018 17:58:55 -0700 (PDT) X-Google-Smtp-Source: AG47ELugfi1U4qLAe/obAMWRB3j9bl2c7+OBNZohdYWMKvKFpiTYmBHgDDVLVRVIrNrdD1YWK2g7 X-Received: by 10.99.36.193 with SMTP id k184mr10520612pgk.80.1521507535663; Mon, 19 Mar 2018 17:58:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521507535; cv=none; d=google.com; s=arc-20160816; b=Q9t9c8DrmgHq0Xzd7FYOWNdP28ewvBeNqzABrEzd6TDtQPMiHYumkQAAipbcjATLUR BA8N6I/PUrRp2SgSEOFVsl1VzazcmsjGPN8KnqX96vXxuoii/tFh0zuLCMqKnVC8pgzB gSSeyAmq4xcD5SIC48BCuMkXiPkFAZDqca1n5xxNlQF4O0G8suJe0DTYCNQgJ2r+DClr zWnz2AcCBuigYHGxBlfCGStwcsX60QO/X/U3VTBZzm6yNyeZOxHu0+2w8/TwqM1M4KJ3 PPlJVo5fXg/bksS80qoQgcSvo+jH6yh2Q52wFygUx8pG/qoS8RQEK3JL++ptVPuafpkZ 1O2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=RHPQQ8CSkCsFXCA/PkNlk/gmvikZKEAVYMM1p0oualM=; b=f17AjlEcye5xOihEW9hS08f/vYqEj6ekXKNcna8iu0TzObFTD4LOFtX221xpxymkuc LmMy1BjQYVjm5CB81+/vUEvu5uUmMdJZ68GHU3AMVLPqrvsVEQYVBi2OC7lHVyOPM/YL 1nCD//+i+khmsEd0rcHhwujlvly3gEJCGBwERZDyT5riPWcNQ5uVFEPM2xyLC6aK7DYp CUjhipPfCqZL7NbQUF54Xd9NfFCLJT55JvJft9HCY2eRgEzymmtc3ksqqH0BIVCpfkYG VltIcHi2GXpnw1uBco7lSB/AaI5GTg74VB0TPwVFdczFmXI+5AMyv+pMHKdJmYLICDZw ToiQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n27si387052pfg.102.2018.03.19.17.58.38; Mon, 19 Mar 2018 17:58:55 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031708AbeCSS1m (ORCPT + 99 others); Mon, 19 Mar 2018 14:27:42 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51266 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966063AbeCSS1a (ORCPT ); Mon, 19 Mar 2018 14:27:30 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id BE9F111D5; Mon, 19 Mar 2018 18:27:29 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Kirill A. Shutemov" , Dave Hansen , Kai Huang , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , Tom Lendacky , linux-mm@kvack.org, Ingo Molnar Subject: [PATCH 4.9 212/241] x86/cpufeatures: Add Intel PCONFIG cpufeature Date: Mon, 19 Mar 2018 19:07:57 +0100 Message-Id: <20180319180759.948937973@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319180751.172155436@linuxfoundation.org> References: <20180319180751.172155436@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kirill A. Shutemov commit 7958b2246fadf54b7ff820a2a5a2c5ca1554716f upstream. CPUID.0x7.0x0:EDX[18] indicates whether Intel CPU support PCONFIG instruction. Signed-off-by: Kirill A. Shutemov Cc: Dave Hansen Cc: Kai Huang Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Tom Lendacky Cc: linux-mm@kvack.org Link: http://lkml.kernel.org/r/20180305162610.37510-4-kirill.shutemov@linux.intel.com Signed-off-by: Ingo Molnar Signed-off-by: Greg Kroah-Hartman --- arch/x86/include/asm/cpufeatures.h | 1 + 1 file changed, 1 insertion(+) --- a/arch/x86/include/asm/cpufeatures.h +++ b/arch/x86/include/asm/cpufeatures.h @@ -302,6 +302,7 @@ /* Intel-defined CPU features, CPUID level 0x00000007:0 (EDX), word 18 */ #define X86_FEATURE_AVX512_4VNNIW (18*32+ 2) /* AVX-512 Neural Network Instructions */ #define X86_FEATURE_AVX512_4FMAPS (18*32+ 3) /* AVX-512 Multiply Accumulation Single precision */ +#define X86_FEATURE_PCONFIG (18*32+18) /* Intel PCONFIG */ #define X86_FEATURE_SPEC_CTRL (18*32+26) /* "" Speculation Control (IBRS + IBPB) */ #define X86_FEATURE_INTEL_STIBP (18*32+27) /* "" Single Thread Indirect Branch Predictors */ #define X86_FEATURE_ARCH_CAPABILITIES (18*32+29) /* IA32_ARCH_CAPABILITIES MSR (Intel) */