Searched hist:b4175f8731f783c67b042492c9000f5fb7ecee4b (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/ipa/ |
H A D | gsi.c | diff b4175f8731f783c67b042492c9000f5fb7ecee4b Thu Nov 05 12:14:02 CST 2020 Alex Elder <elder@linaro.org> net: ipa: only enable GSI event control IRQs when needed
A GSI event ring causes an event control interrupt to fire whenever its state changes (between NOT_ALLOCATED and ALLOCATED). No event ring should ever change state except when we request it to.
Currently, we permit *all* events rings to generate event control interrupts--even those that are never used. And we enable event control interrupts essentially at all times, from setup to teardown.
Instead, only enable the event control interrupt type for the duration of an event ring command, and when doing so, only allow the event ring being operated upon to cause the interrupt to fire. Disallow all event rings from issuing the event control interrupt in gsi_irq_setup().
Because an event ring's interrupt is only enabled when needed, there is no longer any need to zero the event channel mask in gsi_irq_disable().
Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|