Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5432339yba; Mon, 13 May 2019 10:42:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzym/h73N6dUxy/A2DxjAHk3e3aE+71ypE8EPXEnQ3YKjwhtYMFODEHV5qOxda6x/GYQg+k X-Received: by 2002:a63:2ace:: with SMTP id q197mr32457634pgq.371.1557769379808; Mon, 13 May 2019 10:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557769379; cv=none; d=google.com; s=arc-20160816; b=bz+HWqU0Mw+MN3mJURsVejj9hCcroXNEgk8DHjV4mfqMdIsckLtvErbbMMC9k0YXhi eDy4f6MpB/3A/wWRDSIZeNE+RQGE0l9UWmdNRv0Tnl/eoSZJ33rF4h7/MFgplIG24jmf spgQlZHPqxsW7yQBTuXReFFIwXvNAsyH1td++j7MXf+lznI4AKGr8J2QO7wmpifeUJT2 XGQZ5c2v/rEhJwleEnfIGpTNE9EMZFu1SdVlMaW6D1rluPniZawPR7iXyFeQqYOeD2Ze 33Ph6N8ozYud3S7AZub3PMlObZDbO5+r1BpcszMrGx6rMIOaN5WjVn5GC28yWBYlIVBW JQbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=b3sa0JYvxC/hqZa9gYZLk+sjbhqGILYdm0GZ9qgn1CY=; b=c87YhGtT9kn5ujVJEWdcGRNK+cPuANPkQtmp8LVFv3UQrh2x+SOFcOGVtPhncF3tiy VaJlzRlLKjYlXPb8q+TYbvKsN8rERcs6u6x+zF8E5Y2va9jx0rP6iZ9nqYaXbdtEo3DJ MDfricl5GUWqJOj398bYNw2+01QBhoSYn0RrN2AK89pDLWROuL+fsekb5/kno9eM465r KrfYxpQ/yU+crHBS0nbxyObZ/t0PeSu0ahCTvzxpqWPvC7V9jVBdJO8h2ZqLoK21sfAV xnCkHqUuKzFa2ysNLSKSdsjjXijlaDva8gGpEylKBph6vi1PHR5FDJgfeGMIFTpbO3x7 0djA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cp6si4402894plb.273.2019.05.13.10.42.43; Mon, 13 May 2019 10:42:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730982AbfEMOyh (ORCPT + 99 others); Mon, 13 May 2019 10:54:37 -0400 Received: from verein.lst.de ([213.95.11.211]:39796 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729772AbfEMOyh (ORCPT ); Mon, 13 May 2019 10:54:37 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 7B72E68AFE; Mon, 13 May 2019 16:54:15 +0200 (CEST) Date: Mon, 13 May 2019 16:54:15 +0200 From: Christoph Hellwig To: Mario.Limonciello@dell.com Cc: hch@lst.de, keith.busch@intel.com, sagi@grimberg.me, linux-nvme@lists.infradead.org, rafael@kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, kai.heng.feng@canonical.com Subject: Re: [PATCH] nvme/pci: Use host managed power state for suspend Message-ID: <20190513145415.GA25774@lst.de> References: <20190510212937.11661-1-keith.busch@intel.com> <0080aaff18e5445dabca509d4113eca8@AUSX13MPC105.AMER.DELL.COM> <955722d8fc16425dbba0698c4806f8fd@AUSX13MPC105.AMER.DELL.COM> <20190513143741.GA25500@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 13, 2019 at 02:43:43PM +0000, Mario.Limonciello@dell.com wrote: > 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? Nothing. But once the system is suspending we should not see I/O. If we see I/O the queue freezing in the original patch Kai Heng and the previous one from Keith is probably required, although I suspect it just papers over problems higher up in the queue. If we don't see I/O the device is just behaving oddly.