Skip to content

Commit 583dffe

Browse files
committed
id-ctrl: add 1.4 features to OAES
Optional Asynchronous Events Supported now has few more fields from 1.4. Signed-off-by: Minwoo Im <[email protected]>
1 parent b836750 commit 583dffe

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

nvme-print.c

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,27 @@ static void show_nvme_id_ctrl_cmic(__u8 cmic)
122122
static void show_nvme_id_ctrl_oaes(__le32 ctrl_oaes)
123123
{
124124
__u32 oaes = le32_to_cpu(ctrl_oaes);
125-
__u32 rsvd0 = (oaes & 0xFFFFFC00) >> 10;
125+
__u32 rsvd0 = (oaes & 0xFFFF8000) >> 15;
126126
__u32 nace = (oaes & 0x100) >> 8;
127127
__u32 fan = (oaes & 0x200) >> 9;
128+
__u32 anacn = (oaes & 800) >> 11;
129+
__u32 plealcn = (oaes & 0x1000) >> 12;
130+
__u32 lbasin = (oaes & 0x2000) >> 13;
131+
__u32 egealpcn = (oaes & 0x4000) >> 14;
128132
__u32 rsvd1 = oaes & 0xFF;
129133

130134
if (rsvd0)
131135
printf(" [31:10] : %#x\tReserved\n", rsvd0);
136+
printf("[14:14] : %#x\tEndurance Group Event Aggregate Log Page"\
137+
" Change Notice %sSupported\n",
138+
egealpcn, egealpcn ? "" : "Not ");
139+
printf("[13:13] : %#x\tLBA Status Information Notices %sSupported\n",
140+
lbasin, lbasin ? "" : "Not ");
141+
printf("[12:12] : %#x\tPredictable Latency Event Aggregate Log Change"\
142+
" Notices %sSupported\n",
143+
plealcn, plealcn ? "" : "Not ");
144+
printf("[11:11] : %#x\tAsymmetric Namespace Access Change Notices"\
145+
" %sSupported\n", anacn, anacn ? "" : "Not ");
132146
printf(" [9:9] : %#x\tFirmware Activation Notices %sSupported\n",
133147
fan, fan ? "" : "Not ");
134148
printf(" [8:8] : %#x\tNamespace Attribute Changed Event %sSupported\n",

0 commit comments

Comments
 (0)