Skip to content

Commit b836750

Browse files
committed
id-ctrl: add an indicator for get lba status capability
NVMe 1.4 supports for the Get LBA Status Capability which can be referred to 8.22. The Identify Controller is now able to indicate whether or not the Get LBA Status Capability is supported. Signed-off-by: Minwoo Im <[email protected]>
1 parent 040fd04 commit b836750

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

nvme-print.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ static void show_nvme_id_ctrl_ctratt(__le32 ctrl_ctratt)
169169
static void show_nvme_id_ctrl_oacs(__le16 ctrl_oacs)
170170
{
171171
__u16 oacs = le16_to_cpu(ctrl_oacs);
172-
__u16 rsvd = (oacs & 0xFE00) >> 9;
172+
__u16 rsvd = (oacs & 0xFC00) >> 10;
173+
__u16 glbas = (oacs & 0x200) >> 9;
173174
__u16 dbc = (oacs & 0x100) >> 8;
174175
__u16 vir = (oacs & 0x80) >> 7;
175176
__u16 nmi = (oacs & 0x40) >> 6;
@@ -182,6 +183,8 @@ static void show_nvme_id_ctrl_oacs(__le16 ctrl_oacs)
182183

183184
if (rsvd)
184185
printf(" [15:9] : %#x\tReserved\n", rsvd);
186+
printf(" [9:9] : %#x\tGet LBA Status Capability %sSupported\n",
187+
glbas, glbas ? "" : "Not ");
185188
printf(" [8:8] : %#x\tDoorbell Buffer Config %sSupported\n",
186189
dbc, dbc ? "" : "Not ");
187190
printf(" [7:7] : %#x\tVirtualization Management %sSupported\n",

0 commit comments

Comments
 (0)