Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5763424imm; Mon, 23 Jul 2018 05:47:11 -0700 (PDT) X-Google-Smtp-Source: AAOMgpedgY6oUpJLvXsyaBEqw9q2+UN5JIgO02EIO8TABfWdzITyrbdQlzbMoSAR4TQmlqh/ib// X-Received: by 2002:a63:7252:: with SMTP id c18-v6mr11829084pgn.186.1532350031411; Mon, 23 Jul 2018 05:47:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532350031; cv=none; d=google.com; s=arc-20160816; b=woox+NV1fnpErnlCtGqaXWpZC0UxJGRTHR9aia/CLcqrC7hjvnKbNopYQFLYaeKU/X Rp51dd94Xl1Eh1PeL7cAvy0dsBsdXjQdHT3bCjIhpWmZ0brlQaHL/Kt/bRpa+38DcmHW 5sgMp5cod2k6rWffMPCXoFzjZ7M62ykGOgnEb9d5Pobnl7FiBcyo33LIFbaJH1nZBLjB eKOJFYa8m3AcqSiravFQPNWweWPyCh1GsyoBBmuWRsxQZMuGXzDunOgUSLHRxFH+YqO8 3KgydAbU9B8JhUZbtEs7Addd2C4SKyQvVwVL/4gIwBpxyvuMV/XR8lXCd4ypmxriBBZM omDg== 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=300EOCMEkUdcSByRnmGoA6XNqlnge1O9gCBxJO+kMPI=; b=ucBtxjaCD+jfLAs+cibzZUICd5ep9TvHE0sMmDWu20eQuLg4yNdOpdDFbsUpwPoxck ySuym5X2B4T9mHLb/0C4cn4/O4VoYv1S952q6KraHQb40AWqTOmWQ/kT98g2GlFWVAu2 O6h/pc5VkdoGpldPU7VoNV1BiFfaMJKgEPGcIQhya6WRZqhu11q/1FJCl8Od2oDd58gU Smjmx5sn8G+0KxxkwhpYxfeRKbLNba+TPmMghkHvq0tLjWhO8Mqm22et3xrVci9fkFfG OrdxYLPMJzJcwJxoQLR2RKn5EFAyi3ZpyU+DfaMGwHpvpEm3GQ2SL+A8UpQLF2GHGYMM BXqA== 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 29-v6si8172059pgv.292.2018.07.23.05.46.57; Mon, 23 Jul 2018 05:47:11 -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 S2388274AbeGWNqo (ORCPT + 99 others); Mon, 23 Jul 2018 09:46:44 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:50464 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388007AbeGWNqo (ORCPT ); Mon, 23 Jul 2018 09:46:44 -0400 Received: from localhost (LFbn-1-12238-233.w90-92.abo.wanadoo.fr [90.92.53.233]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 40CE2A95; Mon, 23 Jul 2018 12:43:44 +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, "Srivatsa S. Bhat" , "Matt Helsley (VMware)" , Alexey Makhalov , Bo Gan , gregkh@linux-foundation.org Subject: [PATCH 4.4 021/107] x86/cpufeatures: Add AMD feature bits for Speculation Control Date: Mon, 23 Jul 2018 14:41:15 +0200 Message-Id: <20180723122413.940808822@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180723122413.003644357@linuxfoundation.org> References: <20180723122413.003644357@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.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: David Woodhouse (cherry picked from 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: David Woodhouse Signed-off-by: Greg Kroah-Hartman Signed-off-by: Srivatsa S. Bhat Reviewed-by: Matt Helsley (VMware) Reviewed-by: Alexey Makhalov Reviewed-by: Bo Gan 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 @@ -251,6 +251,9 @@ /* AMD-defined CPU features, CPUID level 0x80000008 (ebx), word 13 */ #define X86_FEATURE_CLZERO (13*32+0) /* CLZERO instruction */ +#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 */