Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp4807671ooa; Tue, 14 Aug 2018 10:49:56 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyQ00445xcv05xhLbCGVbJxtsVu2jGwCtAmSsKyUiWj/gpj6hSWuuihqTXo1mkQyS3dWl9T X-Received: by 2002:a62:9849:: with SMTP id q70-v6mr24195515pfd.178.1534268996394; Tue, 14 Aug 2018 10:49:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534268996; cv=none; d=google.com; s=arc-20160816; b=np7/nSu/44dzQOvJxkgvqaD2Dz5Mfp+b1Ofvla502HDMSgxJYWAMGcLh5SCJwL0gC8 jLsoJLyt5z0JPNqeTDGHsX6P5l1jfvjePqds1K+3UAZQvw3dUmHjMXaVaZaiqs9GN2Ua G01ciY3Lu5NFL9SaGwS6basGndCc/faV0/G66wgSCwcCHBAJrZkyB01KM3TZ5CXltwc6 3btOu8KwVZWoPLQ27nbN5Gy2ISt+7OPDBIU3+BsXG7J667LN3vwH3f8L4zeB2imNTKwX 3tf0KAFxBbPThe73I+OLjAF8dYEDy44hdSOgQE3XjL6ypcaPDh0W14CVpdDzF40SJS29 N9Gw== 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=LRr13cFa9s4tXq3qCUA7YyZNWMdeQG6uzlGYSmyFWWQ=; b=QAIrbFZCLE0KavCp8x8x1WLW8AVWMEHPoZ9KZ9SsxnyiBq5akplhDu8tD2Y74XON5g HeEpSWjQjv5YPL9WD79Bd/mvGy1DLvZiyLwhRdhxb4vCc0yv+CwTE5E09pPRCLevYoQL ipkmeKzJdBURwKf4ftXuKmzdoQ/tUOpKk3dcTcXVHPik8GHys6VZcR9lLw1KHchNhf9X wEy9vKk3FxY60Rflv0qRD0faTn5q15WHY5vABpxVPIgNbhlNgrIJ82xR2oG6oMu1n/uu ZASqE5wRDPksStDv1E8gIC3VChi17Bj4aEcc6oWFspnDaQAXVSUiOvzDtWDhF4OJ9EW1 ZNig== 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 t1-v6si18335741plr.102.2018.08.14.10.49.41; Tue, 14 Aug 2018 10:49: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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391247AbeHNUgK (ORCPT + 99 others); Tue, 14 Aug 2018 16:36:10 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:32888 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390875AbeHNUgJ (ORCPT ); Tue, 14 Aug 2018 16:36:09 -0400 Received: from localhost (unknown [194.244.16.108]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id A3068C9A; Tue, 14 Aug 2018 17:47:56 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Konrad Rzeszutek Wilk , Thomas Gleixner , David Woodhouse , Guenter Roeck Subject: [PATCH 4.4 36/43] x86/cpufeatures: Add detection of L1D cache flush support. Date: Tue, 14 Aug 2018 19:18:12 +0200 Message-Id: <20180814171519.475908467@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180814171517.014285600@linuxfoundation.org> References: <20180814171517.014285600@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: Konrad Rzeszutek Wilk commit 11e34e64e4103955fc4568750914c75d65ea87ee upstream 336996-Speculative-Execution-Side-Channel-Mitigations.pdf defines a new MSR (IA32_FLUSH_CMD) which is detected by CPUID.7.EDX[28]=1 bit being set. This new MSR "gives software a way to invalidate structures with finer granularity than other architectual methods like WBINVD." A copy of this document is available at https://bugzilla.kernel.org/show_bug.cgi?id=199511 Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: Thomas Gleixner Signed-off-by: David Woodhouse Signed-off-by: Guenter Roeck 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 @@ -310,6 +310,7 @@ #define X86_FEATURE_AVX512_4FMAPS (18*32+ 3) /* AVX-512 Multiply Accumulation Single precision */ #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_FLUSH_L1D (18*32+28) /* Flush L1D cache */ #define X86_FEATURE_ARCH_CAPABILITIES (18*32+29) /* IA32_ARCH_CAPABILITIES MSR (Intel) */ #define X86_FEATURE_SPEC_CTRL_SSBD (18*32+31) /* "" Speculative Store Bypass Disable */