Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5236037pxj; Wed, 26 May 2021 06:08:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylQ4VMUCeI9vP2ATdtdm1aAyHSOa3Nv+wa1NUxfXZvEvOt2HetrvH9UkGmUZQE44C24hHp X-Received: by 2002:a05:6402:3098:: with SMTP id de24mr36867703edb.339.1622034538750; Wed, 26 May 2021 06:08:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622034538; cv=none; d=google.com; s=arc-20160816; b=tamrBggYL0uBdgOpiWQeb8NHrAnGWxRGDkDQHYh5SOPIOLIxIJUAi8NdTvHQ6HFFA0 ovrO+KozoKl+O/vnmA+Ac37OKm+zv1B7Q4QLoXtnqIPwiTVyCAPAwGprQbFGxdVq9+iJ FfxnFJ/qNXIvF4/cfOJPTlMXOOFudu4IkOOXPgMkGIeK1ZhYDQrG4zX6q/9kePZpcd97 ohEB6JkWokOq91odxTNjBTjUxc4Pm9GYZFJ7JzaOxOm8BUqzYNnxRGpHafJkdljwPDQK T+FXCZwvLl16hyiozDaxFarze52FQaPYrQYOBu/xKgApLBjL1t4pN6xVe7LOGhDqwcSC 9Y8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=t4iEXWHzNZUnU66UdlOFVaCkSN/bmGsjDThaNffoTfk=; b=NKpd2dcJOToZiXUi2djHRGJAePjx1b8Ft5LDWy6JbWMH9m6bv3LMP2e08zfY9CEPRH FIgUC18y8HO2tNgNL86DY6+OgJvAmNHNZiFsmqtTW2ubjebIK2fCTxow1Hc2M+x+X4fI x3ZP1xmCg9k+GGGvfERNkU0aQaFb8LU2BDxL/Xe49v+KMkVpHc130CipQ5apzuMM6lKY 0AzkMOpgy09Lj+3SzDuBmrKrlxj6Wlol43zJzb9O6hnex3VahbhIz+qTIVDE2plWHQfW fzikhWHqWrBkPVN4K4fcDeoUFKOa75gLErSTxdXGOgng+3eTZjbuowVNHBm8hADFBIww tPdA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w16si8851031ejv.665.2021.05.26.06.08.35; Wed, 26 May 2021 06:08:58 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234727AbhEZMNf (ORCPT + 99 others); Wed, 26 May 2021 08:13:35 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:56002 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234517AbhEZMN3 (ORCPT ); Wed, 26 May 2021 08:13:29 -0400 Received: from mail-lj1-f199.google.com ([209.85.208.199]) by youngberry.canonical.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1llsOA-0006cp-NH for linux-kernel@vger.kernel.org; Wed, 26 May 2021 12:11:54 +0000 Received: by mail-lj1-f199.google.com with SMTP id t1-20020a2e9d010000b02900f5b2b52da7so389865lji.8 for ; Wed, 26 May 2021 05:11:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=t4iEXWHzNZUnU66UdlOFVaCkSN/bmGsjDThaNffoTfk=; b=go/hQVsxUa//o4CpGAzKpOiZgalvJ7PU9U9alNRhmnuVjaL/ddUer/u4hJ8qi4t95x pSrrVJ+1TDbqsnI43qB5UzbZV3/wzfg363s6WGcUvYQR4L6fGL8ITFFbU6PEuKtc4Sob SG/gncKmA/bBAz8VAyl35taYntA8FB7dhpAAbYtfQozG4bnYDOXw4aK4oJ1mnNKfiw2c FycR4V39T5YHUkjY2G+Eg8xT1hunN7GizsvXCPJ4GQfFf7nLoOGXFn/bSHpXDANYk0js SxcXNJ76uvzDZj8KwflnAYlRze2jDTI4TTAKrWALkL2B6FE7ge8RrJyI4mVmNjeU50Lz o70w== X-Gm-Message-State: AOAM5305fU6ZdajD4vrXD46iqxJSnj6vH7i8pD6vrqrNQDzwDf/Uf8iX ID9ZmG9kpve/DKGE9ANMKcW0Z+W3NQZTWuOBVzyLT5geaelhvHoNJwO8U5wYlVCWiBA2ZDTv6To SfU7cn9uyLQPqit0Y47DjKVzKvEELhzbxDEEeJhZLasxuUxbM3PV9BqJbsQ== X-Received: by 2002:a05:651c:3c9:: with SMTP id f9mr2040019ljp.403.1622031114141; Wed, 26 May 2021 05:11:54 -0700 (PDT) X-Received: by 2002:a05:651c:3c9:: with SMTP id f9mr2040007ljp.403.1622031113922; Wed, 26 May 2021 05:11:53 -0700 (PDT) MIME-Version: 1.0 References: <20210520033315.490584-1-koba.ko@canonical.com> <20210525074426.GA14916@lst.de> <20210526024934.GB3704949@dhcp-10-100-145-180.wdc.com> In-Reply-To: <20210526024934.GB3704949@dhcp-10-100-145-180.wdc.com> From: Kai-Heng Feng Date: Wed, 26 May 2021 20:11:41 +0800 Message-ID: Subject: Re: [PATCH] nvme-pci: Avoid to go into d3cold if device can't use npss. To: Keith Busch Cc: Koba Ko , Christoph Hellwig , Jens Axboe , Sagi Grimberg , linux-nvme , Linux Kernel Mailing List , Henrik Juul Hansen , Bjorn Helgaas , Linux PCI Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 26, 2021 at 10:49 AM Keith Busch wrote: > > On Wed, May 26, 2021 at 10:02:27AM +0800, Koba Ko wrote: > > On Tue, May 25, 2021 at 3:44 PM Christoph Hellwig wrote: > > > > > > On Thu, May 20, 2021 at 11:33:15AM +0800, Koba Ko wrote: > > > > After resume, host can't change power state of the closed controller > > > > from D3cold to D0. > > > > > > Why? > > As per Kai-Heng said, it's a regression introduced by commit > > b97120b15ebd ("nvme-pci: > > use simple suspend when a HMB is enabled"). The affected NVMe is using HMB. > > That really doesn't add up. The mentioned commit restores the driver > behavior for HMB drives that existed prior to d916b1be94b6d from kernel > 5.3. Is that NVMe device broken in pre-5.3 kernels, too? Quite likely. The system in question is a late 2020 Ice Lake laptop, so it was released after 5.3 kernel. Kai-Heng