This is the first of three patches that implement a bit field that PCI Express 
device drivers can use to indicate they need a fundamental reset during error 
recovery.

By default, the EEH framework on powerpc does what's known as a "hot reset" during 
recovery of a PCI Express device.  We've found a case where the device needs a "fundamental 
reset" to recover properly.  The current PCI error recovery and EEH frameworks do not support 
this distinction.

The attached patch (courtesy of Richard Lary) adds a bit field to pci_dev that 
indicates whether the device requires a fundamental reset during recovery.

These patches supersede the previously submitted patch that implemented a fundamental reset bit field.
Please review and let me know of any concerns.

Signed-off-by: Mike Mason <mm...@us.ibm.com>
Signed-off-by: Richard Lary <rl...@us.ibm.com>


diff -uNrp a/include/linux/pci.h b/include/linux/pci.h
--- a/include/linux/pci.h       2009-07-13 14:25:37.000000000 -0700
+++ b/include/linux/pci.h       2009-07-15 10:25:37.000000000 -0700
@@ -273,6 +273,7 @@ struct pci_dev {
        unsigned int    ari_enabled:1;  /* ARI forwarding */
        unsigned int    is_managed:1;
        unsigned int    is_pcie:1;
+       unsigned int    needs_freset:1; /* Dev requires fundamental reset */
        unsigned int    state_saved:1;
        unsigned int    is_physfn:1;
        unsigned int    is_virtfn:1;
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to