engines/nvme: support for 64 LBA formats
authorAnkit Kumar <ankit.kumar@samsung.com>
Mon, 15 May 2023 11:03:39 +0000 (16:33 +0530)
committerVincent Fu <vincent.fu@samsung.com>
Mon, 15 May 2023 12:41:30 +0000 (08:41 -0400)
commit01a7d384d4c78f23b03f79e8002e705ea5cbceb4
tree9c52287bab47779bc96cd2bdce5c0edcffa8f639
parentf6f80750f75810bdaf56dd9362982055de1d7232
engines/nvme: support for 64 LBA formats

The NVM command set specification 1.0c supports 64 LBA formats.
The 0-based nlbaf field specifies the number of LBA formats.
The flbas field is used to calculate the current LBA format, in which
bit 0-3 indicates lsb and bit 5-6 indicates msb of the format index.

Signed-off-by: Ankit Kumar <ankit.kumar@samsung.com>
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
engines/nvme.c
engines/nvme.h