include/nvme_spec.h: update cdata and error status codes
1. Update cdata structure to indicate FDP support. 2. Add missing error status codes for base spec and the ones added by TP4146 (FDP). Signed-off-by: Ankit Kumar <ankit.kumar@samsung.com> Change-Id: Id6f467d54a047e959ce3fc4d2197c23bf39ea059 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16517 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
790b1cdcae
commit
4095963599
@ -1424,6 +1424,8 @@ print_controller(struct spdk_nvme_ctrlr *ctrlr, const struct spdk_nvme_transport
|
||||
cdata->ctratt.delete_nvm_set ? "Supported" : "Not Supported");
|
||||
printf(" Extended LBA Formats Supported: %s\n",
|
||||
cdata->ctratt.elbas ? "Supported" : "Not Supported");
|
||||
printf(" Flexible Data Placement Supported: %s\n",
|
||||
cdata->ctratt.fdps ? "Supported" : "Not Supported");
|
||||
printf("\n");
|
||||
|
||||
printf("Controller Memory Buffer Support\n");
|
||||
|
@ -1427,6 +1427,11 @@ enum spdk_nvme_generic_command_status_code {
|
||||
SPDK_NVME_SC_COMMAND_NAMESPACE_IS_PROTECTED = 0x20,
|
||||
SPDK_NVME_SC_COMMAND_INTERRUPTED = 0x21,
|
||||
SPDK_NVME_SC_COMMAND_TRANSIENT_TRANSPORT_ERROR = 0x22,
|
||||
SPDK_NVME_SC_COMMAND_PROHIBITED_BY_LOCKDOWN = 0x23,
|
||||
SPDK_NVME_SC_ADMIN_COMMAND_MEDIA_NOT_READY = 0x24,
|
||||
|
||||
SPDK_NVME_SC_FDP_DISABLED = 0x29,
|
||||
SPDK_NVME_SC_INVALID_PLACEMENT_HANDLE_LIST = 0x2A,
|
||||
|
||||
SPDK_NVME_SC_LBA_OUT_OF_RANGE = 0x80,
|
||||
SPDK_NVME_SC_CAPACITY_EXCEEDED = 0x81,
|
||||
@ -2058,7 +2063,12 @@ struct spdk_nvme_cdata_ctratt {
|
||||
/* Supports I/O command set specific extended PI formats */
|
||||
uint32_t elbas: 1;
|
||||
|
||||
uint32_t reserved: 16;
|
||||
uint32_t reserved1: 3;
|
||||
|
||||
/* Supports flexible data placement */
|
||||
uint32_t fdps: 1;
|
||||
|
||||
uint32_t reserved2: 12;
|
||||
};
|
||||
|
||||
struct __attribute__((packed)) spdk_nvme_ctrlr_data {
|
||||
|
Loading…
Reference in New Issue
Block a user