From: james.morse@arm.com (James Morse)
To: linux-arm-kernel@lists.infradead.org
Subject: EDAC driver for ARMv8 L1/L2 cache
Date: Thu, 08 Feb 2018 15:31:28 +0000 [thread overview]
Message-ID: <5A7C6D50.2000101@arm.com> (raw)
In-Reply-To: <HE1PR04MB207371A103409F815745F49A9AFA0@HE1PR04MB2073.eurprd04.prod.outlook.com>
Hi York,
On 01/02/18 20:56, York Sun wrote:
> On 01/15/2018 03:52 PM, Borislav Petkov wrote:
>> On Mon, Jan 15, 2018 at 11:28:14PM +0000, York Sun wrote:
>>> It is generic ARM64 thing. I believe only SError interrupt is available.
>>
>> So if it is, then I'd suggest you hammer out a proper design with the
>> ARM folks.
> I made some progress and need some help on coding. On the platform I am
> working on, it has A53 cores. Each A53 core has a signal nINTERRIRQ.
> They are connected to one GIC interrupt.
Is this a fatal signal for the CPU that should have received it? The signals
start out as being per-cpu, but configured like this you can only take the
interrupt one one CPU...
(is this thing edge or level triggered?)
> I managed to inject errors to some safe address without triggering system
> error and I got the interrupt.
(okay, sounds like its a corrected error)
> I will need to find out which core has errors by reading
> register on each core (and clear the interrupt). How can I do this
> within interrupt service routine? I tried to use
> smp_call_function_single() but it doesn't like the IRQ being disabled.
mm/memory-failure.c:memory_failure_queue() has an example of how you could do
this. It uses 'schedule_work_on()' to re-run after the IRQ, from there you
should be able to call something like on_each_cpu() or smp_call_function_many().
If this thing is level triggered you can't escape the irq-handler until its
cleared. If it needs clearing by a remote CPU this is going to be a problem.
Thanks,
James
next prev parent reply other threads:[~2018-02-08 15:31 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <VI1PR04MB2078DBC9381EA574CE5DA4B09A100@VI1PR04MB2078.eurprd04.prod.outlook.com>
2018-01-09 21:43 ` EDAC driver for ARMv8 L1/L2 cache Borislav Petkov
2018-01-09 21:51 ` York Sun
2018-01-09 22:00 ` Borislav Petkov
2018-01-12 16:38 ` Thor Thayer
2018-01-12 16:48 ` York Sun
2018-01-12 17:12 ` Borislav Petkov
2018-01-12 17:17 ` York Sun
2018-01-12 17:38 ` Mark Rutland
2018-01-12 17:44 ` York Sun
2018-01-12 18:00 ` Mark Rutland
2018-01-12 18:16 ` York Sun
2018-01-13 11:31 ` Borislav Petkov
2018-01-15 14:21 ` Mark Rutland
2018-01-15 14:32 ` Borislav Petkov
2018-01-15 14:49 ` Mark Rutland
2018-01-15 16:19 ` York Sun
2018-01-15 23:23 ` Borislav Petkov
2018-01-15 23:28 ` York Sun
2018-01-15 23:52 ` Borislav Petkov
2018-01-16 0:16 ` York Sun
2018-02-01 20:56 ` York Sun
2018-02-08 15:31 ` James Morse [this message]
2018-02-08 15:53 ` York Sun
2018-01-12 17:23 ` Mark Rutland
2018-01-12 17:39 ` Thor Thayer
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=5A7C6D50.2000101@arm.com \
--to=james.morse@arm.com \
--cc=linux-arm-kernel@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.