• Andrew Morton's avatar
    [PATCH] Fix multiple EEH-related bugs · 09cce79c
    Andrew Morton authored
    From: Linas Vepstas <linas@austin.ibm.com>
    
    This patch fixes multiple EEH-related bugs:
    
     - Fixes the eeh_check_failure() usage in an interrupt context.
       This routine is now safe to use in an interrupt. The fix was to
       build a cache of IO addresses and check that, instead of using
       the pci routines.
     - Merges in Olof Johansson's sizeof patch when checking for failure
     - Adds EEH tests to array/string reads
     - Fixes bugs with address resolution (some i/o addresses were handled
       incorrectly, resulting in EEH errors slipping by undetected.)
     - Adds EEH support to the PCI Hotplug system (so that devices that
       get added/removed get properly registered with the EEH subsystem.)
     - Fixes improper use of /proc filesystem.
     - Adds some misc statistics.
    
    While merging Linas' patch I also converted the proc usage to
    seq_single, used per cpu variables for the stats and removed the
    eeh-force-off option.
    09cce79c
eeh.c 23.9 KB