Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5299693pxj; Wed, 26 May 2021 07:30:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpXNxTEKgmyoPrYdmTVJYSxYqbGwIB5Wl6TTQ52n5a9cJjZcSx3zll4ZeEod2m4CFoJLWW X-Received: by 2002:a6b:e50d:: with SMTP id y13mr26651733ioc.204.1622039419295; Wed, 26 May 2021 07:30:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622039419; cv=none; d=google.com; s=arc-20160816; b=xTjXe5mZcZ56HWE2Bd0nKXYtorq9iTk/Zh7Dh7foaIpwsUj3ngVApHOj1vpYylfQjm 1tLDtv1iR4lbunENadY6s+Vb3/xffQ5khQW7joTZ8ZxPCfgjYiLrTlO9HvNa/5nf6/iw JzwWD2JFqDPpuMOKTyhkGdEjxf/9v6x6iC4HBXDzY6vRmpc8ZkKyRY3gsmdGFdz8AyNo DX1Ga0U7HtWvWFrmluc1N4PU4zUEZ9u2BgvhAarwnqZBjKiZPUvWavRoXbAs01N2Ysx4 RFDOr54Rz2bg4UfhehFtwzwyFbC7Hloif7j8PYhdKYjF276CCtk1vTpvHQtNOGQg5QXN qQ4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=73uPCBaa3kLLatef1niNJgkKkgnyy7RJyLctmVX7Xl0=; b=yP3CV2Ij5XH5l+F5TxWT6kgJaLO2yKSeC+OeScBNAWLFbfTSXM2NxDmnGpfKCfUxmu 0uJzQodPqg12K8XTPylnYoK86qc6y5pRpifWh/K2+ewlxobS68X1Anb6OT8+1eLecSsu +Bbo2FGsMQPTexi1/ds8CwAovNRCYiSwJDL0ksSeSVWc327w1hyjE/TBpHT1vXL0EcIA HKVcZcpDESLDqUkRvqsK9H0SzfuT4ARA7tiOudgs3hn1qfrDISUksNNSX3JWMMq0/YK/ SJJvWYXMochfRZqeRw08SoqR7BSj5rUdODHdtw28P3CcZKQbvRqRitshOq3ebTHhLsC3 i+jA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n4si19518623ion.59.2021.05.26.07.30.04; Wed, 26 May 2021 07:30:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234432AbhEZO3n (ORCPT + 99 others); Wed, 26 May 2021 10:29:43 -0400 Received: from verein.lst.de ([213.95.11.211]:35171 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233217AbhEZO3n (ORCPT ); Wed, 26 May 2021 10:29:43 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 6DCCA67373; Wed, 26 May 2021 16:28:09 +0200 (CEST) Date: Wed, 26 May 2021 16:28:09 +0200 From: Christoph Hellwig To: Kai-Heng Feng Cc: Christoph Hellwig , Keith Busch , Koba Ko , Jens Axboe , Sagi Grimberg , linux-nvme , Linux Kernel Mailing List , Henrik Juul Hansen , Bjorn Helgaas , Linux PCI Subject: Re: [PATCH] nvme-pci: Avoid to go into d3cold if device can't use npss. Message-ID: <20210526142809.GA32077@lst.de> References: <20210520033315.490584-1-koba.ko@canonical.com> <20210525074426.GA14916@lst.de> <20210526024934.GB3704949@dhcp-10-100-145-180.wdc.com> <20210526125942.GA25080@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) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 26, 2021 at 10:21:59PM +0800, Kai-Heng Feng wrote: > To be fair, resuming the NVMe from D3hot is much slower than keep it > at D0, which gives us a faster s2idle resume time. And now AMD also > requires s2idle on their latest laptops. We'd much prefer to use it, but due to the broken platforms we can't unfortunately. > And it's more like NVMe controllers don't respect PCI D3hot. What do you mean with that? > Because the NVMe continues to work after s2idle and the symbol is > rather subtle, so I suspect this is not platform or vendor specific. > Is it possible to disable DMA for HMB NVMe on suspend? Not in shipping products. The NVMe technical working group is working on a way to do that, but it will take a while until that shows up in products.