Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28802
b: refs/heads/master
c: 0aa8d15
h: refs/heads/master
v: v3
  • Loading branch information
Linas Vepstas authored and Paul Mackerras committed Jun 21, 2006
1 parent b37641e commit b6e6034
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 379507181a1e330d4f5b0fabe61cd43eccf09763
refs/heads/master: 0aa8d15b01881ccaab5f2fb31eef33ced97ccb5f
35 changes: 22 additions & 13 deletions trunk/arch/powerpc/platforms/pseries/eeh_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,16 +261,22 @@ struct pci_dn * handle_eeh_events (struct eeh_event *event)
struct pci_bus *frozen_bus;
int rc = 0;
enum pci_ers_result result = PCI_ERS_RESULT_NONE;
const char *pci_str, *drv_str;
const char *location, *pci_str, *drv_str;

frozen_dn = find_device_pe(event->dn);
frozen_bus = pcibios_find_pci_bus(frozen_dn);

if (!frozen_dn) {
printk(KERN_ERR "EEH: Error: Cannot find partition endpoint for %s\n",
pci_name(event->dev));

location = (char *) get_property(event->dn, "ibm,loc-code", NULL);
location = location ? location : "unknown";
printk(KERN_ERR "EEH: Error: Cannot find partition endpoint "
"for location=%s pci addr=%s\n",
location, pci_name(event->dev));
return NULL;
}
location = (char *) get_property(frozen_dn, "ibm,loc-code", NULL);
location = location ? location : "unknown";

/* There are two different styles for coming up with the PE.
* In the old style, it was the highest EEH-capable device
Expand All @@ -282,8 +288,9 @@ struct pci_dn * handle_eeh_events (struct eeh_event *event)
frozen_bus = pcibios_find_pci_bus (frozen_dn->parent);

if (!frozen_bus) {
printk(KERN_ERR "EEH: Cannot find PCI bus for %s\n",
frozen_dn->full_name);
printk(KERN_ERR "EEH: Cannot find PCI bus "
"for location=%s dn=%s\n",
location, frozen_dn->full_name);
return NULL;
}

Expand Down Expand Up @@ -318,8 +325,9 @@ struct pci_dn * handle_eeh_events (struct eeh_event *event)

eeh_slot_error_detail(frozen_pdn, 1 /* Temporary Error */);
printk(KERN_WARNING
"EEH: This PCI device has failed %d times since last reboot: %s - %s\n",
frozen_pdn->eeh_freeze_count, drv_str, pci_str);
"EEH: This PCI device has failed %d times since last reboot: "
"location=%s driver=%s pci addr=%s\n",
frozen_pdn->eeh_freeze_count, location, drv_str, pci_str);

/* Walk the various device drivers attached to this slot through
* a reset sequence, giving each an opportunity to do what it needs
Expand Down Expand Up @@ -368,17 +376,18 @@ struct pci_dn * handle_eeh_events (struct eeh_event *event)
* due to actual, failed cards.
*/
printk(KERN_ERR
"EEH: PCI device %s - %s has failed %d times \n"
"and has been permanently disabled. Please try reseating\n"
"this device or replacing it.\n",
drv_str, pci_str, frozen_pdn->eeh_freeze_count);
"EEH: PCI device at location=%s driver=%s pci addr=%s \n"
"has failed %d times and has been permanently disabled. \n"
"Please try reseating this device or replacing it.\n",
location, drv_str, pci_str, frozen_pdn->eeh_freeze_count);
goto perm_error;

hard_fail:
printk(KERN_ERR
"EEH: Unable to recover from failure of PCI device %s - %s\n"
"EEH: Unable to recover from failure of PCI device "
"at location=%s driver=%s pci addr=%s \n"
"Please try reseating this device or replacing it.\n",
drv_str, pci_str);
location, drv_str, pci_str);

perm_error:
eeh_slot_error_detail(frozen_pdn, 2 /* Permanent Error */);
Expand Down

0 comments on commit b6e6034

Please sign in to comment.