audk/MdeModulePkg
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
..
Application MdeModulePkg: Make function comments and function match in UI codes 2016-05-25 16:35:36 +08:00
Bus MdeModulePkg NvmExpressDxe: Fix invalid queue size when creating IO queues 2016-06-02 16:40:17 +08:00
Core MdeModulePkg/PiSmmIpl: Check order of EndOfDxe and DxeSmmReadyToLock 2016-05-30 09:41:02 +08:00
Include MdeModulePkg/BootLogoLib: pull GraphicsOutput protocol into class header 2016-05-27 11:27:00 +02:00
Library MdeModulePkg: Make function comments and function match in UI codes 2016-05-25 16:35:36 +08:00
Logo MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
Universal MdeModulePkg: Fix SNP.Initialize() spec conformance issue 2016-06-02 10:25:58 +08:00
Contributions.txt */Contributions.txt: Update example email address 2015-02-03 17:29:14 +00:00
License.txt
MdeModulePkg.dec MdeModulePkg: Add EDKII_PI_SMM_COMMUNICATION_REGION_TABLE definition. 2016-04-29 12:49:08 +08:00
MdeModulePkg.dsc MdeModulePkg RamDiskDxe: VALID_ARCH cleanup to list supported options 2016-05-25 13:29:43 +08:00
MdeModulePkg.uni MdeModulePkg/MdeModulePkg.uni: Add SD related PCD description 2016-04-26 15:44:52 +08:00
MdeModulePkgExtra.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00