Received: by 10.213.65.68 with SMTP id h4csp1734814imn; Mon, 19 Mar 2018 11:48:46 -0700 (PDT) X-Google-Smtp-Source: AG47ELvpFOkgt0ZNHbYZmgub1mhPMs7as+MDZ/ZTCE5lEqOJU65d3+P5ZH/MRx65MQz8d7JmmAYc X-Received: by 10.98.217.85 with SMTP id s82mr5115484pfg.208.1521485326626; Mon, 19 Mar 2018 11:48:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521485326; cv=none; d=google.com; s=arc-20160816; b=iLBalAPleC3m/6+hKLDDOc4mobaiacqLCatmDRARZJR/L+v1vaKB4UExi059dehWW7 J/FMwsRDydmAHi0ktAhwwVRMzCDlkoux8HRN3MmxyHSJxunw2Oow+GTaOWJmOr+F/ERE XL/psLCjKale4GwKoNtIuJxLRvxJTUDjc1gsdt9LT4c2Cs3ICW7Gq6iP9GpeT1cPUO9R 7r/aQWO1Vr2lFqdXQZ9McRwDPDtOcIqODwrwBPqD9jptYnfhNAahIku941WaMQGC4fDn ONO9imDsvjucV+9ovRWMdiiUZOJHAZuBU8MqrQZ3e46m9gLIvbD5tFNk7PUUSVaDviG+ eU6A== 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=Qda3JTrULF2h8PjS9xNiZwFaBCGFLIH2TG3h61Zm+j8=; b=fpWkKoyOoTFM6X/p+K/zMH76U2IcOWLgwP8cTzXPRpQCI27fu7oskoNnByOvCBMZzD ZM37vBrUUeRmeIiJ1HqlWzx3wo4tJ9kEkNWLjeGhOeoZarlOi/KJ2hjuAatPL96nX9oC Hrw0S8xBuR8+Jz30WY7UaNXQFKzhlBDWGMSMXf0hcV6IhvcTArYDRxq08c8A7iVQh9E4 RK/bYmpXQvfe+Bzy2dwBH/Bu54qZWZ1lBEV91dn4GLhvtzEuE349Gehlm8Ksm/1Fx74T u9s1bIHQxdIDdxWTRX5g3PWxhgfKNe+TJavMtdprDdFuFY1TLayBxzxzo1jwhIbvQpe+ Qlvw== 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 r7si302009pgp.212.2018.03.19.11.48.31; Mon, 19 Mar 2018 11:48:46 -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 S970168AbeCSSbk (ORCPT + 99 others); Mon, 19 Mar 2018 14:31:40 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:53622 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967385AbeCSSbh (ORCPT ); Mon, 19 Mar 2018 14:31:37 -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 1221811CE; Mon, 19 Mar 2018 18:31:37 +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.15 02/52] x86/cpufeatures: Add Intel PCONFIG cpufeature Date: Mon, 19 Mar 2018 19:08:00 +0100 Message-Id: <20180319180735.121159823@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319180734.976730813@linuxfoundation.org> References: <20180319180734.976730813@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.15-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 @@ -327,6 +327,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) */