diff options
author | Rupesh Girase <rgirase@redhat.com> | 2020-02-27 17:45:26 +0100 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2020-03-25 20:47:03 +0100 |
commit | 94d2e705b6a6fe9c56a990c0cd31a7298cfcee9a (patch) | |
tree | 4342ddb50811f65085dee800923bab6b475851c8 /drivers/nvme/host | |
parent | nvme: code cleanup nvme_identify_ns_desc() (diff) | |
download | linux-94d2e705b6a6fe9c56a990c0cd31a7298cfcee9a.tar.xz linux-94d2e705b6a6fe9c56a990c0cd31a7298cfcee9a.zip |
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 <rgirase@redhat.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulakrni@wdc.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'drivers/nvme/host')
-rw-r--r-- | drivers/nvme/host/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index c4dbc852b5e9..c9988942d0aa 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -2083,8 +2083,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; } } |