net/ibmvnic: Fix EOI when running in XIVE mode.
authorCédric Le Goater <clg@kaod.org>
Fri, 11 Oct 2019 05:52:54 +0000 (07:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2019 08:19:41 +0000 (09:19 +0100)
commitcc2d858b3f7379d58e63936e834f3d00e260bf13
tree34089c16c3f3cdbb4f1878f14131f678de8d035f
parent3f9d4e3c2954f0bb059062802209ee4258b19755
net/ibmvnic: Fix EOI when running in XIVE mode.

[ Upstream commit 11d49ce9f7946dfed4dcf5dbde865c78058b50ab ]

pSeries machines on POWER9 processors can run with the XICS (legacy)
interrupt mode or with the XIVE exploitation interrupt mode. These
interrupt contollers have different interfaces for interrupt
management : XICS uses hcalls and XIVE loads and stores on a page.
H_EOI being a XICS interface the enable_scrq_irq() routine can fail
when the machine runs in XIVE mode.

Fix that by calling the EOI handler of the interrupt chip.

Fixes: f23e0643cd0b ("ibmvnic: Clear pending interrupt after device reset")
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/ibm/ibmvnic.c