From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=213.95.11.211 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796028701; b=LHrjeS8JafXLoX5wx5oWJuzUU/o6N6h8/AD2kocDHgw8UtIcgPtGc99IEg7vQZ8EdmjT QDiAOpwzbwi5/iNB5iyvzDFame35Wi2YUEuGrSNh5+/z/oo9j5xFaj8YQqYwOUsu8x7n7 LefBYeA0DxsDhTWjfXLr9PSXKDX2LtiHxg9TALPdARH9i7GGeV1ebQ4juXxkBX+BGnh5p a+sWoNdIC6k19/maAI4B4ZAliqimngmKn0Y0cSFy8UR9ZQZherH39XTAimISDuizffUNx mADhb4zyNRAAHoZ4lZiedlFXVPaDr0JNc5DIeI/hFz9vxo4zLeXHu8rsbcd/o91uZAw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796028701; h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent; bh=G/yjw3s2i5TWr4G+ikbvKSWmZXY2NCvMFvoQAXt6xL0=; b=xZ4YDW46wd3j0D0bidwjUBMpyeV804g8nKj3GhkZPDMTLoqzOeWcztEi1nIPvuB3rlrd r4Id2AgkaFwmVMqGFWY5F3JnzH8VZ/U2Lwm+VxUV7UNaCBLQY+Y+M/DDQ4rXj1dNMHqJo +jh57FH0OCY1TK9vQb7/QRZUcgiHOMMhgcluWQr8F1dX0RaaLGimiWKjmOr1m5PUsXbvc G0TcvPLhm8U8j/dbY/7Vs4pwO6w3giiDdcEZtECTCEZUyQFP48zed3e8AygWlACJw2gtP hDa6v0114rXaSzMYnRE+uaHnVPxScwf2+7YbxV/EZjN2HHtZBf8ZT/0KV6hBgn/JsmA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.remote-ip=213.95.11.211 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A2160606A31C; Mon, 30 Nov 2026 08:51:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A2160606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de 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-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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) 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---