• Linas Vepstas's avatar
    [PATCH] ppc64: Save & restore of PCI device BARS · 8b553f32
    Linas Vepstas authored
    14-eeh-device-bar-save.patch
    
    After a PCI device has been resest, the device BAR's and other config
    space info must be restored to the same state as they were in when
    the firmware first handed us this device.  This will allow the
    PCI device driver, when restarted, to correctly recognize and set up
    the device.
    
    Tis patch saves the device config space as early as reasonable after
    the firmware has handed over the device.  Te state resore funcion
    is inteded for use by the EEH recovery routines.
    Signed-off-by: default avatarLinas Vepstas <linas@austin.ibm.com>
    Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    8b553f32
eeh.c 34.1 KB