Skip to content

Commit

Permalink
MdeModulePkg: NvmExpressDxe: Add Timeout Status Codes
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
spbrogan authored and mergify[bot] committed Jul 31, 2024
1 parent f8f34ed commit 9df400f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,8 @@ NvmExpressPassThru (
//
CopyMem (Packet->NvmeCompletion, (VOID *)Cq, sizeof (EFI_NVM_EXPRESS_COMPLETION));
} 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
// outstanding commands.
Expand Down

0 comments on commit 9df400f

Please sign in to comment.