From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C01BAC47088 for ; Wed, 26 May 2021 14:28:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9A5DC613D3 for ; Wed, 26 May 2021 14:28:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233656AbhEZO3n (ORCPT ); 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-pci@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.