mirror of https://github.com/acidanthera/audk.git
05bf4747dd
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> |
||
---|---|---|
.. | ||
ComponentName.c | ||
NvmExpress.c | ||
NvmExpress.h | ||
NvmExpressBlockIo.c | ||
NvmExpressBlockIo.h | ||
NvmExpressDiskInfo.c | ||
NvmExpressDiskInfo.h | ||
NvmExpressDxe.inf | ||
NvmExpressDxe.uni | ||
NvmExpressDxeExtra.uni | ||
NvmExpressHci.c | ||
NvmExpressHci.h | ||
NvmExpressPassthru.c |