diff options
author | Hao Wu <hao.a.wu@intel.com> | 2016-06-01 16:32:03 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-06-02 16:40:17 +0800 |
commit | 05bf4747dd8e412d10fccbe35346aa2597b4167b (patch) | |
tree | 479448e8cebcf2f16b8889e55bee768d833dd1ca /BaseTools/Source/Python/AutoGen/GenMake.py | |
parent | 6535266574ac0478314d65953f2abf4091d55ee2 (diff) | |
download | edk2-platforms-05bf4747dd8e412d10fccbe35346aa2597b4167b.tar.xz |
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>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/GenMake.py')
0 files changed, 0 insertions, 0 deletions