Received: by 10.223.176.5 with SMTP id f5csp2851528wra; Mon, 5 Feb 2018 10:57:53 -0800 (PST) X-Google-Smtp-Source: AH8x225IdEpWnO/cmR0CvGU1UzGwFCHaB0JJeSCekaXUI07V7hPo3j0TeVHx3ZMdRMGRJpBQVE9R X-Received: by 10.99.173.5 with SMTP id g5mr39082888pgf.391.1517857073194; Mon, 05 Feb 2018 10:57:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517857073; cv=none; d=google.com; s=arc-20160816; b=U+myIDUj+I8aL3H5amII4lvTunNCDbs+louThtk+eSIuqHbBLDRgyuH6WnunPIFmxa pUFJ80bvm45Z5SSqDfpZ7LxsvMnOYc0KXG6h1pt1KYouo9539HdLNrRD9arJzC5m8gXv /aLBwgZoLgrL/tWLUoUCOvw1nFAj2vhhQE1n3fkdVEOvxi+eXVBFH/i5jSaBiycBZp7L fp33ilTKJ2KqVh4W2i+SLVcg46b75pkMwYKLiYv6fVVeJ2mT+N0W0ysNSxozA8aA7mB6 rkUFdqrzRzYu8Z2aFTGA2Fs8GY4j3hnWYOhf4q0qZvkBlADk0BBjuPNlBQDDZPgEERxY 246g== 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=uvBZAPmMgWNXDug/y30tVuAg3HeBQPXhP/NDlJLOK7U=; b=F1Oen0Aic5lvUMhcLuUzMp6GzNYvam7PJdV4jHwKHT/EYK+HNPkPJvlAtcsoHVRWxE iG1Q4z44OGamlMhQbnkuypQ1rsBW/Q7DLQz2wfIDZkDiGBTFs+O5wBmSSd9eF9eYvJLC Qnsy+118UZJtwA9kj1Z7Q+dPxW4ztNRaACPtSWIANRcSfoWWiJFyszudKhDwCCHlXLCA xDRBQgQsHNYXO4ZtPx1iI0aCUy/ZYxVwKU2CvfHAHM+DYMJ3vYgCI1LkJSZR57uvAdEF oXbM5EXsqZebJOBGJmb9YWbSn70PFilcyaIc1OpwWAE55tSjcKwKvTL5J+AiRFsBeRVQ O30Q== 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 a9si2292146pgw.132.2018.02.05.10.57.38; Mon, 05 Feb 2018 10:57:53 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753586AbeBES5R (ORCPT + 99 others); Mon, 5 Feb 2018 13:57:17 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:52192 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753684AbeBESZE (ORCPT ); Mon, 5 Feb 2018 13:25:04 -0500 Received: from localhost (unknown [104.132.1.108]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 6BDB6110E; Mon, 5 Feb 2018 18:24:55 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, David Woodhouse , Thomas Gleixner , Tom Lendacky , gnomes@lxorguk.ukuu.org.uk, ak@linux.intel.com, ashok.raj@intel.com, dave.hansen@intel.com, karahmed@amazon.de, arjan@linux.intel.com, torvalds@linux-foundation.org, peterz@infradead.org, bp@alien8.de, pbonzini@redhat.com, tim.c.chen@linux.intel.com, gregkh@linux-foundation.org Subject: [PATCH 4.15 06/60] x86/cpufeatures: Add AMD feature bits for Speculation Control Date: Mon, 5 Feb 2018 10:22:39 -0800 Message-Id: <20180205182214.184700336@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180205182213.902626065@linuxfoundation.org> References: <20180205182213.902626065@linuxfoundation.org> User-Agent: quilt/0.65 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: David Woodhouse dwmw@amazon.co.uk commit 5d10cbc91d9eb5537998b65608441b592eec65e7 AMD exposes the PRED_CMD/SPEC_CTRL MSRs slightly differently to Intel. See http://lkml.kernel.org/r/2b3e25cc-286d-8bd0-aeaf-9ac4aae39de8@amd.com Signed-off-by: David Woodhouse Signed-off-by: Thomas Gleixner Reviewed-by: Greg Kroah-Hartman Cc: Tom Lendacky Cc: gnomes@lxorguk.ukuu.org.uk Cc: ak@linux.intel.com Cc: ashok.raj@intel.com Cc: dave.hansen@intel.com Cc: karahmed@amazon.de Cc: arjan@linux.intel.com Cc: torvalds@linux-foundation.org Cc: peterz@infradead.org Cc: bp@alien8.de Cc: pbonzini@redhat.com Cc: tim.c.chen@linux.intel.com Cc: gregkh@linux-foundation.org Link: https://lkml.kernel.org/r/1516896855-7642-4-git-send-email-dwmw@amazon.co.uk Signed-off-by: Greg Kroah-Hartman --- arch/x86/include/asm/cpufeatures.h | 3 +++ 1 file changed, 3 insertions(+) --- a/arch/x86/include/asm/cpufeatures.h +++ b/arch/x86/include/asm/cpufeatures.h @@ -269,6 +269,9 @@ #define X86_FEATURE_CLZERO (13*32+ 0) /* CLZERO instruction */ #define X86_FEATURE_IRPERF (13*32+ 1) /* Instructions Retired Count */ #define X86_FEATURE_XSAVEERPTR (13*32+ 2) /* Always save/restore FP error pointers */ +#define X86_FEATURE_AMD_PRED_CMD (13*32+12) /* Prediction Command MSR (AMD) */ +#define X86_FEATURE_AMD_SPEC_CTRL (13*32+14) /* Speculation Control MSR only (AMD) */ +#define X86_FEATURE_AMD_STIBP (13*32+15) /* Single Thread Indirect Branch Predictors (AMD) */ /* Thermal and Power Management Leaf, CPUID level 0x00000006 (EAX), word 14 */ #define X86_FEATURE_DTHERM (14*32+ 0) /* Digital Thermal Sensor */