Revision: 14805
          http://sourceforge.net/p/edk2/code/14805
Author:   erictian
Date:     2013-10-29 01:31:02 +0000 (Tue, 29 Oct 2013)
Log Message:
-----------
MdeModulePkg/NvmExpressDxe: Correct the calculation of LbaFmtIdx of Identify 
name space to follow NVME spec

Signed-off-by: Feng Tian <[email protected]>
Reviewed-by: Star Zeng <[email protected]>

Modified Paths:
--------------
    trunk/edk2/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c

Modified: trunk/edk2/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c
===================================================================
--- trunk/edk2/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c  2013-10-25 
20:09:26 UTC (rev 14804)
+++ trunk/edk2/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c  2013-10-29 
01:31:02 UTC (rev 14805)
@@ -129,7 +129,7 @@
     Device->Media.WriteCaching   = FALSE;
 
     Flbas     = NamespaceData->Flbas;
-    LbaFmtIdx = Flbas & 3;
+    LbaFmtIdx = Flbas & 0xF;
     Lbads     = NamespaceData->LbaFormat[LbaFmtIdx].Lbads;
     Device->Media.BlockSize = (UINT32)1 << Lbads;
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to