From: James Morse <james.morse@arm.com>
To: "Zhang, Lei" <zhang.lei@jp.fujitsu.com>
Cc: Mark Rutland <mark.rutland@arm.com>,
'Catalin Marinas' <catalin.marinas@arm.com>,
'Will Deacon' <will.deacon@arm.com>,
"'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>,
"'linux-arm-kernel@lists.infradead.org'"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH v4] arm64: Add workaround for Fujitsu A64FX erratum 010001
Date: Mon, 25 Feb 2019 17:29:07 +0000 [thread overview]
Message-ID: <d391d125-86a9-82e3-5add-10a15e578dd7@arm.com> (raw)
In-Reply-To: <8898674D84E3B24BA3A2D289B872026A6A319D26@G01JPEXMBKW03>
Hi Zhang,
On 23/02/2019 13:06, Zhang, Lei wrote:
> Zhang, Lei wrote:
>> I think you mean it may be a problem to modify the KPTI trampoline because
>> some patches about KPTI will be merged to mainline in the near future.
>> I understood that.
>> I should discuss with my colleagues whether we can set NFDx=0 all of time on
>> A64FX.
>
> The result of our investigation also supports your suggestion.
> We surely agree with you that your proposed method (never set NFDx=1 on A64FX)
> is the best to resolve this erratum.
>
> For this erratum, James's patch should be merged to mainline
> instead of my previous patches (v1 to v4).
> Since KPTI fully covers the effect of NFD1 for A64FX, KPTI is
> recommended to be used in conjunction with James’s patch.
>> And thanks for your patch.
>> If we can set NFDx=0 all of time, I will review, test and report the result.
>
> I have already tested James's patch on A64FX, and the result is no problem at all.
>
> Tested-by:zhang.lei<zhang.lei@jp.fujitsu.com>
Thanks, I'll post it properly with this tag.
>> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index
>> a4168d366127..b0b7f1c4e816 100644
>> --- a/arch/arm64/Kconfig
>> +++ b/arch/arm64/Kconfig
>> @@ -643,6 +643,25 @@ config QCOM_FALKOR_ERRATUM_E1041
>>
>> If unsure, say Y.
>>
>> +config FUJITSU_ERRATUM_010001
>> + bool "Fujitsu-A64FX erratum E#010001: Undefined fault may occur wrongly"
>> + default y
>> + help
>> + This option adds workaround for Fujitsu-A64FX erratum E#010001.
>> + On some variants of the Fujitsu-A64FX cores version (1.0, 1.1), memory
>> + accesses may cause undefined fault (Data abort, DFSC=0b111111).
>> + This fault occurs under a specific hardware condition when a
>> + load/store instruction performs an address translation using:
>> + case-1 TTBR0_EL1 with TCR_EL1.NFD0 == 1.
>> + case-2 TTBR0_EL2 with TCR_EL2.NFD0 == 1.
>> + case-3 TTBR1_EL1 with TCR_EL1.NFD1 == 1.
>> + case-4 TTBR1_EL2 with TCR_EL2.NFD1 == 1.
>> +
>> + The workaround is to ensure these bits are clear in TCR_ELx.
>> + The workaround only affect the Fujitsu-A64FX.
>
> I think it is better to add a notice here as follows:
>
> Recommend to enable KPTI (UNMAP_KERNEL_AT_EL0 = y).
That unmap option is on by default, you can't turn it off without CONFIG_EXPERT. While I
agree, I don't think we need to spell this out.
Thanks,
James
next prev parent reply other threads:[~2019-02-25 17:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-14 7:26 [PATCH v4] arm64: Add workaround for Fujitsu A64FX erratum 010001 Zhang, Lei
2019-02-14 15:56 ` Mark Rutland
2019-02-14 18:22 ` James Morse
2019-02-15 12:36 ` Zhang, Lei
2019-02-23 13:06 ` Zhang, Lei
2019-02-25 17:29 ` James Morse [this message]
2019-02-27 6:20 ` Zhang, Lei
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d391d125-86a9-82e3-5add-10a15e578dd7@arm.com \
--to=james.morse@arm.com \
--cc=catalin.marinas@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=will.deacon@arm.com \
--cc=zhang.lei@jp.fujitsu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).