powerpc/pseries: PCIE PHB reset
authorWen Xiong <wenxiong@linux.vnet.ibm.com>
Mon, 13 Jul 2020 14:39:33 +0000 (09:39 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Jul 2020 07:43:30 +0000 (17:43 +1000)
commit5a090f7c363fdc09b99222eae679506a58e7cc68
treed769be6579147a2f1bd2d6698c985556a6dbdfb6
parent2384b36f9156c3b815a5ce5f694edc5054ab7625
powerpc/pseries: PCIE PHB reset

Several device drivers hit EEH(Extended Error handling) when
triggering kdump on Pseries PowerVM. This patch implemented a reset of
the PHBs in pci general code when triggering kdump. PHB reset stop all
PCI transactions from normal kernel. We have tested the patch in
several enviroments:
  - direct slot adapters
  - adapters under the switch
  - a VF adapter in PowerVM
  - a VF adapter/adapter in KVM guest.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
[mpe: Fix broken whitespace, subject & SOB formatting]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1594651173-32166-1-git-send-email-wenxiong@linux.vnet.ibm.com
arch/powerpc/platforms/pseries/eeh_pseries.c