Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1345911img; Tue, 19 Mar 2019 05:54:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxv9v4gw78wttNDYksuJi5BcFHqlk+lPlOUgt1KvU3e5Tic50r9u09c0eCmSzA9v9ZovzV0 X-Received: by 2002:a17:902:6b05:: with SMTP id o5mr1934295plk.90.1553000040775; Tue, 19 Mar 2019 05:54:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553000040; cv=none; d=google.com; s=arc-20160816; b=j6QZ7Y7crMhvmJsJ8vBAjFLyuGxdRTu6yS5Q54QVsrMrJeW/qEAJh8K+YO5mgea6tJ Fo3AI4OKPe2dqBVTnFJ15SKeRHjTUPdvs0LUUXcqj3f1YeCaTMEmhd82LNiitAKYMIca PYMhYgUrTS/WyCkGCezOc1+Id3aC9152MaLMCXBNlsOft+Rw9RcZ+lJN312Xj6vVz9eE 2ay9zbAHLIExxrG/jOfKeu3OLKlSEqNEvwQNTVM5m1B0bx1eTvTV+Rk/5xGyju20BBZg hzAioVdfWwPbaqqst4JzEQfAcwgZmDz1zBV1krxz3RObax3IcgmM2+11tzaQ0Uw2Jz0u S6Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=w7JjJBg9ke0ovsrCfa/3FK/EmzxkcrahHqViUTNaSk8=; b=jOUnKZD/6ChBAxG/5M43zC8JRAWYkaK29Dz9inc0awua0vJ8JY2+kEODZQT+kywsMr 89+mXl9Chtk9YiaU7hMEF2gWvze3xH1ew0VTixD1tUm9N7pZZ11jwO+Inng4TORUs3Yy qqsd8Dn5rQYVwOajqSpbqEbC9zjzrynPKMNxLgsa86FmYehyZ4100Ce4gcPDXEhGChtf OtZ+eInCK5QRHykQSlwsvTcwbXNb0ADQ8RT/v+5Nap38Tg/6bm4DZxMkuB8UzkxWkA53 oVpQRMRHNH2MpIVSyo0Bj8caZ0e9u2594oI3LU0rzQvQKliD50SVNKgxeMPAQMJk5yHu Kh/Q== 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 c15si11529337pls.144.2019.03.19.05.53.45; Tue, 19 Mar 2019 05:54:00 -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 S1726944AbfCSMxD (ORCPT + 99 others); Tue, 19 Mar 2019 08:53:03 -0400 Received: from foss.arm.com ([217.140.101.70]:51108 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725951AbfCSMxC (ORCPT ); Tue, 19 Mar 2019 08:53:02 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7707D1596; Tue, 19 Mar 2019 05:53:02 -0700 (PDT) Received: from arrakis.emea.arm.com (arrakis.cambridge.arm.com [10.1.196.78]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 204D33F59C; Tue, 19 Mar 2019 05:53:00 -0700 (PDT) Date: Tue, 19 Mar 2019 12:52:58 +0000 From: Catalin Marinas To: Mark Rutland Cc: "Zhang, Lei" , "Okamoto, Takayuki" , Will Deacon , James Morse , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [RESEND PATCH] Make Fujitsu Erratum 010001 patch can be applied on A64FX v1r0 Message-ID: <20190319125258.GD59586@arrakis.emea.arm.com> References: <5FA513F682BE7F4EAAB8EE035D5B08E44E9363CC@G01JPEXMBKW02> <20190315151241.GC48314@lakrids.cambridge.arm.com> <8898674D84E3B24BA3A2D289B872026A6A35627D@G01JPEXMBKW03> <20190318120454.GA3697@lakrids.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190318120454.GA3697@lakrids.cambridge.arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 18, 2019 at 12:06:06PM +0000, Mark Rutland wrote: > From 6439e9c0b1525e9d4c7be65552e6f2b1f9d1dbe0 Mon Sep 17 00:00:00 2001 > From: "Okamoto, Takayuki" > Date: Fri, 15 Mar 2019 12:22:36 +0000 > Subject: [PATCH] arm64: apply workaround on A64FX v1r0 > > Fujitsu erratum 010001 applies to A64FX v0r0 and v1r0, and we try to > handle either by masking MIDR with MIDR_FUJITSU_ERRATUM_010001_MASK > before comparing it to MIDR_FUJITSU_ERRATUM_010001. > > Unfortunately, MIDR_FUJITSU_ERRATUM_010001 is constructed incorrectly > using MIDR_VARIANT(), which is intended to extract the variant field > from MIDR_EL1, rather than generate the field in-place. This results in > MIDR_FUJITSU_ERRATUM_010001 being all-ones, and we only match A64FX > v0r0. > > This patch uses MIDR_CPU_VAR_REV() to generate an in-place mask for the > variant field, ensuring the we match both v0r0 and v1r0. > > Fixes: 3e32131abc311a5c ("arm64: Add workaround for Fujitsu A64FX erratum 010001") > Signed-off-by: Zhang Lei > [Mark: use MIDR_CPU_VAR_REV(), reword commit message] > Signed-off-by: Mark Rutland Thanks. Mark's variant queued for 5.1-rc2. -- Catalin