mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mario Limonciello <mario.limonciello@amd.com>
To: Moncef Mechri <moncef.mechri@gmail.com>,
	irenic.rajneesh@gmail.com, xi.pardee@linux.intel.com
Cc: Keith Busch <kbusch@kernel.org>, Jens Axboe <axboe@kernel.dk>,
	Christoph Hellwig <hch@lst.de>, Sagi Grimberg <sagi@grimberg.me>,
	linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org,
	linux-pci@vger.kernel.org
Subject: Re: [PATCH v2] nvme-pci: Ignore StorageD3Enable on Dell XPS 13 7390
Date: Mon, 30 Nov 2026 10:11:21 -0600	[thread overview]
Message-ID: <1fb3be35-376a-4485-aee8-30c8d481c081@amd.com> (raw)
In-Reply-To: <CAJAFLDG+yVw-mEotMH6SLx0Ca4+oheXVg4N2qqNWTWF1JGhbOA@mail.gmail.com>



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,
> 


      parent reply	other threads:[~2026-11-30 16:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 14:21 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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1fb3be35-376a-4485-aee8-30c8d481c081@amd.com \
    --to=mario.limonciello@amd.com \
    --cc=axboe@kernel.dk \
    --cc=hch@lst.de \
    --cc=irenic.rajneesh@gmail.com \
    --cc=kbusch@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nvme@lists.infradead.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=moncef.mechri@gmail.com \
    --cc=sagi@grimberg.me \
    --cc=xi.pardee@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®