mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 08:04:07 +02:00
MdeModulePkg: NvmExpressDxe: Add Timeout Status Codes
Add Report status code events to Nvme to trigger when timeouts occur. This improves traceability when critical errors happen. Signed-off-by: Oliver Smith-Denny <osde@linux.microsoft.com>
This commit is contained in:
parent
f8f34edd9d
commit
9df400fd4d
@ -824,6 +824,8 @@ NvmExpressPassThru (
|
|||||||
//
|
//
|
||||||
CopyMem (Packet->NvmeCompletion, (VOID *)Cq, sizeof (EFI_NVM_EXPRESS_COMPLETION));
|
CopyMem (Packet->NvmeCompletion, (VOID *)Cq, sizeof (EFI_NVM_EXPRESS_COMPLETION));
|
||||||
} else {
|
} else {
|
||||||
|
ReportStatusCode ((EFI_ERROR_MAJOR | EFI_ERROR_CODE), (EFI_IO_BUS_SCSI | EFI_IOB_EC_INTERFACE_ERROR));
|
||||||
|
|
||||||
//
|
//
|
||||||
// Timeout occurs for an NVMe command. Reset the controller to abort the
|
// Timeout occurs for an NVMe command. Reset the controller to abort the
|
||||||
// outstanding commands.
|
// outstanding commands.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user