audk/MdeModulePkg/Bus
Hao Wu 05bf4747dd MdeModulePkg NvmExpressDxe: Fix invalid queue size when creating IO queues
The Maximum Queue Entries Supported (MQES) field in the CAP (Controller
Capabilities) register for a NVMe controller restrict the maximum
individual queue size that the controller supports.

The origin code does not check this value and always uses a hardcode value
when creating I/O submission/completion queues for asynchronous
transmission. The hardcode value might be larger than the MQES field, this
will lead to an 'Invalid Queue Size' error when creating I/O
submission/completion queues.

The patch will add checks to make sure proper queue size is passed when
creating I/O submission/completion queues.

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>
2016-06-02 16:40:17 +08:00
..
Ata MdeModulePkg AtaAtapiPassThru: Fix incorrect parameter description comment 2016-05-12 14:18:16 +08:00
I2c/I2cDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
Isa MdeModulePkg/Ps2MouseDxe: Use a different FILE_GUID 2016-04-13 14:54:45 +08:00
Pci MdeModulePkg NvmExpressDxe: Fix invalid queue size when creating IO queues 2016-06-02 16:40:17 +08:00
Scsi MdeModulePkg ScsiDiskDxe: Add Erase Block Protocol support for UFS devices 2016-05-20 13:42:51 +08:00
Sd MdeModulePkg/Sd: add Erase Block support on sd/emmc device 2016-05-09 16:18:01 +08:00
Ufs MdeModulePkg: UfsPassThruDxe: remove set but unused variables 2016-03-25 10:52:26 +01:00
Usb MdeModulePkg/UsbMouseAbsolutePointerDxe: fix VS2015 NOOPT build error 2016-05-12 10:01:22 +08:00