]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/eeh: Can't recover from non-PE-reset case
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Thu, 24 Apr 2014 08:00:26 +0000 (18:00 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 28 Apr 2014 07:35:01 +0000 (17:35 +1000)
commitc84129f385402174ecb5bc676ab14e35166f81c0
tree31a71ea26a6f128ab9a3115b335d9c03a86eb746
parent194fbd03374880b4068609c5e67e6b43bb387658
powerpc/eeh: Can't recover from non-PE-reset case

When PCI_ERS_RESULT_CAN_RECOVER returned from device drivers, the
EEH core should enable I/O and DMA for the affected PE. However,
it was missed to have DMA enabled in eeh_handle_normal_event().
Besides, the frozen state of the affected PE should be cleared
after successful recovery, but we didn't.

The patch fixes both of the issues as above.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/eeh_driver.c