• Brian King's avatar
    [PATCH] PCI: ipr: Block config access during BIST · b30197d2
    Brian King authored
    IPR scsi adapter have an exposure today in that they issue BIST to the adapter
    to reset the card.  If, during the time it takes to complete BIST, userspace
    attempts to access PCI config space, the host bus bridge will master abort the
    access since the ipr adapter does not respond on the PCI bus for a brief
    period of time when running BIST.  On PPC64 hardware, this master abort
    results in the host PCI bridge isolating that PCI device from the rest of the
    system, making the device unusable until Linux is rebooted.  This patch makes
    use of some newly added PCI layer APIs that allow for protection from
    userspace accessing config space of a device in scenarios such as this.
    Signed-off-by: default avatarBrian King <brking@us.ibm.com>
    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Cc: James Bottomley <James.Bottomley@steeleye.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    
     drivers/scsi/ipr.c |    2 ++
     1 file changed, 2 insertions(+)
    b30197d2
ipr.c 164 KB