aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinas Vepstas <linas@linas.org>2005-11-03 19:49:45 -0500
committerPaul Mackerras <paulus@samba.org>2005-11-09 19:35:49 -0500
commitf8632c822719cce08cfb128859e354007744cbba (patch)
tree3abc7f6ce623e300d612941225bfeb7695a5dcc6
parent18126f35f69c928af26ec1dda2cb91b23220cdd4 (diff)
[PATCH] ppc64: bugfix: don't silently ignore PCI errors
10-EEH-enable-bugfix.patch Bugfix: With the curent linux-2.6.14-rc2-git6, EEH errors are ignored because thier detection requires an unused, uninitialized flag to be set. This patch removes the unused flag. Signed-off-by: Linas Vepstas <linas@austin.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r--arch/ppc64/kernel/eeh.c5
-rw-r--r--include/asm-ppc64/pci-bridge.h1
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/ppc64/kernel/eeh.c b/arch/ppc64/kernel/eeh.c
index 0c52c2de92e0..9df1d5018363 100644
--- a/arch/ppc64/kernel/eeh.c
+++ b/arch/ppc64/kernel/eeh.c
@@ -631,11 +631,12 @@ int eeh_dn_check_failure(struct device_node *dn, struct pci_dev *dev)
631 pdn = PCI_DN(dn); 631 pdn = PCI_DN(dn);
632 632
633 /* Access to IO BARs might get this far and still not want checking. */ 633 /* Access to IO BARs might get this far and still not want checking. */
634 if (!pdn->eeh_capable || !(pdn->eeh_mode & EEH_MODE_SUPPORTED) || 634 if (!(pdn->eeh_mode & EEH_MODE_SUPPORTED) ||
635 pdn->eeh_mode & EEH_MODE_NOCHECK) { 635 pdn->eeh_mode & EEH_MODE_NOCHECK) {
636 __get_cpu_var(ignored_check)++; 636 __get_cpu_var(ignored_check)++;
637#ifdef DEBUG 637#ifdef DEBUG
638 printk ("EEH:ignored check for %s %s\n", pci_name (dev), dn->full_name); 638 printk ("EEH:ignored check (%x) for %s %s\n",
639 pdn->eeh_mode, pci_name (dev), dn->full_name);
639#endif 640#endif
640 return 0; 641 return 0;
641 } 642 }
diff --git a/include/asm-ppc64/pci-bridge.h b/include/asm-ppc64/pci-bridge.h
index 60cf8c838af0..efbdaece0cf0 100644
--- a/include/asm-ppc64/pci-bridge.h
+++ b/include/asm-ppc64/pci-bridge.h
@@ -63,7 +63,6 @@ struct pci_dn {
63 int devfn; /* for pci devices */ 63 int devfn; /* for pci devices */
64 int eeh_mode; /* See eeh.h for possible EEH_MODEs */ 64 int eeh_mode; /* See eeh.h for possible EEH_MODEs */
65 int eeh_config_addr; 65 int eeh_config_addr;
66 int eeh_capable; /* from firmware */
67 int eeh_check_count; /* # times driver ignored error */ 66 int eeh_check_count; /* # times driver ignored error */
68 int eeh_freeze_count; /* # times this device froze up. */ 67 int eeh_freeze_count; /* # times this device froze up. */
69 int eeh_is_bridge; /* device is pci-to-pci bridge */ 68 int eeh_is_bridge; /* device is pci-to-pci bridge */