]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg NvmExpressDxe: Add check on the attributes of NVME controller
authorHao Wu <hao.a.wu@intel.com>
Mon, 22 Aug 2016 06:11:23 +0000 (14:11 +0800)
committerHao Wu <hao.a.wu@intel.com>
Tue, 6 Sep 2016 07:31:31 +0000 (15:31 +0800)
commit491f6026293bef88ea31b3d1848300708253f68b
treece5e024b5408af322033e3fbb5be146507791997
parent3c52deafda51b16f665c44eec967ed03689932f9
MdeModulePkg NvmExpressDxe: Add check on the attributes of NVME controller

According to UEFI spec, an EFI_NVM_EXPRESS_PASS_THRU_PROTOCOL with neither
EFI_NVM_EXPRESS_PASS_THRU_ATTRIBUTES_LOGICAL nor
EFI_NVM_EXPRESS_PASS_THRU_ATTRIBUTES_PHYSICAL set in the Attributes field
is an illegal configuration.

This commit adds this check in the PassThru API to follow the spec.

Cc: Feng Tian <feng.tian@intel.com>
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/NvmExpressPassthru.c