diff options
Diffstat (limited to 'arch/ppc64/kernel/eeh.c')
-rw-r--r-- | arch/ppc64/kernel/eeh.c | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/arch/ppc64/kernel/eeh.c b/arch/ppc64/kernel/eeh.c index af5272fedadf..4c857a6516fc 100644 --- a/arch/ppc64/kernel/eeh.c +++ b/arch/ppc64/kernel/eeh.c | |||
@@ -202,10 +202,9 @@ static void pci_addr_cache_print(struct pci_io_addr_cache *cache) | |||
202 | while (n) { | 202 | while (n) { |
203 | struct pci_io_addr_range *piar; | 203 | struct pci_io_addr_range *piar; |
204 | piar = rb_entry(n, struct pci_io_addr_range, rb_node); | 204 | piar = rb_entry(n, struct pci_io_addr_range, rb_node); |
205 | printk(KERN_DEBUG "PCI: %s addr range %d [%lx-%lx]: %s %s\n", | 205 | printk(KERN_DEBUG "PCI: %s addr range %d [%lx-%lx]: %s\n", |
206 | (piar->flags & IORESOURCE_IO) ? "i/o" : "mem", cnt, | 206 | (piar->flags & IORESOURCE_IO) ? "i/o" : "mem", cnt, |
207 | piar->addr_lo, piar->addr_hi, pci_name(piar->pcidev), | 207 | piar->addr_lo, piar->addr_hi, pci_name(piar->pcidev)); |
208 | pci_pretty_name(piar->pcidev)); | ||
209 | cnt++; | 208 | cnt++; |
210 | n = rb_next(n); | 209 | n = rb_next(n); |
211 | } | 210 | } |
@@ -260,8 +259,8 @@ static void __pci_addr_cache_insert_device(struct pci_dev *dev) | |||
260 | 259 | ||
261 | dn = pci_device_to_OF_node(dev); | 260 | dn = pci_device_to_OF_node(dev); |
262 | if (!dn) { | 261 | if (!dn) { |
263 | printk(KERN_WARNING "PCI: no pci dn found for dev=%s %s\n", | 262 | printk(KERN_WARNING "PCI: no pci dn found for dev=%s\n", |
264 | pci_name(dev), pci_pretty_name(dev)); | 263 | pci_name(dev)); |
265 | return; | 264 | return; |
266 | } | 265 | } |
267 | 266 | ||
@@ -269,8 +268,8 @@ static void __pci_addr_cache_insert_device(struct pci_dev *dev) | |||
269 | if (!(dn->eeh_mode & EEH_MODE_SUPPORTED) || | 268 | if (!(dn->eeh_mode & EEH_MODE_SUPPORTED) || |
270 | dn->eeh_mode & EEH_MODE_NOCHECK) { | 269 | dn->eeh_mode & EEH_MODE_NOCHECK) { |
271 | #ifdef DEBUG | 270 | #ifdef DEBUG |
272 | printk(KERN_INFO "PCI: skip building address cache for=%s %s\n", | 271 | printk(KERN_INFO "PCI: skip building address cache for=%s\n", |
273 | pci_name(dev), pci_pretty_name(dev)); | 272 | pci_name(dev)); |
274 | #endif | 273 | #endif |
275 | return; | 274 | return; |
276 | } | 275 | } |
@@ -447,12 +446,12 @@ static void eeh_panic(struct pci_dev *dev, int reset_state) | |||
447 | * in light of potential corruption, we can use it here. | 446 | * in light of potential corruption, we can use it here. |
448 | */ | 447 | */ |
449 | if (panic_on_oops) | 448 | if (panic_on_oops) |
450 | panic("EEH: MMIO failure (%d) on device:%s %s\n", reset_state, | 449 | panic("EEH: MMIO failure (%d) on device:%s\n", reset_state, |
451 | pci_name(dev), pci_pretty_name(dev)); | 450 | pci_name(dev)); |
452 | else { | 451 | else { |
453 | __get_cpu_var(ignored_failures)++; | 452 | __get_cpu_var(ignored_failures)++; |
454 | printk(KERN_INFO "EEH: Ignored MMIO failure (%d) on device:%s %s\n", | 453 | printk(KERN_INFO "EEH: Ignored MMIO failure (%d) on device:%s\n", |
455 | reset_state, pci_name(dev), pci_pretty_name(dev)); | 454 | reset_state, pci_name(dev)); |
456 | } | 455 | } |
457 | } | 456 | } |
458 | 457 | ||
@@ -482,8 +481,8 @@ static void eeh_event_handler(void *dummy) | |||
482 | break; | 481 | break; |
483 | 482 | ||
484 | printk(KERN_INFO "EEH: MMIO failure (%d), notifiying device " | 483 | printk(KERN_INFO "EEH: MMIO failure (%d), notifiying device " |
485 | "%s %s\n", event->reset_state, | 484 | "%s\n", event->reset_state, |
486 | pci_name(event->dev), pci_pretty_name(event->dev)); | 485 | pci_name(event->dev)); |
487 | 486 | ||
488 | atomic_set(&eeh_fail_count, 0); | 487 | atomic_set(&eeh_fail_count, 0); |
489 | notifier_call_chain (&eeh_notifier_chain, | 488 | notifier_call_chain (&eeh_notifier_chain, |
@@ -851,8 +850,7 @@ void eeh_add_device_late(struct pci_dev *dev) | |||
851 | return; | 850 | return; |
852 | 851 | ||
853 | #ifdef DEBUG | 852 | #ifdef DEBUG |
854 | printk(KERN_DEBUG "EEH: adding device %s %s\n", pci_name(dev), | 853 | printk(KERN_DEBUG "EEH: adding device %s\n", pci_name(dev)); |
855 | pci_pretty_name(dev)); | ||
856 | #endif | 854 | #endif |
857 | 855 | ||
858 | pci_addr_cache_insert_device (dev); | 856 | pci_addr_cache_insert_device (dev); |
@@ -873,8 +871,7 @@ void eeh_remove_device(struct pci_dev *dev) | |||
873 | 871 | ||
874 | /* Unregister the device with the EEH/PCI address search system */ | 872 | /* Unregister the device with the EEH/PCI address search system */ |
875 | #ifdef DEBUG | 873 | #ifdef DEBUG |
876 | printk(KERN_DEBUG "EEH: remove device %s %s\n", pci_name(dev), | 874 | printk(KERN_DEBUG "EEH: remove device %s\n", pci_name(dev)); |
877 | pci_pretty_name(dev)); | ||
878 | #endif | 875 | #endif |
879 | pci_addr_cache_remove_device(dev); | 876 | pci_addr_cache_remove_device(dev); |
880 | } | 877 | } |