mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: <Mario.Limonciello@dell.com>
To: <luto@kernel.org>
Cc: <axboe@kernel.dk>, <linux-kernel@vger.kernel.org>,
	<kai.heng.feng@canonical.com>, <linux-nvme@lists.infradead.org>,
	<hch@lst.de>, <sagi@grimberg.me>, <keith.busch@intel.com>
Subject: RE: [PATCH] nvme: Change our APST table to be no more aggressive than Intel RSTe
Date: Mon, 15 May 2017 15:51:04 +0000	[thread overview]
Message-ID: <99073b97a532496ea009231adb577b8c@ausx13mpc120.AMER.DELL.COM> (raw)
In-Reply-To: <CALCETrUh0TB6b5UKfYjFLVcciYppTrPGyJNhpj5W0Z7vgngyMw@mail.gmail.com>

> On Fri, May 12, 2017 at 7:34 AM,  <Mario.Limonciello@dell.com> wrote:
> >>Yes, mostly.  I've written the patch, but I was planning to target it
> >>at 4.12 or 4.13 but not -stable.  It's mostly just a cleanup and has
> >>no real power saving benefit since the RSTe timeouts are so absurdly
> >>conservative that I doubt PS4 will happen in practical usage.
> > OK.
> >
> >>Perhaps
> >>in suspend-to-idle?  (For suspend-to-idle, I suspect we should really
> >>be using D3 instead.  Do we already do that?)
> >
> > Well I think this will depend upon what the SSD "will" support.
> 
> I thought it was basically impossible for the SSD to fail to support
> D3.  Afterall, cutting the power due to runtime D3 is more or less the
> same thing (from the SSD's POV) as cutting the power during S3 or full
> power off.
> 
You need to have an extra load switch in the system for this to work with
RTD3.

At least today - no Dell systems put the drive into RTD3 when going into
Modern Standby.  It's all PS4.

> I've contemplated adding runtime D3 support to the nvme driver, but it
> would probably be barely a win and quite slow.
> 
> When Linux suspends-to-idle, does it call driver suspend callbacks and
> kick devices into D3?  It should work, but I don't know what actually
> happens.

There are callback that happen for drivers.  It doesn't need to be a dedicated
callback specifically for freeze (what's invoked with S2I).
For example Qualcomm WLAN driver when the client disconnects from the 
AP will put the card into RTD3.  That will happen while going down to S2I.

  reply	other threads:[~2017-05-15 15:51 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-12  4:06 Andy Lutomirski
2017-05-12 13:58 ` Mario.Limonciello
2017-05-12 14:04   ` Andy Lutomirski
2017-05-12 14:34     ` Mario.Limonciello
2017-05-12 23:49       ` Andy Lutomirski
2017-05-15 15:51         ` Mario.Limonciello [this message]
2017-05-13 12:27 ` Andy Lutomirski
2017-05-15 16:11   ` Mario.Limonciello
2017-05-19  1:18     ` Andy Lutomirski
2017-05-19  1:13 ` Andy Lutomirski
2017-05-19  1:32   ` Mario.Limonciello
2017-05-19  1:37     ` Andy Lutomirski
2017-05-19  6:35   ` Christoph Hellwig
2017-05-19 14:18     ` Keith Busch
2017-05-19 14:15       ` Christoph Hellwig
2017-05-19 18:24       ` Andy Lutomirski
2017-05-19 21:42         ` Keith Busch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=99073b97a532496ea009231adb577b8c@ausx13mpc120.AMER.DELL.COM \
    --to=mario.limonciello@dell.com \
    --cc=axboe@kernel.dk \
    --cc=hch@lst.de \
    --cc=kai.heng.feng@canonical.com \
    --cc=keith.busch@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nvme@lists.infradead.org \
    --cc=luto@kernel.org \
    --cc=sagi@grimberg.me \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®