History

nvme: add missing status values to verbose logging

Log a few more path related status codes.

Max Gurtovoy committed 4 years ago

Commit ca2d8991 parent 52fde2c2 files · +5 −0Browse files

Unified · Split

2 files
  1. drivers/nvme/host/constants.c +3 −0
  2. include/linux/nvme.h +2 −0
drivers/nvme/host/constants.c+3−0
@@ -155,10 +155,13 @@ static const char * const nvme_statuses[] = { · 154 unmodified lines
155155 [NVME_SC_COMPARE_FAILED] = "Compare Failure",
156156 [NVME_SC_ACCESS_DENIED] = "Access Denied",
157157 [NVME_SC_UNWRITTEN_BLOCK] = "Deallocated or Unwritten Logical Block",
158+ [NVME_SC_INTERNAL_PATH_ERROR] = "Internal Pathing Error",
158159 [NVME_SC_ANA_PERSISTENT_LOSS] = "Asymmetric Access Persistent Loss",
159160 [NVME_SC_ANA_INACCESSIBLE] = "Asymmetric Access Inaccessible",
160161 [NVME_SC_ANA_TRANSITION] = "Asymmetric Access Transition",
162+ [NVME_SC_CTRL_PATH_ERROR] = "Controller Pathing Error",
161163 [NVME_SC_HOST_PATH_ERROR] = "Host Pathing Error",
164+ [NVME_SC_HOST_ABORTED_CMD] = "Host Aborted Command",
162165 };
163166
164167 const unsigned char *nvme_get_error_status_str(u16 status)
include/linux/nvme.h+2−0
@@ -1679,9 +1679,11 @@ enum { · 1678 unmodified lines
16791679 /*
16801680 * Path-related Errors:
16811681 */
1682+ NVME_SC_INTERNAL_PATH_ERROR = 0x300,
16821683 NVME_SC_ANA_PERSISTENT_LOSS = 0x301,
16831684 NVME_SC_ANA_INACCESSIBLE = 0x302,
16841685 NVME_SC_ANA_TRANSITION = 0x303,
1686+ NVME_SC_CTRL_PATH_ERROR = 0x360,
16851687 NVME_SC_HOST_PATH_ERROR = 0x370,
16861688 NVME_SC_HOST_ABORTED_CMD = 0x371,
16871689