Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5370696yba; Mon, 13 May 2019 09:42:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqwo7/odcQ2u4JN/Y19APj7fNG0Sqh1gDHrTB5wqpKUFSsHup2wM++GzeSH0U1zd2zMxSbTR X-Received: by 2002:a17:902:18a:: with SMTP id b10mr6411205plb.277.1557765746132; Mon, 13 May 2019 09:42:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557765746; cv=none; d=google.com; s=arc-20160816; b=Hec5EGPWb1Kz5ppF7NRyyNdiuN7HJnAzdfKYiItSG67Uu0jzpO7SlDc9arXmROu7RW jgb5PPBJKK1/9HzICZZMYOQwTJ7xVIwaEOMcDKzDAKH0g3oxP7WeY4VAvm+R9Pt2D90Z k/pEYMdeU2BnjGq1TurI1pAiSdmk9ykUYRLQjqjklOVcdGjZzAW6h1Loy7785g4JzAgI RflRBPSygPYlLMPsi3tk6vKYzmtKRam4X8NHr/54kObV8sAELMjAhtGgIKnV5R2NoO1g iYhNu13l+h3x6XOH7ff6x48eNPElZtoCWY9DopggfNe59XzAjXN2iRkC29HtrViczdK8 Q7Ug== 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=KvFz8unxrr1v8zZwjvWHKjhW52lpiwhblqr6lWFNm4w=; b=wpBs+5TV7puSa620LrbhzSSf0cPJzYs6tZ5xaqfCenxr9GJEcWqppbHwszbqUvMLYw RAf2ARsOCjxnromsrPoZgUFhcPAMcbV7rbuYrYIRgdhF/4t/zkoeCNSxIjwHmDg/akBL YPK4NmNMlVtjA0ws0pXV4JTjgauJ0eUrFrdM1Sb3zLIxfyLs5JV8oCTq9lmo3fz3pZ2K tCSyPCF0I2mc2NgV3xe2ek1bvW7F0AnHjrrTjwF3w6FQtRyae8vSVwe9NqZeQ/yuFMi4 DYhmc+KpR7pH3huc73FxGiQxoUGlpCNu8TRzHqbAFaeRN+6NEoNZUggsbRfd8KEXRuYp aecQ== 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 q14si16836279pgg.521.2019.05.13.09.42.10; Mon, 13 May 2019 09:42:26 -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 S1729192AbfEMPWR (ORCPT + 99 others); Mon, 13 May 2019 11:22:17 -0400 Received: from mga04.intel.com ([192.55.52.120]:7085 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727458AbfEMPWQ (ORCPT ); Mon, 13 May 2019 11:22:16 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 May 2019 08:22:14 -0700 X-ExtLoop1: 1 Received: from unknown (HELO localhost.localdomain) ([10.232.112.69]) by orsmga002.jf.intel.com with ESMTP; 13 May 2019 08:22:13 -0700 Date: Mon, 13 May 2019 09:16:52 -0600 From: Keith Busch To: Christoph Hellwig Cc: Mario.Limonciello@dell.com, 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: <20190513151652.GB15437@localhost.localdomain> References: <20190510212937.11661-1-keith.busch@intel.com> <0080aaff18e5445dabca509d4113eca8@AUSX13MPC105.AMER.DELL.COM> <955722d8fc16425dbba0698c4806f8fd@AUSX13MPC105.AMER.DELL.COM> <20190513143754.GE15318@localhost.localdomain> <7ab8274ef1ce46fcae54a50abc76ae4a@AUSX13MPC105.AMER.DELL.COM> <20190513145708.GA25897@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190513145708.GA25897@lst.de> 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 04:57:08PM +0200, Christoph Hellwig wrote: > On Mon, May 13, 2019 at 02:54:49PM +0000, Mario.Limonciello@dell.com wrote: > > And NVME spec made it sound to me that while in a low power state it shouldn't > > be available if the memory isn't available. > > > > NVME spec in 8.9: > > > > "Host software should request that the controller release the > > assigned ranges prior to a shutdown event, a Runtime D3 event, or any other event > > that requires host software to reclaim the assigned ranges." > > The last part of the quoted text is the key - if the assigned range > is reclaimed, that is the memory is going to be used for something else, > we need to release the ranges. But we do not release the ranges, > as we want to keep the memory in use so that we can quickly use it > again. Yes, this. As far as I know, the host memory range is still accessible in the idle suspend state. If there are states in which host memory is not accessible, a reference explaining the requirement will be most helpful.