Re: [PATCH] nvme-pci: Prevent mmio reads if pci channel offline

From: Keith Busch
Date: Thu Feb 28 2019 - 18:20:12 EST


On Thu, Feb 28, 2019 at 11:10:11PM +0000, Austin.Bolen@xxxxxxxx wrote:
> I'd also note that in PCIe, things that intentionally take the link down
> like SBR or Link Disable suppress surprise down error reporting. But
> NSSR doesn't have this requirement to suppress surprise down reporting.
> I think that's a gap on the part of the NVMe spec.

SBR and Link Disable are done from the down stream port, though, so the
host can still communicate with the function that took the link down.
That's entirely different than taking the link down from the end device,
so I'm not sure how NVMe can fix that.

But I can't even recall why NVMe defined NSSR to require PCIe LTSSM
Detect. That seems entirely unnecessary and is just asking for trouble.