diff options
author | Sean Brogan <sean.brogan@microsoft.com> | 2024-07-22 14:42:52 -0700 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-07-31 04:09:49 +0000 |
commit | 9df400fd4d75831e02428e9ccb3dcfce85ceab82 (patch) | |
tree | df9bbb4e2b02348a756fa1036086a232305f775c /MdeModulePkg/Bus | |
parent | f8f34edd9db82882fd70f14cb97ab28e9bb0b9a3 (diff) | |
download | edk2-9df400fd4d75831e02428e9ccb3dcfce85ceab82.tar.gz edk2-9df400fd4d75831e02428e9ccb3dcfce85ceab82.tar.bz2 edk2-9df400fd4d75831e02428e9ccb3dcfce85ceab82.zip |
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>
Diffstat (limited to 'MdeModulePkg/Bus')
-rw-r--r-- | MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c b/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c index 2ff2cb0e8d..f818e48fc1 100644 --- a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c +++ b/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c @@ -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.
|