linux/arch/powerpc
Gavin Shan 5efc3ad732 powerpc/eeh: Introduce EEH_PE_INVALID type PE
When EEH error happens on the PE whose PCI devices don't have
attached drivers. In function eeh_handle_event(), the default
value PCI_ERS_RESULT_NONE will be returned after iterating all
drivers of those PCI devices belonging to the PE. Actually, we
don't have installed drivers for the PCI devices. Under the
circumstance, we will remove the corresponding PCI bus of the PE,
including the associated EEH devices and PE instance. However,
we still need the information stored in the PE instance to do PE
reset after that. So it's unsafe to free the PE instance.

The patch introduces EEH_PE_INVALID type PE to address the issue.
When the PCI bus and the corresponding attached EEH devices are
removed, we will mark the PE as EEH_PE_INVALID. At later point,
the PE will be changed to EEH_PE_DEVICE or EEH_PE_BUS when the
corresponding EEH devices are attached again.

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2012-09-18 15:02:49 +10:00
..
boot powerpc: Fix build dependencies for c files requiring libfdt.h 2012-09-07 11:44:27 +10:00
configs powerpc: Add denormalisation exception handling for POWER6/7 2012-09-17 16:31:47 +10:00
include/asm powerpc/eeh: Introduce EEH_PE_INVALID type PE 2012-09-18 15:02:49 +10:00
kernel powerpc/trace: Fix interrupt tracepoints vs. RCU 2012-09-17 16:31:54 +10:00
kvm powerpc/mm: Convert virtual address to vpn 2012-09-17 16:31:49 +10:00
lib powerpc: Don't use __put_user() in patch_instruction 2012-09-05 16:05:23 +10:00
math-emu powerpc/math_emu/efp: Look for errata handler when type mismatches 2011-10-06 23:36:47 -05:00
mm powerpc/mm: Make some of the PGTABLE_RANGE dependency explicit 2012-09-17 16:31:53 +10:00
net powerpc: Start using ___PPC_RA/B/S/T where necessary 2012-07-10 19:18:25 +10:00
oprofile powerpc/oprofile: Fix marked events support on Power7+ not set. 2012-09-07 11:10:54 +10:00
perf Merge branch 'merge' into next 2012-09-07 09:48:59 +10:00
platforms powerpc/eeh: Introduce EEH_PE_INVALID type PE 2012-09-18 15:02:49 +10:00
sysdev Merge branch 'merge' into next 2012-09-07 09:48:59 +10:00
xmon powerpc: Add an xmon command to dump one or all pacas 2012-09-18 15:02:36 +10:00
Kconfig powerpc: Add denormalisation exception handling for POWER6/7 2012-09-17 16:31:47 +10:00
Kconfig.debug powerpc: IOMMU fault injection 2012-07-10 19:18:59 +10:00
Makefile crypto: nx - move nx build to driver/crypto Makefile 2012-06-27 14:42:00 +08:00
relocs_check.pl powerpc: Process dynamic relocations for kernel 2011-12-20 10:21:08 -05:00