]> git.ipfire.org Git - thirdparty/linux.git/commit - drivers/irqchip/irq-gic-v3.c
irqchip/gic-v3: Detect if GIC can support pseudo-NMIs
authorJulien Thierry <julien.thierry@arm.com>
Thu, 31 Jan 2019 14:58:57 +0000 (14:58 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 6 Feb 2019 10:05:21 +0000 (10:05 +0000)
commitd98d0a990ca1446d3c0ca8f0b9ac127a66e40cdf
tree8192b29016e657d8473494f135e150c8370c779b
parentb334481ab76b2a9031aef5393b07de6d21a08244
irqchip/gic-v3: Detect if GIC can support pseudo-NMIs

The values non secure EL1 needs to use for PMR and RPR registers depends on
the value of SCR_EL3.FIQ.

The values non secure EL1 sees from the distributor and redistributor
depend on whether security is enabled for the GIC or not.

To avoid having to deal with two sets of values for PMR
masking/unmasking, only enable pseudo-NMIs when GIC has non-secure view
of priorities.

Also, add firmware requirements related to SCR_EL3.

Signed-off-by: Julien Thierry <julien.thierry@arm.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Documentation/arm64/booting.txt
drivers/irqchip/irq-gic-v3.c