[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d69ff7154191492eaa8f55535a7effa5@AUSX13MPC105.AMER.DELL.COM>
Date: Mon, 13 May 2019 15:05:42 +0000
From: <Mario.Limonciello@...l.com>
To: <kbusch@...nel.org>
CC: <hch@....de>, <keith.busch@...el.com>, <sagi@...mberg.me>,
<linux-nvme@...ts.infradead.org>, <rafael@...nel.org>,
<linux-kernel@...r.kernel.org>, <linux-pm@...r.kernel.org>,
<kai.heng.feng@...onical.com>
Subject: RE: [PATCH] nvme/pci: Use host managed power state for suspend
> -----Original Message-----
> From: Keith Busch <kbusch@...nel.org>
> Sent: Monday, May 13, 2019 9:55 AM
> To: Limonciello, Mario
> Cc: hch@....de; keith.busch@...el.com; sagi@...mberg.me; linux-
> nvme@...ts.infradead.org; rafael@...nel.org; linux-kernel@...r.kernel.org; linux-
> pm@...r.kernel.org; kai.heng.feng@...onical.com
> Subject: Re: [PATCH] nvme/pci: Use host managed power state for suspend
>
>
> [EXTERNAL EMAIL]
>
> On Mon, May 13, 2019 at 02:43:43PM +0000, Mario.Limonciello@...l.com wrote:
> > > Well, it sounds like your partners device does not work properly in this
> > > case. There is nothing in the NVMe spec that says queues should be
> > > torn down for deep power states, and that whole idea seems rather
> > > counter productive to low-latency suspend/resume cycles.
> >
> > Well I've got a thought, quoting the NVME spec:
> > "After a successful completion of a Set Features command for this feature, the
> controller shall be in the
> > Power State specified. If enabled, autonomous power state transitions continue
> to occur from the new state."
> >
> > If APST is enabled on this disk, what is to stop an autonomous reverse
> > transition from queue activity on the way down?
>
> Regardless of whether APST is enabled or not, the controller may
> autonomously transition out of a host requested low power state in
> response to host activity. Exiting a low power state should mean some
> other task is actively using the device, and if that's the case, why are
> you trying to enter a low power state in the first place? Alternatively,
> if host activity really is idle, then why is the device autonomously
> leaving the requested state?
This system power state - suspend to idle is going to freeze threads.
But we're talking a multi threaded kernel. Can't there be a timing problem going
on then too? With a disk flush being active in one task and the other task trying
to put the disk into the deepest power state. If you don't freeze the queues how
can you guarantee that didn't happen?
Powered by blists - more mailing lists