Skip to contentSkip to conversation

nvme-pci: force simple suspend on Inspur NF50

PATCH New Kun An 1 participant 1 message Oct 16 NVMe

lore
Share & tools
lore

Kun An

author
#0 lore raw

PATCH 1/1 nvme-pci: force simple suspend on Inspur NF50

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

---
 drivers/nvme/host/pci.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
drivers/nvme/host/pci.c +14 -0
index 77317e5d00f9..c24214c92e82 100644
@@ -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.
Signature · 1 line
2.20.1