Skip to content

Commit 4641a8e

Browse files
keithbuschChristoph Hellwig
authored andcommitted
nvme-pci: add trouble shooting steps for timeouts
Many users have encountered IO timeouts with a CSTS value of 0xffffffff, which indicates a failure to read the register. While there are various potential causes for this observation, faulty NVMe APST has been the culprit quite frequently. Add the recommended troubleshooting steps in the error output when this condition occurs. Signed-off-by: Keith Busch <[email protected]> Reviewed-by: Chaitanya Kulkarni <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
1 parent 2f0dad1 commit 4641a8e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/nvme/host/pci.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,6 +1334,14 @@ static void nvme_warn_reset(struct nvme_dev *dev, u32 csts)
13341334
dev_warn(dev->ctrl.device,
13351335
"controller is down; will reset: CSTS=0x%x, PCI_STATUS read failed (%d)\n",
13361336
csts, result);
1337+
1338+
if (csts != ~0)
1339+
return;
1340+
1341+
dev_warn(dev->ctrl.device,
1342+
"Does your device have a faulty power saving mode enabled?\n");
1343+
dev_warn(dev->ctrl.device,
1344+
"Try \"nvme_core.default_ps_max_latency_us=0 pcie_aspm=off\" and report a bug\n");
13371345
}
13381346

13391347
static enum blk_eh_timer_return nvme_timeout(struct request *req, bool reserved)

0 commit comments

Comments
 (0)