From: Brijesh Singh <brijeshkumar.singh@amd.com>
To: Andre Przywara <andre.przywara@arm.com>,
Borislav Petkov <bp@alien8.de>, Hanjun Guo <guohanjun@huawei.com>
Cc: brijeshkumar.singh@amd.com, Mark Rutland <mark.rutland@arm.com>,
Arnd Bergmann <arnd@arndb.de>,
linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org,
robh+dt@kernel.org, pawel.moll@arm.com,
ijc+devicetree@hellion.org.uk, galak@codeaurora.org,
dougthompson@xmission.com, mchehab@osg.samsung.com,
linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
Huxinwei <huxinwei@huawei.com>
Subject: Re: [PATCH] EDAC: Add AMD Seattle SoC EDAC
Date: Wed, 21 Oct 2015 11:22:24 -0500 [thread overview]
Message-ID: <5627BBC0.2000008@amd.com> (raw)
In-Reply-To: <5627627A.9010906@arm.com>
On 10/21/2015 05:01 AM, Andre Przywara wrote:
> Hi,
>
> On 21/10/15 10:35, Borislav Petkov wrote:
>> On Wed, Oct 21, 2015 at 09:55:43AM +0800, Hanjun Guo wrote:
>>> So I think the meaning of those error register is the same, but the way
>>> of handle it may different from SoCs, for single bit error:
>>>
>>> - SoC may trigger a interrupt;
>>> - SoC may just keep silent so we need to scan the registers using poll
>>> mechanism.
>>>
>>> For Double bit error:
>>> - SoC may also keep silent
>>> - Trigger a interrupt
>>> - Trigger a SEI (system error)
>>>
>>> Any suggestion to cover those cases?
>>
>> Well, I guess we can implement all those and have them configurable
>> in the sense that a single driver loads, it has all functionality and
>> dependent on the vendor detection, it does only what the vendor wants
>> like trigger an interrupt or remain silent or ...
>
> I guess the firmware (running in EL3) will take precedence over this
> driver anyway, so we could just optimistically implement all errors, as
> the driver will just never see errors that are handled in firmware (?)
> In case of a critical error for instance I expect the firmware to never
> return to EL1.
>
>>
>> Btw, in talking about this with Andre last night, he had the suggestion
>> that this functionality is also in other implementations besides A57 so
>> maybe the driver should be called arm_cortex_edac...
>
> Yeah, so looking at the A-72 and the A-53 TRM I see those registers to
> be there as well. The A-72 and the A-57 versions look identical to me,
> the A-53 version is only slightly different, but apparently still
> compatible.
> So I'd suggest to let this driver load on detecting all three MIDRs.
> Should later revisions of any of those parts change the register
> meaning, we could add a blacklist or specific MIDR detection.
>
> But let's just not assume the worst in the first place ;-)
>
Ok. Will make it generic cortex_arm64_edac. Will check MIDR and call appropriate CPUMERRSR_EL1 and L2MERRSR_EL1. Since I don't have A53 and A72 hence my testing will be limited to Cortex A57.
> Cheers,
> Andre.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
next prev parent reply other threads:[~2015-10-21 16:22 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1445282597-18999-1-git-send-email-brijeshkumar.singh@amd.com>
2015-10-19 20:52 ` [PATCH] EDAC: Add AMD Seattle SoC EDAC Mark Rutland
2015-10-20 16:44 ` Brijesh Singh
[not found] ` <56266F7E.6030404-5C7GfCeVMHo@public.gmane.org>
2015-10-20 16:57 ` Borislav Petkov
[not found] ` <20151020165744.GE31130-fF5Pk5pvG8Y@public.gmane.org>
2015-10-20 17:26 ` Mark Rutland
2015-10-20 17:36 ` Borislav Petkov
[not found] ` <20151020173639.GH31130-fF5Pk5pvG8Y@public.gmane.org>
2015-10-20 17:41 ` Mark Rutland
2015-10-20 19:16 ` Brijesh Singh
2015-10-21 1:55 ` Hanjun Guo
[not found] ` <5626F09F.4050107-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2015-10-21 9:35 ` Borislav Petkov
[not found] ` <20151021093536.GA3575-fF5Pk5pvG8Y@public.gmane.org>
2015-10-21 10:01 ` Andre Przywara
2015-10-21 16:22 ` Brijesh Singh [this message]
2015-10-23 1:38 ` Hanjun Guo
2015-10-20 17:25 ` Mark Rutland
2015-10-21 1:45 ` Hanjun Guo
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=5627BBC0.2000008@amd.com \
--to=brijeshkumar.singh@amd.com \
--cc=andre.przywara@arm.com \
--cc=arnd@arndb.de \
--cc=bp@alien8.de \
--cc=devicetree@vger.kernel.org \
--cc=dougthompson@xmission.com \
--cc=galak@codeaurora.org \
--cc=guohanjun@huawei.com \
--cc=huxinwei@huawei.com \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-edac@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mchehab@osg.samsung.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.org \
/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).