diff options
author | Feng Tian <feng.tian@intel.com> | 2015-06-04 06:57:18 +0000 |
---|---|---|
committer | erictian <erictian@Edk2> | 2015-06-04 06:57:18 +0000 |
commit | 166801d279195cb43902360b797305a3a53bbed2 (patch) | |
tree | 2c483256ca8367de1b3bac95d15895b357ebb41c | |
parent | 7dd62c4e8bcdb8f68d6ab765ca3f411489e71958 (diff) | |
download | edk2-166801d279195cb43902360b797305a3a53bbed2.zip edk2-166801d279195cb43902360b797305a3a53bbed2.tar.gz edk2-166801d279195cb43902360b797305a3a53bbed2.tar.bz2 |
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 <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17559 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressHci.c | 6 |
1 files changed, 4 insertions, 2 deletions
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;
}
|