diff options
author | Feng Tian <feng.tian@intel.com> | 2013-10-29 01:31:02 +0000 |
---|---|---|
committer | erictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524> | 2013-10-29 01:31:02 +0000 |
commit | 2f34e065a3e649550fcb0dc89786cb26197510dd (patch) | |
tree | a90f76da2948ea3ed34ae680278c0423d2fe6698 /MdeModulePkg/Bus | |
parent | aafc4dcf01716ee87abc007e8826a5e057a291d8 (diff) | |
download | edk2-2f34e065a3e649550fcb0dc89786cb26197510dd.zip edk2-2f34e065a3e649550fcb0dc89786cb26197510dd.tar.gz edk2-2f34e065a3e649550fcb0dc89786cb26197510dd.tar.bz2 |
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
Diffstat (limited to 'MdeModulePkg/Bus')
-rw-r--r-- | MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c b/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c index ed1c4bf..4f187e3 100644 --- a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c +++ b/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c @@ -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;
|