[PATCH] nvme-pci: force simple suspend on Inspur NF50

Kun An ankun at uniontech.com
Thu Oct 15 20:38:05 PDT 2026


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




More information about the Linux-nvme mailing list