Skip to content

Commit 94d2e70

Browse files
rgirasegitkeithbusch
authored andcommitted
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. Signed-off-by: Rupesh Girase <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Reviewed-by: Chaitanya Kulkarni <[email protected]> Signed-off-by: Keith Busch <[email protected]>
1 parent ad95a61 commit 94d2e70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/nvme/host/core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2083,8 +2083,8 @@ static int nvme_wait_ready(struct nvme_ctrl *ctrl, u64 cap, bool enabled)
20832083
return -EINTR;
20842084
if (time_after(jiffies, timeout)) {
20852085
dev_err(ctrl->device,
2086-
"Device not ready; aborting %s\n", enabled ?
2087-
"initialisation" : "reset");
2086+
"Device not ready; aborting %s, CSTS=0x%x\n",
2087+
enabled ? "initialisation" : "reset", csts);
20882088
return -ENODEV;
20892089
}
20902090
}

0 commit comments

Comments
 (0)