Skip to contentSkip to conversation

nvme: log additional message for controller status

PATCH In review Rupesh Girase 4 participants 4 messages Feb 27, 2020 – Mar 2, 2020 NVMe

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 nvme: log additional message for controller status

Log the controller status to know more about issue if it lies within kernel nvme subsytem or controller is unhealthy.

---
 drivers/nvme/host/core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/nvme/host/core.c +2 -2
index a4d8c90..9819646 100644
@@ -2079,8 +2079,8 @@ static int nvme_wait_ready(struct nvme_ctrl *ctrl, u64 cap, bool enabled)
 			return -EINTR;
 		if (time_after(jiffies, timeout)) {
 			dev_err(ctrl->device,
-				"Device not ready; aborting %s\n", enabled ?
-						"initialisation" : "reset");
+				"Device not ready; aborting %s, CSTS=0x%x\n",
+				enabled ? "initialisation" : "reset", csts);
 			return -ENODEV;
 		}
 	}
Signature · 7 lines
1.8.3.1


_______________________________________________
linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme