mirror of https://github.com/acidanthera/audk.git
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:
parent
aafc4dcf01
commit
2f34e065a3
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue