From: sashiko-bot@kernel.org
To: "Moritz Hiller" <m.hiller@pc-heini.de>
Cc: linux-pci@vger.kernel.org
Subject: Re: [PATCH] nvme-pci: wait for MMIO to come back after resume from suspend
Date: Fri, 27 Nov 2026 10:55:35 +0000 [thread overview]
Message-ID: <sashiko-outbox-237183@kernel.org> (raw)
In-Reply-To: <20261127104637.219891-1-m.hiller@pc-heini.de>
> On an ASUS ROG STRIX X570-F GAMING (BIOS 5044) with a Samsung 9100 PRO
> attached directly to a CPU root port, the root NVMe drive sporadically
> does not come back after resume from S3 (roughly 5-10% of resumes):
>
> nvme nvme0: Disabling device after reset failure: -19
>
> The single readl() of CSTS in nvme_pci_enable() returns all-ones about
> 200 ms after resume. At that point config space answers, the link is
> up, the device is in D0 and there are no AER errors. The controller is
> not dead, it just needs a few hundred milliseconds longer before its
> MMIO space responds.
>
> The platform apparently removes power from the device during S3 while
> the PCI core still treats it as D3hot. pci_power_up() finds PMCSR
> already in D0 and does not wait, and pci_bridge_wait_for_secondary_bus()
> [ ... ]
> the help of an LLM assistant (Claude). I reviewed the change and ran
> all tests on my hardware.
>
> Link: https://lore.kernel.org/r/598ee2b4-32aa-4ad3-99c7-db7f9a7e7736@pc-heini.de
> Signed-off-by: Moritz Hiller <m.hiller@pc-heini.de>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261127104637.219891-1-m.hiller@pc-heini.de?part=1
prev parent reply other threads:[~2026-11-27 10:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-15 2:24 [bug report] nvme-pci: NVMe lost after S3 resume, CSTS reads all-ones for a few 100 ms Moritz Hiller
2026-11-15 2:39 ` sashiko-bot
2026-11-20 18:08 ` Christoph Hellwig
2026-11-27 10:46 ` [PATCH] nvme-pci: wait for MMIO to come back after resume from suspend Moritz Hiller
2026-11-27 10:55 ` sashiko-bot [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=sashiko-outbox-237183@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=m.hiller@pc-heini.de \
--cc=sashiko-reviews@lists.linux.dev \
/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