]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg NvmExpressDxe: Initialize IoAlign info for an NVMe device
authorHao Wu <hao.a.wu@intel.com>
Wed, 4 May 2016 08:22:30 +0000 (16:22 +0800)
committerHao Wu <hao.a.wu@intel.com>
Fri, 6 May 2016 00:56:04 +0000 (08:56 +0800)
commit9cc0168a70052638ffb40b09369a636d4fa84b36
treeeee37434b07a06bf84f615fcfcfaab0b7436f05f
parent128946c9c38977ac2047c86d4143db2a172fc2f6
MdeModulePkg NvmExpressDxe: Initialize IoAlign info for an NVMe device

The "IoAlign" field in EFI_BLOCK_IO_MEDIA of an NVMe device is not
initialized properly, leading to a zero value for this field.

It should be initialized from the "IoAlign" field in the
EFI_NVM_EXPRESS_PASS_THRU_MODE structure maintained by the NVMe
controller.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c