• Keith Busch's avatar
    nvme-pci: do not directly handle subsys reset fallout · 210b1f65
    Keith Busch authored
    Scheduling reset_work after a nvme subsystem reset is expected to fail
    on pcie, but this also prevents potential handling the platform's pcie
    services may provide that might successfully recovering the link without
    re-enumeration. Such examples include AER, DPC, and power's EEH.
    
    Provide a pci specific operation that safely initiates a subsystem
    reset, and instead of scheduling reset work, read back the status
    register to trigger a pcie read error.
    
    Since this only affects pci, the other fabrics drivers subscribe to a
    generic nvmf subsystem reset that is exactly the same as before. The
    loop fabric doesn't use it because nvmet doesn't support setting that
    property anyway.
    
    And since we're using the magic NSSR value in two places now, provide a
    symbolic define for it.
    Reported-by: default avatarNilay Shroff <nilay@linux.ibm.com>
    Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
    Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
    210b1f65
fc.c 107 KB