]> xenbits.xensource.com Git - xen.git/commit
xen: arm: log warning for interrupt configuration mismatch
authorIan Campbell <ian.campbell@citrix.com>
Thu, 19 Feb 2015 15:24:02 +0000 (15:24 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 25 Feb 2015 13:45:00 +0000 (13:45 +0000)
commit7eb6564d2339c7c1c94b74a8228f34a8b4d6444f
tree7aa57a2c66118e77449dacb369bc4f2860026d86
parent67c7e46c7c78b36a3541c48bdb3b4739b932a426
xen: arm: log warning for interrupt configuration mismatch

The ICFGR register is not necessarily writeable, in particular it is
IMPLEMENTATION DEFINED for a PPI if the configuration register is
writeable. Log a warning if the hardware has ignored our write and
update the actual type in the irq descriptor so subsequent code can do
the right thing.

This most likely implies a buggy firmware description (e.g.
device-tree).

The issue is observed for example on the APM Mustang board where the
device tree (as shipped by Linux) describes all 3 timer interrupts as
rising edge but the PPI is hard-coded to level triggered (as makes
sense for an arch timer interrupt).

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Julien Grall <julien.grall@linaro.org>
Cc: Pranavkumar Sawargaonkar <psawargaonkar@apm.com>
xen/arch/arm/gic-v2.c
xen/arch/arm/gic-v3.c