Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2903907pxb; Thu, 10 Feb 2022 08:03:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJwzKR6oH725MVJGRQrBHpHRJdutOIs1QN5LKeo6ZfEeGm1WVuTDUmP4gYRkho4MB8zQ3uRT X-Received: by 2002:a17:902:e9c6:: with SMTP id 6mr8411964plk.79.1644509001627; Thu, 10 Feb 2022 08:03:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644509001; cv=none; d=google.com; s=arc-20160816; b=FBqXGp8eERH+hJidy7Wax2tPZkwdGKdUprtSeBzvf0xkQ+hO25kaVmKXgdpx2sddRe oocoydVbhvelW9JoPDtFmKsOIzUisdBwTrXaVAx+w2kKy/IGJHsCpLAwLqACrmmA6J9k V4hBkMMNHIQu3QlFquIEPGlxtl632MXUUR3QpFqbb7J/DIJcV8pYJYnhLz41AfHlXoTl 4BLurYSQpB62XtUu3a79W8vRaHqGKyNSbWZ1tj1ip839pykiIpcTlF8IierNN1rvt5D3 CMQJNTz9ekiegPvUG6o4JhicgZ12FvvyFQChfS4RrdnF/fQXIDbH4JF1hAm+6pp4f4at iFWQ== 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=J89NmbsltTIUWRi67SrsyAxUlHplDI9cjXCb8El47TM=; b=MccTX9O4g+3B4zRyptRH3hNlODFAFFKIEF2NedGoemb3LGZx66jFDV0UJEnZcXYxSs TfrHqEha1+/p5aN2lcYY4FxF9VAlHHT7ssW3mvEh3bD7jmbXnBm2UaMqiFw/lJCeIWE0 tB5l0rgUlc/ghQFJJq8H0+JGK7/somX5WhFB1mLSdeTfdiWGQV7748qMIFsC1mQIoxWq ubvgdpd12cSqnMRDJCMnjalgobDlUJaz/olzfD9otFPITRWfCBM0X4e86D7LnJlSroK4 WXLmHoeTiiAvJEdiebzC6g57QYZd13lWM2BhKbtBq9lOQLbw54Of95AeWZ7tIkwnlTyh NjBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q8QRs2Xq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 6si19800338pga.277.2022.02.10.08.03.06; Thu, 10 Feb 2022 08:03:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q8QRs2Xq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S243274AbiBJO4l (ORCPT + 99 others); Thu, 10 Feb 2022 09:56:41 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:42098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240998AbiBJO4k (ORCPT ); Thu, 10 Feb 2022 09:56:40 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C411CC4C; Thu, 10 Feb 2022 06:56:41 -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 ams.source.kernel.org (Postfix) with ESMTPS id 6E71FB8255A; Thu, 10 Feb 2022 14:56:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4478AC004E1; Thu, 10 Feb 2022 14:56:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644504999; bh=I+gIcY+KfvtSU0JaeIJ0CIXiLVlwL3aHah5tuIc7NZA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=q8QRs2XqQFepijiM7/NN1q2GqcdaCOx416RHZWlgBNP9kkNC9vEbHUUgI0LXcyLAT ef8do+sIhS8il5uGw0UCTP43qbim0qRfur0OOVWovLXZXJ+JQUm93z1VjtGSrtIIIH DGlA86q+MbRwXZPEM1d+BNVXsrdjgHa+fLhGo+fS68a7IyX3fw8MMFgDoV3nZV0hmN pPPOtZPizgdOpaisXrnkgGYP3+OvxIeQpP63cSGP1rtDOZl5gYNyxW8PRc2lND7t6X JRdMb/sjjfv4U01wYFtU8zxldgzAvvubYxI5PCi79ZHPvj6ttBHTQkCsshcO/Dh8Mh 9oeiw1mOjGAqg== Date: Thu, 10 Feb 2022 06:56:35 -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: <20220210145635.GA1617879@dhcp-10-100-145-180.wdc.com> References: <20220121210905.GA1114868@dhcp-10-100-145-180.wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 27, 2022 at 08:02:07PM +0100, Rafael J. Wysocki wrote: > On Fri, Jan 21, 2022 at 10:09 PM Keith Busch wrote: > > > > 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? > > Evidently, it isn't. Apparently it works fine when you disable VMD, so sounds like the acpi_storage_d3 is set, but we fail to find the correct acpi companion device when it's in a VMD domain.