Message ID | c9df74a24c8cd28416fd0c67e7bcbb0aa116db28.1562908075.git.viresh.kumar@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp395409ilk; Thu, 11 Jul 2019 22:30:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBhKwQ1vE+PPE9aCTnTRQIST9KPJkafPuzol7ineVG2NovZhwDXeVSO7L0ALNkl54+T6eU X-Received: by 2002:a17:90a:ac11:: with SMTP id o17mr9528120pjq.134.1562909420398; Thu, 11 Jul 2019 22:30:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562909420; cv=none; d=google.com; s=arc-20160816; b=XUHjC54J7atAGB63u17jwAaN3JsKY6DiycK8RRxiUs01xEi2eNq7caF/93rScXhjOK a2K++yO01E3ZxP31l1t/H1F0776MXzYgm5i3WN6i9ME+o8KI6Ra/vlGWaR6KwezARYwp D2rH2h1P8iIBY765pECXQeSv49SlmJF7FY9qdJoq3coc43ZkoeVj8jXxVBdMToCdj9fe o/lQoUFlefLJ9iVVkzVpVEareinZDg+3MN1rhHaMXUwTw1Z12S9Gj575R2uc8kPNNya2 0kte3YKsnHALbx3NSXhcC0w/dO6RBzkxLTj//8hVqy76goG5IS2mwIZ0edfaYpXaQJR7 NIlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=sqSfnQDS8sjUZN/3AxA8S/yruKf46+OQJxAy5E4hEak=; b=kMgrqTCgAw8wEXAT+xK8aW6wFSrXKA6uFihZ3AVGrmI1ixhAqolSnujEACw7bA2DlV jajfwCSC+nGXDH1rHJR128PBe66IH/ZN2iLCTPih4QaL2TUnMLMM5c2kWfP++oWh1b6S CK3PYnAoYlpweH91bhQG5HGU41+2KSA0ic0pCveG2m3i4UPtQwxDHek51anywvF+eGPY SlccHPOniKWn7U1iOzjuZrkdrAhMXl8aX7Qo3jdZ9NwKah99pG0KdGFGe0jh3cq4OzkE ZuKq7YPaRtiNZP16oqVft7IRCATaT2fp8ds+ubHd5KhplLvOFnguaZdvqOiDzPMr71nm 7dhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="VyKNs/FI"; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <stable-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e36si5303191pgm.17.2019.07.11.22.30.19; Thu, 11 Jul 2019 22:30:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="VyKNs/FI"; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726091AbfGLFaT (ORCPT <rfc822;matthew.hart@linaro.org> + 13 others); Fri, 12 Jul 2019 01:30:19 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:44856 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725791AbfGLFaS (ORCPT <rfc822;stable@vger.kernel.org>); Fri, 12 Jul 2019 01:30:18 -0400 Received: by mail-pg1-f193.google.com with SMTP id i18so3990804pgl.11 for <stable@vger.kernel.org>; Thu, 11 Jul 2019 22:30:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sqSfnQDS8sjUZN/3AxA8S/yruKf46+OQJxAy5E4hEak=; b=VyKNs/FIWF1WM+ek3qH+rFuK/9b+IRraNhUiCTZq+VByH2PDsFM+ZzVRunnTcmKPD8 rcT+7o4Q6LLKSt+hECJSfZsOnVxQksi9+G04j+7c9D+rwj9fSFy9Bpmcxoj9P9beID+B mFxmSs4x0uUuTqCK4SLHZYIB1fFHlEs+U0rFQUCAEsnq32OieHmCUChUPgxm3M8moBit f4d9vB5rosS/682Fu9nyRtWjXyU4dyNkeXfOzFPFtkpCQfw0HjV3lIgeGX/bsztZaCdB WmK7QSt3X2aL1zwLoYlC78RttynyAtWptxxt5zlcSvEcI64wkoyifVkVwoWtjr1lNAQ3 v6mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sqSfnQDS8sjUZN/3AxA8S/yruKf46+OQJxAy5E4hEak=; b=Xeue+2zT1m39Kzxt3x/jLrzFYoo8LxgOHlQXf8/VdccPalzhmgQQqdhI1b9XdXO5PE wK/N0am/kqMnc7mXLdxaZFDDF2AeZ8THi5Mr3RqEyLwqSJ8IKIKV7yp9PyDkuwXbjUpS 4X9xs7Egg5mm0Nkdimf9TkwhMDPbhwO1N7D2E2L+RAp414D29rQyaWQUkFa4jp9QmQiW w0QL59UrpEP7eqhyuvs5KpN6uu5Yw0dzwSHbJhtKIBS+VznJE3TZeyr6Uf2fmqQJboW+ KiygA8cTAmSdpdYVFcz0Ooy9vT8JmoCUeqgRi9p7mtlr/WI2zxhTYIzmFflf3pxNty8n shCQ== X-Gm-Message-State: APjAAAV+LEG+aTm34NsIrbAQXN5pY+ailQNWAabHrrt78dPYAgzPZu/I 3fNdSvbHSd2kQTHonK7zlYr/kDktBz4= X-Received: by 2002:a17:90a:4f0e:: with SMTP id p14mr9130229pjh.40.1562909418024; Thu, 11 Jul 2019 22:30:18 -0700 (PDT) Received: from localhost ([122.172.28.117]) by smtp.gmail.com with ESMTPSA id n26sm8177303pfa.83.2019.07.11.22.30.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Jul 2019 22:30:17 -0700 (PDT) From: Viresh Kumar <viresh.kumar@linaro.org> To: stable@vger.kernel.org, Julien Thierry <Julien.Thierry@arm.com> Cc: Viresh Kumar <viresh.kumar@linaro.org>, linux-arm-kernel@lists.infradead.org, Catalin Marinas <catalin.marinas@arm.com>, Marc Zyngier <marc.zyngier@arm.com>, Mark Rutland <mark.rutland@arm.com>, Will Deacon <will.deacon@arm.com>, Russell King <rmk+kernel@arm.linux.org.uk>, Vincent Guittot <vincent.guittot@linaro.org>, mark.brown@arm.com Subject: [PATCH v4.4 V2 29/43] arm64: cpu_errata: Allow an erratum to be match for all revisions of a core Date: Fri, 12 Jul 2019 10:58:17 +0530 Message-Id: <c9df74a24c8cd28416fd0c67e7bcbb0aa116db28.1562908075.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.21.0.rc0.269.g1a574e7a288b In-Reply-To: <cover.1562908074.git.viresh.kumar@linaro.org> References: <cover.1562908074.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
V4.4 backport of arm64 Spectre patches
|
expand
|
diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c index 19c51d1cd302..80765feae955 100644 --- a/arch/arm64/kernel/cpu_errata.c +++ b/arch/arm64/kernel/cpu_errata.c @@ -124,6 +124,13 @@ static void install_bp_hardening_cb(const struct arm64_cpu_capabilities *entry, .midr_range_min = min, \ .midr_range_max = max +#define MIDR_ALL_VERSIONS(model) \ + .def_scope = SCOPE_LOCAL_CPU, \ + .matches = is_affected_midr_range, \ + .midr_model = model, \ + .midr_range_min = 0, \ + .midr_range_max = (MIDR_VARIANT_MASK | MIDR_REVISION_MASK) + const struct arm64_cpu_capabilities arm64_errata[] = { #if defined(CONFIG_ARM64_ERRATUM_826319) || \ defined(CONFIG_ARM64_ERRATUM_827319) || \