aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm
diff options
context:
space:
mode:
authorGavin Shan <shangw@linux.vnet.ibm.com>2012-09-07 18:44:20 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-09-09 19:35:43 -0400
commitdbbceee12f2160ef1ac848316212f97bf5bc4c16 (patch)
treede1065ac45c189d1ffbe621e8cd3557a0a3d7c9e /arch/powerpc/include/asm
parent9b3c76f08122f5efdbe4992a64b8478cc92dd983 (diff)
powerpc/eeh: Move stats to PE
The patch removes the eeh related statistics for eeh device since they have been maintained by the corresponding eeh PE. Also, the flags used to trace the state of eeh device and PE have been reworked for a little bit. Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm')
-rw-r--r--arch/powerpc/include/asm/eeh.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/powerpc/include/asm/eeh.h b/arch/powerpc/include/asm/eeh.h
index d25a693595f8..792d2d789751 100644
--- a/arch/powerpc/include/asm/eeh.h
+++ b/arch/powerpc/include/asm/eeh.h
@@ -77,20 +77,13 @@ struct eeh_pe {
77 * another tree except the currently existing tree of PCI 77 * another tree except the currently existing tree of PCI
78 * buses and PCI devices 78 * buses and PCI devices
79 */ 79 */
80#define EEH_MODE_SUPPORTED (1<<0) /* EEH supported on the device */ 80#define EEH_DEV_IRQ_DISABLED (1<<0) /* Interrupt disabled */
81#define EEH_MODE_NOCHECK (1<<1) /* EEH check should be skipped */
82#define EEH_MODE_ISOLATED (1<<2) /* The device has been isolated */
83#define EEH_MODE_RECOVERING (1<<3) /* Recovering the device */
84#define EEH_MODE_IRQ_DISABLED (1<<4) /* Interrupt disabled */
85 81
86struct eeh_dev { 82struct eeh_dev {
87 int mode; /* EEH mode */ 83 int mode; /* EEH mode */
88 int class_code; /* Class code of the device */ 84 int class_code; /* Class code of the device */
89 int config_addr; /* Config address */ 85 int config_addr; /* Config address */
90 int pe_config_addr; /* PE config address */ 86 int pe_config_addr; /* PE config address */
91 int check_count; /* Times of ignored error */
92 int freeze_count; /* Times of froze up */
93 int false_positives; /* Times of reported #ff's */
94 u32 config_space[16]; /* Saved PCI config space */ 87 u32 config_space[16]; /* Saved PCI config space */
95 struct eeh_pe *pe; /* Associated PE */ 88 struct eeh_pe *pe; /* Associated PE */
96 struct list_head list; /* Form link list in the PE */ 89 struct list_head list; /* Form link list in the PE */