summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Bus
diff options
context:
space:
mode:
authorSean Brogan <sean.brogan@microsoft.com>2024-07-22 14:42:52 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-07-31 04:09:49 +0000
commit9df400fd4d75831e02428e9ccb3dcfce85ceab82 (patch)
treedf9bbb4e2b02348a756fa1036086a232305f775c /MdeModulePkg/Bus
parentf8f34edd9db82882fd70f14cb97ab28e9bb0b9a3 (diff)
downloadedk2-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.c2
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.