• Prarit Bhargava's avatar
    PCI: aer-inject: Override PCIe AER Mask Registers · 457d9d08
    Prarit Bhargava authored
    I have several systems which have the same problem:  The PCIe AER
    corrected and uncorrected masks have all the error bits set.  This
    results in the inablility to test with the aer_inject module & utility
    on those systems.
    
    Add the 'aer_mask_override' module parameter which will override the
    corrected or uncorrected masks for a PCI device.  The mask will have the
    bit corresponding to the status passed into the aer_inject() function.
    
    After this patch it is possible to successfully use the aer_inject
    utility on those PCI slots.
    
    Successfully tested by me on a Dell and Intel whitebox which exhibited
    the mask problem.
    Signed-off-by: default avatarPrarit Bhargava <prarit@redhat.com>
    Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
    457d9d08
aer_inject.c 12.5 KB