From: Hao Wu Date: Tue, 23 Jan 2018 04:47:44 +0000 (+0800) Subject: MdeModulePkg/NvmExpressDxe: Fix data buffer not mapped for Write cmd X-Git-Tag: edk2-stable201903~2545 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=748cd9a68041d00f991eee3570f7150f573d360f;hp=748cd9a68041d00f991eee3570f7150f573d360f MdeModulePkg/NvmExpressDxe: Fix data buffer not mapped for Write cmd Within function NvmExpressPassThru(): The data buffer for the below 2 Admin command: Create I/O Completion Queue command (Opcode 01h) Create I/O Submission Queue command (Opcode 05h) are not mapped to the PCI controller specific addresses. But the current code logic also prevents the below NVM command: Write (Opcode 01h) from mapping its data buffer. Hence, this commit refine the logic to resolve this issue. Cc: Ruiyu Ni Cc: Feng Tian Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Hao Wu Reviewed-by: Star Zeng ---