Skip to contentSkip to conversation

: PCI Err: RPA-PHP-specific error recovery driver

PATCH In review Linas Vepstas 1 participant 1 message Jun 29, 2005

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 13/13 : PCI Err: RPA-PHP-specific error recovery driver

pci-err-13-rpaphp-eeh.patch

PCI Error recovery driver, ppc64-specific implementation. For various historical reasons, this driver is in the pci hotplug directory, although it could be moved to arch/ppc64 It is here because the driver falls back to using the pci hotplug routines if the device driver does not support native error recovery.

drivers/pci/hotplug/rpaphp.h renamed from drivers/pci/hotplug/rpaphp.h.linas-orig +2 -0
@@ -113,6 +113,8 @@ extern int rpaphp_enable_pci_slot(struct
 extern int register_pci_slot(struct slot *slot);
 extern int rpaphp_unconfig_pci_adapter(struct slot *slot);
 extern int rpaphp_get_pci_adapter_status(struct slot *slot, int is_init, u8 * value);
+extern void init_eeh_handler (void);
+extern void exit_eeh_handler (void);
 
 /* rpaphp_core.c */
 extern int rpaphp_add_slot(struct device_node *dn);
drivers/pci/hotplug/rpaphp_core.c renamed from drivers/pci/hotplug/rpaphp_core.c.linas-orig +6 -0
@@ -460,12 +460,18 @@ static int __init rpaphp_init(void)
 {
 	info(DRIVER_DESC " version: " DRIVER_VERSION "\n");
 
+	/* Get set to handle EEH events. */
+	init_eeh_handler();
+
 	/* read all the PRA info from the system */
 	return init_rpa();
 }
 
 static void __exit rpaphp_exit(void)
 {
+	/* Let EEH know we are going away. */
+	exit_eeh_handler();
+
 	cleanup_slots();
 }
 
pci/hotplug/rpaphp_eeh.c renamed from pci/hotplug/rpaphp_eeh.c.linas-orig +383 -0

383 lines not on this page · raw message

drivers/pci/hotplug/Makefile renamed from drivers/pci/hotplug/Makefile.linas-orig +1 -0
@@ -41,6 +41,7 @@ acpiphp-objs		:=	acpiphp_core.o	\
 				acpiphp_res.o
 
 rpaphp-objs		:=	rpaphp_core.o	\
+				rpaphp_eeh.o	\
 				rpaphp_pci.o	\
 				rpaphp_slot.o	\
 				rpaphp_vio.o