From: James Morse <james.morse@arm.com>
To: gengdongjiu <gengdj.1984@gmail.com>
Cc: robin.murphy@arm.com,
arm-mail-list <linux-arm-kernel@lists.infradead.org>,
xuqiang36@huawei.com,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
gengdongjiu <gengdongjiu@huawei.com>
Subject: Re: Resend: How to handle the SMMU RAS Error in the kernel
Date: Mon, 19 Nov 2018 18:05:29 +0000 [thread overview]
Message-ID: <c8a1d0e7-338b-05e1-2d52-f13223515f49@arm.com> (raw)
In-Reply-To: <CAMj-D2DY_1eZUsbnqurx8j3q04Y8JKiM2CtPv+NTsswydo0TJQ@mail.gmail.com>
Hi gengdongjiu,
On 17/11/2018 15:41, gengdongjiu wrote:
> In the current kernel, it only handles three kinds of error, which is
> memory error, PCIE device and ARM process. But now the SMMU already
> support the RAS, how to handle the SMMU RAS error in the kernel?
What errors are being detected here?
I don't know much about the SMMU, but I think we should start with a list of
errors that we want to handle.
Is this a v8.2 fault handling interrupt from the SMMU taken to EL3?
Or a cpu-access that was returned as external-abort? or a device access that was
told external-abort?
What do we intend to do with this error information? Does the DMA layer have
error handling we can hook this into?
Is this just another interface for memory-errors? (e.g the SMMU provides a
device/address pair and the kernel works out the physical page to run
memory_failure() on)
> I check the UEFI_SPEC_2.7, the ACPI's CPER have the IOMMU type, but it
> seems the IOMMU type only are specific to AMD’s IOMMU specification,
... and Intel VT-d. It looks like UEFI generalises all these as types of 'DMAr'.
> not have the ARM’s IOMMU section type, can we reuse this IOMMU section
> type for the ARM SMMU?
The architecture specific records for AMD? No. Even if the information was the
same, the presence of this record tells you its an AMD IOMMU, which its not.
The generic error section? Maybe.
Assuming the 'fault reason' list in Table 285 is sufficient to cover our list or
errors, we can use the 'DMAr Generic Errors' section, (N.2.11.1), to describe
the generic bits of the error ... but SMMU doesn't have an 'Architecture Type',
so we at least need to get one allocated.
We will probably need an architecture specific 'DMAr Error Section'.
I think adding the UEFI bits is probably the 'easy' bit. We should start with a
list of errors, and the error handling code. This way we know what we need to
add to the spec.
Thanks,
James
next prev parent reply other threads:[~2018-11-19 18:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-17 15:41 gengdongjiu
2018-11-19 18:05 ` James Morse [this message]
2018-11-21 8:10 ` gengdongjiu
2018-11-30 18:37 ` James Morse
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=c8a1d0e7-338b-05e1-2d52-f13223515f49@arm.com \
--to=james.morse@arm.com \
--cc=gengdj.1984@gmail.com \
--cc=gengdongjiu@huawei.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robin.murphy@arm.com \
--cc=xuqiang36@huawei.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
all inboxes | Powered by JetHome®