Received: by 2002:ac0:a874:0:0:0:0:0 with SMTP id c49csp396313ima; Fri, 15 Mar 2019 05:24:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwh/NTnMkmjtkG/f09fTGXi63VDark6wdvDZodhV7DcXJUAodr6cPezDSLsWPif+Y0HqVdc X-Received: by 2002:a62:5789:: with SMTP id i9mr3695379pfj.75.1552652647622; Fri, 15 Mar 2019 05:24:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552652647; cv=none; d=google.com; s=arc-20160816; b=BlV/OYruyD75cXZsP4tSsrMh6nGUauEwYGZDPJRr2JMIVPhJw77bsaevnXR6/zMP3n wDmgBB1c6xcQ9qjpVRDEHNQ1TuCe7xA+U1fgnT/bW0uVS2PMVcyJxHNBDiKIBE4WiNmM PkfA339Q6ioBV55hJyXTgn4L3aEdUXaMXRi8NJ1TNIswJgKpym/knmgmjAqtK2dpuCBl fP+ayD4otTQ7+1fJzIKYIgcN6YU5p+BjYKGXSbNDqIkw/6pFnHvwaeUV/Vo+cGeaWoSN aImG66TF+d8FAwTa4ImrWloJyhlLExI1L8JcfSY31Psojhb/YEW4P0AltQBcls61pzY7 9nHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-language :accept-language:message-id:date:thread-index:thread-topic:subject :cc:to:from; bh=MKlGKAyF4z8CjJ/FiDgYugzDUXzVEJEtD6kxlhBNOCU=; b=c8UhY+aKbC36+niJ1RtRbvKwUfPYSD+CHKeO2i8zUUdLg4mWtasTgYElkZv0isWKQY tbNZYSiYVIuDldieAfJbe9UDCGK/3x/WUKNyDUHaiZWRDdrv4yVhlrw4ssERQZ3kPseG lAh1zl7jy+qQVm7RvN5YRz2OV2eeezQgDTIqIfFH/ixDsc5Zh72U4NWjAZsol7vzr6BH +s5ov5nvlC4mQekwuueGAb5+swNTtIm7Ul3301ezbqknMXrDTXCOxI1jD9cq7Dx4TfR/ H4w2mq/0jcHV3yA39cRfmKAw8n4/uVjRIC5yyIQpVBHBDECd+UGzZq7UGLPyWmyUR2oI 24/g== 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 x12si1627980pgp.286.2019.03.15.05.23.52; Fri, 15 Mar 2019 05:24:07 -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 S1728258AbfCOMXQ (ORCPT + 99 others); Fri, 15 Mar 2019 08:23:16 -0400 Received: from mgwym02.jp.fujitsu.com ([211.128.242.41]:65335 "EHLO mgwym02.jp.fujitsu.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726996AbfCOMXP (ORCPT ); Fri, 15 Mar 2019 08:23:15 -0400 Received: from yt-mxq.gw.nic.fujitsu.com (unknown [192.168.229.66]) by mgwym02.jp.fujitsu.com with smtp id 28b5_d1c2_d8ae4ca9_faab_4e5d_8232_28a8d91cc97e; Fri, 15 Mar 2019 21:23:07 +0900 Received: from g01jpfmpwkw01.exch.g01.fujitsu.local (g01jpfmpwkw01.exch.g01.fujitsu.local [10.0.193.38]) by yt-mxq.gw.nic.fujitsu.com (Postfix) with ESMTP id 7D3FEAC00B7 for ; Fri, 15 Mar 2019 21:23:07 +0900 (JST) Received: from G01JPEXCHKW15.g01.fujitsu.local (G01JPEXCHKW15.g01.fujitsu.local [10.0.194.54]) by g01jpfmpwkw01.exch.g01.fujitsu.local (Postfix) with ESMTP id D55C9692597; Fri, 15 Mar 2019 21:22:37 +0900 (JST) Received: from G01JPEXMBKW02.g01.fujitsu.local ([10.0.194.66]) by g01jpexchkw15 ([10.0.194.54]) with mapi id 14.03.0415.000; Fri, 15 Mar 2019 21:22:36 +0900 From: "Okamoto, Takayuki" To: 'Will Deacon' , 'Mark Rutland' , 'Catalin Marinas' , "'James Morse'" , "'linux-kernel@vger.kernel.org'" , "'linux-arm-kernel@lists.infradead.org'" CC: "Zhang, Lei" Subject: [RESEND PATCH] Make Fujitsu Erratum 010001 patch can be applied on A64FX v1r0 Thread-Topic: [RESEND PATCH] Make Fujitsu Erratum 010001 patch can be applied on A64FX v1r0 Thread-Index: AdTbJFde57o7xnMQR9OpSdZTOYeW4w== Date: Fri, 15 Mar 2019 12:22:36 +0000 Message-ID: <5FA513F682BE7F4EAAB8EE035D5B08E44E9363CC@G01JPEXMBKW02> Accept-Language: ja-JP, en-US Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.87.120.48] Content-Type: text/plain; charset="iso-2022-jp" MIME-Version: 1.0 X-SecurityPolicyCheck-GC: OK by FENCE-Mail X-TM-AS-MML: disable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I resend the patch due to whitespace munging. > -----Original Message----- > From: James Morse > Sent: Wednesday, February 27, 2019 3:44 AM > To: james.morse@arm.com; linux-arm-kernel@lists.infradead.org > Cc: linux-kernel@vger.kernel.org; Catalin Marinas > ; Mark Rutland ; Will > Deacon ; Zhang, Lei > Subject: [PATCH v5] arm64: Add workaround for Fujitsu A64FX erratum > 010001 > > +/* Fujitsu Erratum 010001 affects A64FX 1.0 and 1.1, (v0r0 and v1r0) */ > +#define MIDR_FUJITSU_ERRATUM_010001 > MIDR_FUJITSU_A64FX > +#define MIDR_FUJITSU_ERRATUM_010001_MASK > (~MIDR_VARIANT(1)) This workaround for the erratum should be applied for both A64FX v1r0 and v0r0, however, the patch v5 is only enabled on A64FX v0r0(MIDR.Variant == 0 && MIDR.Revision == 0). This issue is caused by the macro MIDR_FUJITSU_ERRATUM_010001_MASK. I have tested on both A64FX v1r0 and v0r0. This new patch will effect only for A64FX. -- Changed to be applied for not only A64FX v0r0 but also v1r0. Signed-off-by: Zhang Lei --- arch/arm64/include/asm/cputype.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/cputype.h b/arch/arm64/include/asm/cputype.h index 2afb133..1fb47b5 100644 --- a/arch/arm64/include/asm/cputype.h +++ b/arch/arm64/include/asm/cputype.h @@ -129,7 +129,7 @@ /* Fujitsu Erratum 010001 affects A64FX 1.0 and 1.1, (v0r0 and v1r0) */ #define MIDR_FUJITSU_ERRATUM_010001 MIDR_FUJITSU_A64FX -#define MIDR_FUJITSU_ERRATUM_010001_MASK (~MIDR_VARIANT(1)) +#define MIDR_FUJITSU_ERRATUM_010001_MASK (~(0x1 << MIDR_VARIANT_SHIFT)) #define TCR_CLEAR_FUJITSU_ERRATUM_010001 (TCR_NFD1 | TCR_NFD0) #ifndef __ASSEMBLY__ -- 1.8.3.1