Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5350944yba; Mon, 13 May 2019 09:22:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzkvkEgpnECVKNyFTRge86aYHVOeLzETBAYKKMKR4uwvgdoiNFAjgqGtDknFo6yNo3C38Lk X-Received: by 2002:aa7:90ca:: with SMTP id k10mr34510658pfk.20.1557764552089; Mon, 13 May 2019 09:22:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557764552; cv=none; d=google.com; s=arc-20160816; b=CyBR4ukuYviyH9RzGiXrNuj4WxTJXg/uRaStj/A25tr675oCSBFGDSXMkHbabdARZy FbpLlZw0cUi5oDYCFBPKFdhcZOkAT3iuOGnNNPWHTL7C1A3SnukR7dKx6Whox9m6mCbu 0/7xoOzS5vm1f3ny3AfWd4Zxwm0GAcJV1zMxPfzJ/WF59VE/Vf2IHAt7Ng+lRkOKIpwy f93Uw6zT5gEVGJqaXeRPNGxTrsuUnsWMHX1Ci8bjtkLBp6jd/LgIujiZ1+yBVdlYszBN gh+nHtTuTk719IgyqCC2GKF6l6T/2PBOpCBZRlmykpm8ny2k1YJ7bu2Mh8fmGWs+IPMr kvqA== 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=1nP4gEpPfrxJdaMuNbY91SFNl4VXVwG8xDHjTDb5fz8=; b=wA/GVXRM934tRuyoDZa9ddc3Hu+GAPLnGTKagYPd1WRngMbPDsqsLcTTEm/kqCiaF5 13TieowEZjWHSqw2wq/rhDgcsiPQ5G676gJoQt8B35FhL9KXeNlyu/51tzK2/HsFzQJb oJ+WzjF8GohLrlwoseNKOvXT3kf+SH04LDWu6CqdM5smgiW+Ih9HulnLaFDFPbiy9tZ7 kEn+MsE5b4MKoFBtMY68ek9WsaCKfww26hSmaLMct3P8K8BXX0DQ3BS2+d368luG3JmM dzDBU0sy52aCvcDhGK5pA/cE/6HyY/vDwENAWh13dtRevPvOkM7nhfgHQi7Av9uCwWlo orWQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f17si20191494pfq.237.2019.05.13.09.22.15; Mon, 13 May 2019 09:22:32 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730458AbfEMPAs (ORCPT + 99 others); Mon, 13 May 2019 11:00:48 -0400 Received: from mga18.intel.com ([134.134.136.126]:42469 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726738AbfEMPAs (ORCPT ); Mon, 13 May 2019 11:00:48 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 May 2019 08:00:47 -0700 X-ExtLoop1: 1 Received: from unknown (HELO localhost.localdomain) ([10.232.112.69]) by orsmga006.jf.intel.com with ESMTP; 13 May 2019 08:00:46 -0700 Date: Mon, 13 May 2019 08:55:24 -0600 From: Keith Busch 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: <20190513145522.GA15421@localhost.localdomain> 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.9.1 (2017-09-22) 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, 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?