]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/NvmExpressDxe: Handling return of write to sq and cq db
authorSuman Prakash <suman.p@samsung.com>
Thu, 20 Apr 2017 10:01:42 +0000 (18:01 +0800)
committerHao Wu <hao.a.wu@intel.com>
Mon, 24 Apr 2017 01:06:44 +0000 (09:06 +0800)
commitf6b139bde7e0a39f83ffad30af58136d5b0738a7
tree755192ff592c4ec8ae281e59dfc7b207fc5b7833
parentf8f931f632f7d7ff12a1cfdec36ebefe19085e83
MdeModulePkg/NvmExpressDxe: Handling return of write to sq and cq db

In case of an async command if updating the submission queue tail
doorbell fails then the command will not be picked up by device and
no completion response will be created. This scenario has to be handled.
Also if we create an AsyncRequest element and insert in the async queue,
it will never receive a completion so in the timer routine this element
won't be freed, resulting in memory leak. Also in case of blocking calls
we should capture the status of updating completion queue head doorbell
register and return it to caller of PassThru.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Suman Prakash <suman.p@samsung.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c