Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Increase EEH recovery timeout for SR-IOV

In order to support concurrent adapter firmware download
to SR-IOV adapters on pSeries, each VF will see an EEH event
where the slot will remain in the unavailable state for
the duration of the adapter firmware update, which can take
as long as 5 minutes. Extend the EEH recovery timeout to
account for this.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Acked-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Brian King and committed by
Benjamin Herrenschmidt
fb48dc22 2c77e957

+2 -2
+1 -1
arch/powerpc/kernel/eeh.c
··· 84 84 #define EEH_MAX_FAILS 2100000 85 85 86 86 /* Time to wait for a PCI slot to report status, in milliseconds */ 87 - #define PCI_BUS_RESET_WAIT_MSEC (60*1000) 87 + #define PCI_BUS_RESET_WAIT_MSEC (5*60*1000) 88 88 89 89 /* Platform dependent EEH operations */ 90 90 struct eeh_ops *eeh_ops = NULL;
+1 -1
arch/powerpc/kernel/eeh_driver.c
··· 468 468 /* The longest amount of time to wait for a pci device 469 469 * to come back on line, in seconds. 470 470 */ 471 - #define MAX_WAIT_FOR_RECOVERY 150 471 + #define MAX_WAIT_FOR_RECOVERY 300 472 472 473 473 static void eeh_handle_normal_event(struct eeh_pe *pe) 474 474 {