Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24616
b: refs/heads/master
c: b4f382a
h: refs/heads/master
v: v3
  • Loading branch information
Linas Vepstas authored and Paul Mackerras committed Mar 27, 2006
1 parent 10c6fa7 commit 7f990bd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 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: 79c227a92ce9fe0504e9c4aaadf3bfacb0f5f45e
refs/heads/master: b4f382a3e5e20ba867e7aa5b01189a3fd40eea2c
16 changes: 10 additions & 6 deletions trunk/arch/powerpc/platforms/pseries/eeh_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ void 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;

frozen_dn = find_device_pe(event->dn);
frozen_bus = pcibios_find_pci_bus(frozen_dn);
Expand Down Expand Up @@ -291,6 +292,13 @@ void handle_eeh_events (struct eeh_event *event)

frozen_pdn = PCI_DN(frozen_dn);
frozen_pdn->eeh_freeze_count++;

pci_str = pci_name (frozen_pdn->pcidev);
drv_str = pcid_name (frozen_pdn->pcidev);
if (!pci_str) {
pci_str = pci_name (event->dev);
drv_str = pcid_name (event->dev);
}

if (frozen_pdn->eeh_freeze_count > EEH_MAX_ALLOWED_FREEZES)
goto hard_fail;
Expand All @@ -306,9 +314,7 @@ void 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,
pci_name (frozen_pdn->pcidev),
pcid_name(frozen_pdn->pcidev));
frozen_pdn->eeh_freeze_count, 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 @@ -360,9 +366,7 @@ void handle_eeh_events (struct eeh_event *event)
"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",
pci_name (frozen_pdn->pcidev),
pcid_name(frozen_pdn->pcidev),
frozen_pdn->eeh_freeze_count);
drv_str, pci_str, frozen_pdn->eeh_freeze_count);

eeh_slot_error_detail(frozen_pdn, 2 /* Permanent Error */);

Expand Down

0 comments on commit 7f990bd

Please sign in to comment.