From: marc.zyngier@arm.com (Marc Zyngier)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 1/2] clocksource/arm_arch_timer: Force per-CPU interrupt to be level-triggered
Date: Sun, 12 Jun 2016 11:12:40 +0100 [thread overview]
Message-ID: <20160612111240.7dc99322@arm.com> (raw)
In-Reply-To: <CANe6Qb_sx8_rRHZG1PR=A+cgxqYTzreZ0rD01X-gtEDb=h1cVQ@mail.gmail.com>
On Sat, 11 Jun 2016 13:02:44 +0100
Ben Dooks <bjdooks@googlemail.com> wrote:
> out of interest, do you have a list of what the problems are?
The trigger configuration for per-cpu interrupts silently fails
(because set_irq_type cannot deal with them). Which means we're relying
on whatever configuration the firmware has left in there. Also, the
kernel defaults to considering the interrupt as edge.
What saves most platforms so far is that they are using a GIC:
1) Most GIC implementations have their PPI configuration as RO, which
means that we can't get it wrong.
2) If using a fasteoi handler, there is no significant difference in the
flow between edge and level (we're relying on the HW dealing with it,
so (1) is critical).
If your GIC allows PPI configuration to be written and firmware gets it
wrong, you'll miss interrupts. If you don't have a GIC, all bets are
off.
I've queued a number of patches to solve this, which I hope to send to
tglx tomorrow (after looking at this weekend test run).
Thanks,
M.
--
Jazz is not dead. It just smells funny.
next prev parent reply other threads:[~2016-06-12 10:12 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-06 17:56 [PATCH v3 0/2] arm/arm64: Fix architected timer interrupt trigger Marc Zyngier
2016-06-06 17:56 ` [PATCH v3 1/2] clocksource/arm_arch_timer: Force per-CPU interrupt to be level-triggered Marc Zyngier
2016-06-09 21:10 ` David Daney
2016-06-10 7:29 ` Marc Zyngier
2016-06-10 17:39 ` David Daney
2016-06-11 9:41 ` Marc Zyngier
[not found] ` <CANe6Qb_sx8_rRHZG1PR=A+cgxqYTzreZ0rD01X-gtEDb=h1cVQ@mail.gmail.com>
2016-06-12 10:12 ` Marc Zyngier [this message]
2016-07-05 4:37 ` Duc Dang
2016-06-06 17:56 ` [PATCH v3 2/2] arm64: dts: Fix broken architected timer interrupt trigger Marc Zyngier
2016-06-07 7:08 ` Krzysztof Kozlowski
2016-06-07 7:19 ` Michal Simek
2016-06-09 15:05 ` Dinh Nguyen
2016-06-09 15:23 ` Carlo Caione
2016-06-09 18:11 ` David Daney
2016-06-09 21:06 ` David Daney
2016-06-10 7:23 ` Marc Zyngier
2016-06-10 16:50 ` David Daney
2016-06-10 16:56 ` Marc Zyngier
2016-06-10 17:32 ` David Daney
2016-06-11 10:04 ` Marc Zyngier
2016-07-05 4:37 ` Duc Dang
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=20160612111240.7dc99322@arm.com \
--to=marc.zyngier@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 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).