Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1613598pxb; Sat, 22 Jan 2022 01:19:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnldrADp/3nfxgLmRF+SsOrpEHmubQwQkurS5uI65uRV1S51cRYCvaE2r8cOTMnOpnXSYJ X-Received: by 2002:a17:902:8a94:b0:14a:ef2e:60e5 with SMTP id p20-20020a1709028a9400b0014aef2e60e5mr7141858plo.42.1642843178822; Sat, 22 Jan 2022 01:19:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642843178; cv=none; d=google.com; s=arc-20160816; b=kxBKfWLc8F8mBcFyAP6mJMb5DyWo3z8s6eeZUBcEecKEjHuNkmn6cCCudzaXPfJ9DP JCfctYtmWIESeQgeKrlzTJ35C8F90TePZienGsvGxXnwXM2IncCBw5ZFONDfbJiMlCTC mQpplT9qmzaAOGWniLMgx/5frm3lvFU6UsnvLbGgsqTI0rNbOYYkC1/2pNxfTPfLhZvs 5pGmQr5mF9X/rCoqPftzc4fmJIlXEEig8QD9W8sQpobDuypShtN2oxcfbrzY9NZvOWNb soXPUsqICsmi6YmQ5NaL3rIVW6B98kA7K/PgwgfbdAfA0qSX8yb3vq+luefUN51dBQWe 2+GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OXAm1qEiIkYNaPU2i0B3YKih+9jiO+IlXNTpahNVR8w=; b=SmZWFL5Kj/eDorVOZvGu0ZfZFgnHK4LxcjIFgab0UscABnk3zRDDmB1PrigbnuJLIo mT9PW2mRfGSmhH7PjC/5Ns1arrgRSl4owYL8lYUoU5mzJotvYeQ11JGuB9k+3fIG++eN f8jT5gk6qeuh16LQm/cbLPAeu+1iXYLbL+oSKK55y6TAWDekjvSSgjw0iOpJDD8Ob3jI AHteCHh8K3z+cUuvbmZ9ebrSUlkTlgrrv8cqHu2b3aUtvMCA1im3aIDiSNkxrIf8gHkY kA/JJGbKFvwpznGQMZnHKJJd4AJ54tSlU00eluGtUk5M6ZbhKXVdPpiiYySrnGvXWlNW saaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ebzQK3Qh; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s2si1777928pgq.627.2022.01.22.01.19.23; Sat, 22 Jan 2022 01:19:38 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ebzQK3Qh; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232883AbiAUVJJ (ORCPT + 99 others); Fri, 21 Jan 2022 16:09:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229587AbiAUVJJ (ORCPT ); Fri, 21 Jan 2022 16:09:09 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C10F2C06173B; Fri, 21 Jan 2022 13:09:08 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6010961827; Fri, 21 Jan 2022 21:09:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D19CC340E1; Fri, 21 Jan 2022 21:09:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642799347; bh=R9IH1HO9BhkurxhbfZ/tA3xkofYRaHlskaeE4j+DY68=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ebzQK3QhDgT/T2L/u8OlnNiGo3KbbTl6h5ztLuRo1EU0Nh4K9UOFn3pXR7raSTmaG zE3L4EdP2ms0NyP6lev85hl9EIsezgehE/pUfqaLG0gXcC3+/2A+SjmPIbGa2sP1pk bKGXZgtEWFaXVNC7112ut1J7kKrMo+Himt6b7mB9SFooC4k09b7wEelxbAQZ5aEyqE JWLhRSyRXJUhUT8f3B/Ze08E0f7ZogB7WGNplgY5cWZndUY8Li3DPefIfG7mpRHxRj KIP+WqjvZelxRCAkMN0e4ih4MMKnYbIwrlgRxeOztyM+sQ8S9ENjbX7yPWI81WI/RV rafEKwoAeV3lA== Date: Fri, 21 Jan 2022 13:09:05 -0800 From: Keith Busch To: "Rafael J. Wysocki" Cc: Sagi Grimberg , Christoph Hellwig , Len Brown , Linux PM , Linux Kernel Mailing List , m.heingbecker@googlemail.com, linux-nvme Subject: Re: [Bug] nvme blocks PC10 since v5.15 - bisected Message-ID: <20220121210905.GA1114868@dhcp-10-100-145-180.wdc.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 21, 2022 at 08:00:49PM +0100, Rafael J. Wysocki wrote: > Hi Keith, > > It is reported that the following commit > > commit e5ad96f388b765fe6b52f64f37e910c0ba4f3de7 > Author: Keith Busch > Date: Tue Jul 27 09:40:44 2021 -0700 > > nvme-pci: disable hmb on idle suspend > > An idle suspend may or may not disable host memory access from devices > placed in low power mode. Either way, it should always be safe to > disable the host memory buffer prior to entering the low power mode, and > this should also always be faster than a full device shutdown. > > Signed-off-by: Keith Busch > Reviewed-by: Sagi Grimberg > Signed-off-by: Christoph Hellwig > > is the source of a serious power regression occurring since 5.15 > (please see https://bugzilla.kernel.org/show_bug.cgi?id=215467). > > After this commit, the SoC on the affected system cannot enter > C-states deeper than PC2 while suspended to idle which basically > defeats the purpose of suspending. > > What may be happening is that nvme_disable_prepare_reset() that is not > called any more in the ndev->nr_host_mem_descs case somehow causes the > LTR of the device to change to "no requirement" which allows deeper > C-states to be entered. > > Can you have a look at this, please? I thought platforms that wanted full device shutdown behaviour would always set acpi_storage_d3. Is that not happening here?