MdeModulePkg/NvmExpressDxe: Correct the calculation of LbaFmtIdx of Identify name space to follow NVME spec

Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14805 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Feng Tian 2013-10-29 01:31:02 +00:00 committed by erictian
parent aafc4dcf01
commit 2f34e065a3
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ EnumerateNvmeDevNamespace (
Device->Media.WriteCaching = FALSE;
Flbas = NamespaceData->Flbas;
LbaFmtIdx = Flbas & 3;
LbaFmtIdx = Flbas & 0xF;
Lbads = NamespaceData->LbaFormat[LbaFmtIdx].Lbads;
Device->Media.BlockSize = (UINT32)1 << Lbads;