From 166801d279195cb43902360b797305a3a53bbed2 Mon Sep 17 00:00:00 2001 From: Feng Tian Date: Thu, 4 Jun 2015 06:57:18 +0000 Subject: MdeModulePkg/NvmExpressDxe: roll back redundant change in r17286 The initialization of Cc.Iosqes and Cc.Iocqes should not be removed before any I/O operation as it would impact Qemu-NVMe functionality Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17559 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressHci.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'MdeModulePkg/Bus/Pci') diff --git a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressHci.c b/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressHci.c index 0e35694..e35f3c0 100644 --- a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressHci.c +++ b/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressHci.c @@ -513,9 +513,11 @@ NvmeEnableController ( // CC.AMS, CC.MPS and CC.CSS are all set to 0. // ZeroMem (&Cc, sizeof (NVME_CC)); - Cc.En = 1; - Status = WriteNvmeControllerConfiguration (Private, &Cc); + Cc.En = 1; + Cc.Iosqes = 6; + Cc.Iocqes = 4; + Status = WriteNvmeControllerConfiguration (Private, &Cc); if (EFI_ERROR(Status)) { return Status; } -- cgit v1.1