Skip to content

Commit

Permalink
powerpc/eeh: Handle EEH error based on PE
Browse files Browse the repository at this point in the history
The patch reworks the current implementation so that the eeh errors
will be handled basing on PE instead of eeh device.

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Gavin Shan authored and Benjamin Herrenschmidt committed Sep 9, 2012
1 parent 120dc49 commit 9b3c76f
Show file tree
Hide file tree
Showing 5 changed files with 125 additions and 137 deletions.
1 change: 1 addition & 0 deletions arch/powerpc/include/asm/eeh.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ int eeh_rmv_from_parent_pe(struct eeh_dev *edev);
void *eeh_pe_dev_traverse(struct eeh_pe *root,
eeh_traverse_func fn, void *flag);
void eeh_pe_restore_bars(struct eeh_pe *pe);
struct pci_bus *eeh_pe_bus_get(struct eeh_pe *pe);

void * __devinit eeh_dev_init(struct device_node *dn, void *data);
void __devinit eeh_dev_phb_init_dynamic(struct pci_controller *phb);
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/include/asm/eeh_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct eeh_event {
};

int eeh_send_failure_event(struct eeh_pe *pe);
struct eeh_dev *handle_eeh_events(struct eeh_event *);
void eeh_handle_event(struct eeh_pe *pe);

#endif /* __KERNEL__ */
#endif /* ASM_POWERPC_EEH_EVENT_H */
Loading

0 comments on commit 9b3c76f

Please sign in to comment.