OSDN Git Service

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)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Oct 2019 18:18:56 +0000 (11:18 -0700)
commit11d49ce9f7946dfed4dcf5dbde865c78058b50ab
treeec0b916171e894da3f67997cecc34d929eeb125d
parentc23936fad79ea2bea749db19b8921bb4dc524905
net/ibmvnic: Fix EOI when running in XIVE mode.

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>
drivers/net/ethernet/ibm/ibmvnic.c