[PATCH v3] nvme/pci: Add quick suspend quirk for Sc7280 Platform
Christoph Hellwig
hch at infradead.org
Wed Feb 16 09:12:50 PST 2022
On Wed, Feb 16, 2022 at 04:07:05PM +0000, Nitin Rawat (QUIC) wrote:
> Hi Christoph/Keith/Rafael
>
> Since we are giving control to PCIe (NVMe power rails control), it can vary from platform to platform.
> More over, PCIe driver doesn't control these power rails directly from PCIe driver, they tie nvme supply with one of the pcie supply and control them together.
> So i think it would be better to either have quirk based on platform or always setting simple suspend and platform which needs full suspend can update it through some means.
>
> Based on below link, Looks like this can be across platform ...vidya also mention similar concern for tegra platform.
Here is the thing: nothing here is really NVMe specific. We do have
a bunch of drivers including nvme that would love to not do a full
firmware shutdown on a suspend. For storage devices this is especially
important as each shutdown reduces media life time. Until very recently
this has been perfectly fine, but now various platforms show up that
want to completely disable power to PCIe slots on a system suspend.
The drivers need information from the PCI / PM core when a ->suspend
call requires the device to got into D3 and when not, and we can't just
do that with quirks in the various drivers.
More information about the Linux-nvme
mailing list