All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nvme-pci: force simple suspend on Inspur NF50
@ 2026-10-16  3:38 Kun An
  0 siblings, 0 replies; only message in thread
From: Kun An @ 2026-10-16  3:38 UTC (permalink / raw)
  To: linux-nvme; +Cc: kbusch, hch, axboe, sagi, linux-kernel, Kun An

The Inspur CP300F3 / NF50 platform loses the PCIe link across S3 and
NVMe resume fails.  Force the simple suspend path for this board.

Signed-off-by: Kun An <ankun@uniontech.com>
---
 drivers/nvme/host/pci.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 77317e5d00f9..c24214c92e82 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -3664,6 +3664,20 @@ static unsigned long check_vendor_combination_bug(struct pci_dev *pdev)
 			return NVME_QUIRK_FORCE_NO_SIMPLE_SUSPEND;
 	}
 
+	/*
+	 * On the Inspur CP300F3 / NF50 (Phytium) platform the SoC root complex
+	 * does not keep the PCIe link alive across an S3 (deep) suspend, so an
+	 * NVMe controller that the host-managed suspend path leaves in a
+	 * non-operational power state never comes back after resume (I/O
+	 * timeouts, reset failure, filesystem abort).  The firmware does not
+	 * advertise firmware-managed suspend and the failure reproduces with
+	 * SSDs from different vendors, so key off the board instead of a
+	 * specific device and always take the full shutdown path there.
+	 */
+	if (dmi_match(DMI_BOARD_VENDOR, "Inspur") &&
+	    dmi_match(DMI_BOARD_NAME, "NF50"))
+		return NVME_QUIRK_SIMPLE_SUSPEND;
+
 	/*
 	 * NVMe SSD drops off the PCIe bus after system idle
 	 * for 10 hours on a Lenovo N60z board.
-- 
2.20.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-16  3:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-16  3:38 [PATCH] nvme-pci: force simple suspend on Inspur NF50 Kun An

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.