mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2] nvme-pci: Ignore StorageD3Enable on Dell XPS 13 7390
@ 2026-11-30 14:21 Moncef Mechri via B4 Relay
  2026-11-30 14:29 ` Mario Limonciello
  0 siblings, 1 reply; 3+ messages in thread
From: Moncef Mechri via B4 Relay @ 2026-11-30 14:21 UTC (permalink / raw)
  To: Keith Busch, Jens Axboe, Christoph Hellwig, Sagi Grimberg
  Cc: linux-nvme, linux-kernel, Mario Limonciello, linux-pci, Moncef Mechri

From: Moncef Mechri <moncef.mechri@gmail.com>

The Dell XPS 13 7390 firmware sets StorageD3Enable for the internal
NVMe slot. With an Intel 760p in that slot, honoring the hint selects
simple suspend and puts the controller in D3hot during s2idle. The
CPU package reaches C10, but the PCH SLP_S0 residency counter does
not move. The laptop draws roughly 0.8 W in this state.

Booting with nvme.noacpi=1 restores 556.8 s of S0ix residency over a
596.7 s suspend. An Intel 760p-specific override measured 556.5 s of
S0ix over a 596.5 s suspend and roughly 0.2 W over a 5.8 h suspend.
These measurements are from a 7390 with BIOS 1.29.0 and an Intel
SSDPEMKF512G8 (firmware 7002) on Linux 7.3.6.

The firmware exposes the same StorageD3Enable value for the internal
NVMe endpoint regardless of which SSD is installed. Set
NVME_QUIRK_FORCE_NO_SIMPLE_SUSPEND based on the exact Dell system vendor
and product name. This reuses the existing probe check that skips the
ACPI hint.

With this change, the same laptop resumed successfully on Linux 7.3.6.
The PCH spent 556.6 s in S0ix during 596.6 s of timekeeping suspension.

Fixes: df4f9bc4fb9c ("nvme-pci: add support for ACPI StorageD3Enable property")
Suggested-by: Christoph Hellwig <hch@lst.de>
Cc: stable@vger.kernel.org
Assisted-by: Claude:claude-opus-5-5
Assisted-by: Codex:gpt-6.2-sol
Signed-off-by: Moncef Mechri <moncef.mechri@gmail.com>
---
Changes in v2:
- Match the Dell XPS 13 7390 by DMI, regardless of SSD PCI ID.
- Reuse NVME_QUIRK_FORCE_NO_SIMPLE_SUSPEND to skip the firmware hint.
- Add Mario Limonciello and linux-pci to the recipients.
- Link to v1: https://lore.kernel.org/r/20261130-nvme-xps13-7390-quirk-v1-1-b065e0a1033d@gmail.com
---
 drivers/nvme/host/pci.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 076603df0..3c1fc555f 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -3876,6 +3876,14 @@ static unsigned long check_vendor_combination_bug(struct pci_dev *pdev)
 			return NVME_QUIRK_FORCE_NO_SIMPLE_SUSPEND;
 	}
 
+	/*
+	 * The Dell XPS 13 7390 advertises StorageD3Enable for its internal
+	 * NVMe slot. Following the hint can prevent S0ix during s2idle.
+	 */
+	if (dmi_match(DMI_SYS_VENDOR, "Dell Inc.") &&
+	    dmi_match(DMI_PRODUCT_NAME, "XPS 13 7390"))
+		return NVME_QUIRK_FORCE_NO_SIMPLE_SUSPEND;
+
 	/*
 	 * NVMe SSD drops off the PCIe bus after system idle
 	 * for 10 hours on a Lenovo N60z board.

---
base-commit: 4f069ab1ec243e6b60dc438772905855c60774e8
change-id: 20261129-nvme-xps13-7390-quirk-50f9e84fbcf1

Best regards,
-- 
Moncef Mechri <moncef.mechri@gmail.com>



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] nvme-pci: Ignore StorageD3Enable on Dell XPS 13 7390
  2026-11-30 14:21 [PATCH v2] nvme-pci: Ignore StorageD3Enable on Dell XPS 13 7390 Moncef Mechri via B4 Relay
@ 2026-11-30 14:29 ` Mario Limonciello
       [not found]   ` <CAJAFLDG+yVw-mEotMH6SLx0Ca4+oheXVg4N2qqNWTWF1JGhbOA@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Mario Limonciello @ 2026-11-30 14:29 UTC (permalink / raw)
  To: moncef.mechri, Keith Busch, Jens Axboe, Christoph Hellwig, Sagi Grimberg
  Cc: linux-nvme, linux-kernel, linux-pci



On 11/30/26 08:21, Moncef Mechri via B4 Relay wrote:
> From: Moncef Mechri <moncef.mechri@gmail.com>
> 
> The Dell XPS 13 7390 firmware sets StorageD3Enable for the internal
> NVMe slot. With an Intel 760p in that slot, honoring the hint selects
> simple suspend and puts the controller in D3hot during s2idle. The
> CPU package reaches C10, but the PCH SLP_S0 residency counter does
> not move. The laptop draws roughly 0.8 W in this state.
> 
> Booting with nvme.noacpi=1 restores 556.8 s of S0ix residency over a
> 596.7 s suspend. An Intel 760p-specific override measured 556.5 s of
> S0ix over a 596.5 s suspend and roughly 0.2 W over a 5.8 h suspend.
> These measurements are from a 7390 with BIOS 1.29.0 and an Intel
> SSDPEMKF512G8 (firmware 7002) on Linux 7.3.6.
> 
> The firmware exposes the same StorageD3Enable value for the internal
> NVMe endpoint regardless of which SSD is installed. Set
> NVME_QUIRK_FORCE_NO_SIMPLE_SUSPEND based on the exact Dell system vendor
> and product name. This reuses the existing probe check that skips the
> ACPI hint.
> 
> With this change, the same laptop resumed successfully on Linux 7.3.6.
> The PCH spent 556.6 s in S0ix during 596.6 s of timekeeping suspension.
> 
> Fixes: df4f9bc4fb9c ("nvme-pci: add support for ACPI StorageD3Enable property")
> Suggested-by: Christoph Hellwig <hch@lst.de>
> Cc: stable@vger.kernel.org
> Assisted-by: Claude:claude-opus-5-5
> Assisted-by: Codex:gpt-6.2-sol
> Signed-off-by: Moncef Mechri <moncef.mechri@gmail.com>
> ---
> Changes in v2:
> - Match the Dell XPS 13 7390 by DMI, regardless of SSD PCI ID.
> - Reuse NVME_QUIRK_FORCE_NO_SIMPLE_SUSPEND to skip the firmware hint.
> - Add Mario Limonciello and linux-pci to the recipients.
> - Link to v1: https://lore.kernel.org/r/20261130-nvme-xps13-7390-quirk-v1-1-b065e0a1033d@gmail.com
> ---
>   drivers/nvme/host/pci.c | 8 ++++++++
>   1 file changed, 8 insertions(+)
> 
> diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
> index 076603df0..3c1fc555f 100644
> --- a/drivers/nvme/host/pci.c
> +++ b/drivers/nvme/host/pci.c
> @@ -3876,6 +3876,14 @@ static unsigned long check_vendor_combination_bug(struct pci_dev *pdev)
>   			return NVME_QUIRK_FORCE_NO_SIMPLE_SUSPEND;
>   	}
>   
> +	/*
> +	 * The Dell XPS 13 7390 advertises StorageD3Enable for its internal
> +	 * NVMe slot. Following the hint can prevent S0ix during s2idle.
> +	 */
> +	if (dmi_match(DMI_SYS_VENDOR, "Dell Inc.") &&
> +	    dmi_match(DMI_PRODUCT_NAME, "XPS 13 7390"))
> +		return NVME_QUIRK_FORCE_NO_SIMPLE_SUSPEND;
> +

Is this really going to be tied to that specific OEM's DMI data?  Or is 
it really better to be tied to the SOC+PCH?

>   	/*
>   	 * NVMe SSD drops off the PCIe bus after system idle
>   	 * for 10 hours on a Lenovo N60z board.
> 
> ---
> base-commit: 4f069ab1ec243e6b60dc438772905855c60774e8
> change-id: 20261129-nvme-xps13-7390-quirk-50f9e84fbcf1
> 
> Best regards,


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] nvme-pci: Ignore StorageD3Enable on Dell XPS 13 7390
       [not found]   ` <CAJAFLDG+yVw-mEotMH6SLx0Ca4+oheXVg4N2qqNWTWF1JGhbOA@mail.gmail.com>
@ 2026-11-30 16:11     ` Mario Limonciello
  0 siblings, 0 replies; 3+ messages in thread
From: Mario Limonciello @ 2026-11-30 16:11 UTC (permalink / raw)
  To: Moncef Mechri, irenic.rajneesh, xi.pardee
  Cc: Keith Busch, Jens Axboe, Christoph Hellwig, Sagi Grimberg,
	linux-nvme, linux-kernel, linux-pci



On 11/30/26 10:02, Moncef Mechri wrote:
> I only have access to the affected Dell system, so I cannot establish 
> whether this is a SoC/PCH-wide issue or specific to Dell’s platform 
> implementation.
> 
> Given that StorageD3Enable is a firmware-provided property, I would be 
> reluctant to override it on other platforms without evidence that they 
> are affected as well.
> 
> Is there a known SoC/PCH limitation that would suggest a broader match 
> is appropriate here?
> 
> 

I've looped in the guys on "INTEL PMC CORE DRIVER" from MAINTAINERS for 
comments.

> 
> On Mon 30 Nov 2026 at 11:29, Mario Limonciello 
> <mario.limonciello@amd.com <mailto:mario.limonciello@amd.com>> wrote:
> 
> 
> 
>     On 11/30/26 08:21, Moncef Mechri via B4 Relay wrote:
>      > From: Moncef Mechri <moncef.mechri@gmail.com
>     <mailto:moncef.mechri@gmail.com>>
>      >
>      > The Dell XPS 13 7390 firmware sets StorageD3Enable for the internal
>      > NVMe slot. With an Intel 760p in that slot, honoring the hint selects
>      > simple suspend and puts the controller in D3hot during s2idle. The
>      > CPU package reaches C10, but the PCH SLP_S0 residency counter does
>      > not move. The laptop draws roughly 0.8 W in this state.
>      >
>      > Booting with nvme.noacpi=1 restores 556.8 s of S0ix residency over a
>      > 596.7 s suspend. An Intel 760p-specific override measured 556.5 s of
>      > S0ix over a 596.5 s suspend and roughly 0.2 W over a 5.8 h suspend.
>      > These measurements are from a 7390 with BIOS 1.29.0 and an Intel
>      > SSDPEMKF512G8 (firmware 7002) on Linux 7.3.6.
>      >
>      > The firmware exposes the same StorageD3Enable value for the internal
>      > NVMe endpoint regardless of which SSD is installed. Set
>      > NVME_QUIRK_FORCE_NO_SIMPLE_SUSPEND based on the exact Dell system
>     vendor
>      > and product name. This reuses the existing probe check that skips the
>      > ACPI hint.
>      >
>      > With this change, the same laptop resumed successfully on Linux
>     7.3.6.
>      > The PCH spent 556.6 s in S0ix during 596.6 s of timekeeping
>     suspension.
>      >
>      > Fixes: df4f9bc4fb9c ("nvme-pci: add support for ACPI
>     StorageD3Enable property")
>      > Suggested-by: Christoph Hellwig <hch@lst.de <mailto:hch@lst.de>>
>      > Cc: stable@vger.kernel.org <mailto:stable@vger.kernel.org>
>      > Assisted-by: Claude:claude-opus-5-5
>      > Assisted-by: Codex:gpt-6.2-sol
>      > Signed-off-by: Moncef Mechri <moncef.mechri@gmail.com
>     <mailto:moncef.mechri@gmail.com>>
>      > ---
>      > Changes in v2:
>      > - Match the Dell XPS 13 7390 by DMI, regardless of SSD PCI ID.
>      > - Reuse NVME_QUIRK_FORCE_NO_SIMPLE_SUSPEND to skip the firmware hint.
>      > - Add Mario Limonciello and linux-pci to the recipients.
>      > - Link to v1: https://lore.kernel.org/r/20261130-nvme-xps13-7390-
>     quirk-v1-1-b065e0a1033d@gmail.com <https://lore.kernel.org/
>     r/20261130-nvme-xps13-7390-quirk-v1-1-b065e0a1033d@gmail.com>
>      > ---
>      >   drivers/nvme/host/pci.c | 8 ++++++++
>      >   1 file changed, 8 insertions(+)
>      >
>      > diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
>      > index 076603df0..3c1fc555f 100644
>      > --- a/drivers/nvme/host/pci.c
>      > +++ b/drivers/nvme/host/pci.c
>      > @@ -3876,6 +3876,14 @@ static unsigned long
>     check_vendor_combination_bug(struct pci_dev *pdev)
>      >                       return NVME_QUIRK_FORCE_NO_SIMPLE_SUSPEND;
>      >       }
>      >
>      > +     /*
>      > +      * The Dell XPS 13 7390 advertises StorageD3Enable for its
>     internal
>      > +      * NVMe slot. Following the hint can prevent S0ix during
>     s2idle.
>      > +      */
>      > +     if (dmi_match(DMI_SYS_VENDOR, "Dell Inc.") &&
>      > +         dmi_match(DMI_PRODUCT_NAME, "XPS 13 7390"))
>      > +             return NVME_QUIRK_FORCE_NO_SIMPLE_SUSPEND;
>      > +
> 
>     Is this really going to be tied to that specific OEM's DMI data?  Or is
>     it really better to be tied to the SOC+PCH?
> 
>      >       /*
>      >        * NVMe SSD drops off the PCIe bus after system idle
>      >        * for 10 hours on a Lenovo N60z board.
>      >
>      > ---
>      > base-commit: 4f069ab1ec243e6b60dc438772905855c60774e8
>      > change-id: 20261129-nvme-xps13-7390-quirk-50f9e84fbcf1
>      >
>      > Best regards,
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-30 16:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 14:21 [PATCH v2] nvme-pci: Ignore StorageD3Enable on Dell XPS 13 7390 Moncef Mechri via B4 Relay
2026-11-30 14:29 ` Mario Limonciello
     [not found]   ` <CAJAFLDG+yVw-mEotMH6SLx0Ca4+oheXVg4N2qqNWTWF1JGhbOA@mail.gmail.com>
2026-11-30 16:11     ` Mario Limonciello

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®