]> git.baikalelectronics.ru Git - kernel.git/commit
pci_irq_vector() can't be used in atomic context any longer. This conflicts
authorThomas Gleixner <tglx@linutronix.de>
Fri, 29 Apr 2022 13:54:24 +0000 (15:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 May 2022 16:02:23 +0000 (17:02 +0100)
commit04ba3de85d57b496ddc037d574cdc084d234e8d1
tree120b3f14b1700946e8eeb73d267b586549f8856a
parent42839d03f5ce9a8623e3231ec7824ba6950f4b8a
pci_irq_vector() can't be used in atomic context any longer. This conflicts
with the usage of this function in nic_mbx_intr_handler().

Cache the Linux interrupt numbers in struct nicpf and use that cache in the
interrupt handler to select the mailbox.

Fixes: 124f240c5c47 ("genirq/msi: Convert to new functions")
Reported-by: Ondrej Mosnacek <omosnace@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Sunil Goutham <sgoutham@marvell.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Paolo Abeni <pabeni@redhat.com>
Cc: netdev@vger.kernel.org
Cc: stable@vger.kernel.org
Link: https://bugzilla.redhat.com/show_bug.cgi?id=2041772
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nic_main.c