]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/ti-sci-inta: Fix processing of masked irqs
authorGrygorii Strashko <grygorii.strashko@ti.com>
Wed, 8 Apr 2020 19:15:32 +0000 (22:15 +0300)
committerMarc Zyngier <maz@kernel.org>
Fri, 17 Apr 2020 07:59:28 +0000 (08:59 +0100)
commit4ad03e03a8fca22f1a7c98b1aca9525d38c1d25e
tree28d505d97c3bf3645b5a5791562a728911141d95
parent33468a013d9e0b1869d31c822d3d7fe2defe427e
irqchip/ti-sci-inta: Fix processing of masked irqs

The ti_sci_inta_irq_handler() does not take into account INTA IRQs state
(masked/unmasked) as it uses INTA_STATUS_CLEAR_j register to get INTA IRQs
status, which provides raw status value.
This causes hard IRQ handlers to be called or threaded handlers to be
scheduled many times even if corresponding INTA IRQ is masked.
Above, first of all, affects the LEVEL interrupts processing and causes
unexpected behavior up the system stack or crash.

Fix it by using the Interrupt Masked Status INTA_STATUSM_j register which
provides masked INTA IRQs status.

Fixes: 789186bf61ef ("irqchip/ti-sci-inta: Add support for Interrupt Aggregator driver")
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Link: https://lore.kernel.org/r/20200408191532.31252-1-grygorii.strashko@ti.com
Cc: stable@vger.kernel.org
drivers/irqchip/irq-ti-sci-inta.c