From: Ian Campbell <ian.campbell@citrix.com>
To: Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>,
Julien Grall <julien.grall@linaro.org>, Tim Deegan <tim@xen.org>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Subject: [PATCH 0/2] xen: arm: warn for gic and arch timer misconfiguration
Date: Thu, 19 Feb 2015 15:39:21 +0000 [thread overview]
Message-ID: <1424359395.30924.89.camel@citrix.com> (raw)
(Marc, you are just CCd FYI after our conversation last week, I don't
imagine you care much about the actual patches, so I didn't send them to
you, I can if you like)
In f688aec47c45 "xen/arm: Handle platforms with edge-triggered virtual
timer" we added a workaround for an issue seen on fast models with edge
triggered timer interrupts. Such a configuration doesn't make much sense
given the designed behaviour of the generic timers (the spec doesn't
explicitly say the IRQ must be level triggered, but the event condition
is described in terms of a >= inequality and it is strongly implied that
it behaves like a level triggered interrupt) and it has been bugging me
since.
I think I've finally gotten to the bottom of what is going on.
There are two overlapping issues, the first of which is that a number of
device tree files in the field incorrectly describe the arch timer
interrupts as edge-triggered. This includes the ones for models
published at http://www.linux-arm.org/git?p=arm-dts.git;a=summary and
https://github.com/ARM-software/arm-trusted-firmware as well as various
DTs for real hardware platforms shipped in linux.git (e.g.
apm-storm.dtsi is wrong).
The second issue is that on the models the GICD.ICFGR bits associated
with the timer PPI interrupts are actually writeable so that the
incorrect device tree description can be propagated to the real
hardware. It is IMPLEMENTATION DEFINED whether ICFGR is writeable for a
PPI and so far all the real platforms I've looked at (which is
admittedly not very many) do not allow the timer PPI configurations to
be written.
On the models (and so far nowhere else) these two issues combine to end
up with an edge triggered timer interrupt getting configured.
This little series adds warnings for both these cases in case we see
them on non-emulated platforms in the future.
Ian.
next reply other threads:[~2015-02-19 15:39 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-19 15:39 Ian Campbell [this message]
2015-02-19 15:24 ` [PATCH 1/2] xen: arm: log warning for interrupt configuration mismatch Ian Campbell
2015-02-19 15:45 ` Julien Grall
2015-02-28 22:12 ` Julien Grall
2015-03-02 11:12 ` Ian Campbell
2015-03-02 12:56 ` Julien Grall
2015-03-02 13:42 ` Ian Campbell
2015-03-02 13:48 ` Julien Grall
2015-03-02 13:53 ` Ian Campbell
2015-03-02 14:02 ` Julien Grall
2015-03-02 14:41 ` Ian Campbell
2015-03-02 17:01 ` Ian Campbell
2015-03-03 12:20 ` Julien Grall
2015-02-19 15:24 ` [PATCH 2/2] xen: arm: Warn if timer interrupts are not level triggered Ian Campbell
2015-02-19 15:41 ` Julien Grall
2015-02-19 16:10 ` Ian Campbell
2015-02-19 16:20 ` Julien Grall
2015-02-25 14:36 ` Ian Campbell
2015-02-28 22:20 ` Julien Grall
2015-03-02 11:13 ` Ian Campbell
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=1424359395.30924.89.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=Stefano.Stabellini@eu.citrix.com \
--cc=julien.grall@linaro.org \
--cc=marc.zyngier@arm.com \
--cc=tim@xen.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.