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)
commit6b292a04c694573a302686323fe15b1c7e673e5b
tree120b3f14b1700946e8eeb73d267b586549f8856a
parentb6693611f71e1b9107a2d178c1f7d92c7d850891
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: 495c66aca3da ("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