powerpc/eeh: Disable EEH on reboot
authorGavin Shan <shangw@linux.vnet.ibm.com>
Wed, 12 Feb 2014 07:24:56 +0000 (15:24 +0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 17 Feb 2014 00:19:39 +0000 (11:19 +1100)
commit66f9af83e56bfa12964d251df9d60fb571579913
tree0e4a3439cd8b3675f5a2cac4d4a010fd00698e23
parent2ec5a0adf60c23bb6b0a95d3b96a8c1ff1e1aa5a
powerpc/eeh: Disable EEH on reboot

We possiblly detect EEH errors during reboot, particularly in kexec
path, but it's impossible for device drivers and EEH core to handle
or recover them properly.

The patch registers one reboot notifier for EEH and disable EEH
subsystem during reboot. That means the EEH errors is going to be
cleared by hardware reset or second kernel during early stage of
PCI probe.

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/eeh.c
arch/powerpc/platforms/powernv/eeh-ioda.c