From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B581606A31C for ; Mon, 30 Nov 2026 08:52:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=1kNeqCNH DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=G/yjw3s2i5TWr4G+ikbvKSWmZXY2NCvMFvoQAXt6xL0=; b=1kNeqCNHFwfUtgj2DMi24dkqD3 +8jV82XHTmLSgl6UpFkcDv0WNYMcm/lyfFRobT8aldOtdoehpUPk1z8/Jdlzd073st2UovAYrNeWF 31SI9VtSpJOOitTvR9/1Jb3UTlz5swB5gRsOKNdIMfmvdoNISti9JSjkETHa6hRuBj4MOmkroYIhs q0SISNuvfNyZqvJzeTnCACWSHEzHsXqR4CTt2OeIfT3a9sqQCrAcAi0e0i7vOe7YX/GjJ3al5EdXX U1U/BLAhbmCo3D/IVDzFO0Xj3E0TQ5SyIFRtRO8ge1fgWzDdUJ/o+jWoRRgx7pIYah8xJj5oyyKQS RcBKBD0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXx7A-00000003qBU-0Jk9; Mon, 30 Nov 2026 08:52:00 +0000 Received: from verein.lst.de ([213.95.11.211]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXx6q-00000003q8r-1pOV for linux-nvme@lists.infradead.org; Mon, 30 Nov 2026 08:51:41 +0000 Received: by verein.lst.de (Postfix, from userid 2407) id EAB3368BEB; Mon, 30 Nov 2026 09:51:35 +0100 (CET) Date: Mon, 30 Nov 2026 09:51:35 +0100 From: Christoph Hellwig To: moncef.mechri@gmail.com Cc: Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Mario Limonciello , linux-pci@vger.kernel.org Subject: Re: [PATCH] nvme-pci: Exclude Intel 760p on Dell XPS 13 7390 from simple suspend Message-ID: <20261130085135.GA11399@lst.de> References: <20261130-nvme-xps13-7390-quirk-v1-1-b065e0a1033d@gmail.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261130-nvme-xps13-7390-quirk-v1-1-b065e0a1033d@gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261130_005140_802758_30EE9E44 X-CRM114-Status: GOOD ( 35.08 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-nvme" X-Spam-Status: No, score=-15.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 It feels like we should just ignore the StorageD3Enable for this model entirely. It obviously is safe as we do that for various SSDs. On Mon, Nov 30, 2026 at 01:45:50AM -0300, Moncef Mechri via B4 Relay wrote: > From: Moncef Mechri > > The Dell XPS 13 7390 (Comet Lake) firmware sets StorageD3Enable for > the NVMe drive, so the driver applies NVME_QUIRK_SIMPLE_SUSPEND and > puts the drive into D3hot during s2idle. With an Intel 760p/Pro 7600p > (8086:f1a6) in D3hot, the PCH never enters S0ix: the package is in C10 > for nearly all of the suspend, but the SLP_S0 residency counter does > not move. With intel_pmc_core.warn_on_s0ix_failures=1, a resume from > such a suspend logs, for example: > > intel_pmc_core INT33A1:00: CPU did not enter SLP_S0!!! (S0ix cnt=0) > > and the SLP_S0 debug status shows, among others, PCIE_LOW_POWER, > USB2_SUS_GATED and MPHY_CORE_GATED as not met. Over several overnight > suspends, the battery charge dropped by 1.5-1.6 percentage points per > hour, roughly 0.8 W based on the battery's design capacity. > > The platform does reach S0ix in runtime idle with the display off, > with the drive in D0. Keeping the drive in D0 during s2idle, so that > the driver sets an NVMe power state instead, restores S0ix: > > - nvme.noacpi=1: 556.8 s of S0ix in a 596.7 s suspend > - this patch, all devices enabled in the BIOS: 556.5 s of S0ix in a > 596.5 s suspend > > In both cases about 40 s of the suspend is spent outside S0ix. Over a > 20,995 s (5.8-hour) suspend with this patch, the battery charge dropped > by 153 mAh, about 0.38 percentage points of the design capacity per > hour, or roughly 0.2 W. > > Add this drive and laptop to the combinations that ignore > StorageD3Enable, as is already done for some Kingston and Samsung > drives. The XPS 13 7390 also shipped with other SSDs, which were not > tested, so the quirk is limited to this drive. > > Tested on a Dell XPS 13 7390 (i7-10710U, BIOS 1.29.0) with an Intel > SSDPEMKF512G8 (firmware 7002), on 7.3.6 with this change applied. > > The analysis that led to this change, the patch and this changelog were > produced with the help of an AI coding assistant (Claude, by Anthropic), > working from intel_pmc_core debug output, suspend traces and battery > measurements collected on the affected laptop. OpenAI Codex reviewed > the analysis and the patch. > > Cc: stable@vger.kernel.org > Signed-off-by: Moncef Mechri > --- > drivers/nvme/host/pci.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c > index 076603df0..1bb88898b 100644 > --- a/drivers/nvme/host/pci.c > +++ b/drivers/nvme/host/pci.c > @@ -3874,6 +3874,16 @@ static unsigned long check_vendor_combination_bug(struct pci_dev *pdev) > dmi_match(DMI_BOARD_NAME, "PH4PRX1_PH6PRX1") || > dmi_match(DMI_BOARD_NAME, "PH6PG01_PH6PG71")) > return NVME_QUIRK_FORCE_NO_SIMPLE_SUSPEND; > + } else if (pdev->vendor == 0x8086 && pdev->device == 0xf1a6) { > + /* > + * Exclude Intel 760p/Pro 7600p from NVME_QUIRK_SIMPLE_SUSPEND > + * on the Dell XPS 13 7390. With the drive in D3hot the PCH > + * never enters S0ix in s2idle sleep, which more than doubles > + * the battery drain while suspended. > + */ > + if (dmi_match(DMI_SYS_VENDOR, "Dell Inc.") && > + dmi_match(DMI_PRODUCT_NAME, "XPS 13 7390")) > + return NVME_QUIRK_FORCE_NO_SIMPLE_SUSPEND; > } > > /* > > --- > base-commit: 4f069ab1ec243e6b60dc438772905855c60774e8 > change-id: 20261129-nvme-xps13-7390-quirk-50f9e84fbcf1 > > Best regards, > -- > Moncef Mechri > ---end quoted text---