Skip to content

Commit

Permalink
Merge branch 'release/202405' into BaseTools-Mu
Browse files Browse the repository at this point in the history
  • Loading branch information
Javagedes authored Jul 2, 2024
2 parents ffc6e99 + b75dfbc commit dad3c06
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
#include <Library/UefiDriverEntryPoint.h>
#include <Library/ReportStatusCodeLib.h>

// MU_CHANGE BEGIN -- UEFI_890
#include <Library/ReportStatusCodeLib.h>
// MU_CHANGE END -- UEFI_890

typedef struct _NVME_CONTROLLER_PRIVATE_DATA NVME_CONTROLLER_PRIVATE_DATA;
typedef struct _NVME_DEVICE_PRIVATE_DATA NVME_DEVICE_PRIVATE_DATA;

Expand Down
3 changes: 3 additions & 0 deletions MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressHci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,9 @@ NvmeUnregisterShutdownNotification (
EFI_STATUS Status;
EFI_RESET_NOTIFICATION_PROTOCOL *ResetNotify;

// MU_CHANGE - BEGIN
ReportStatusCode ((EFI_ERROR_MAJOR | EFI_ERROR_CODE), (EFI_IO_BUS_SCSI | EFI_IOB_EC_INTERFACE_ERROR));
// MU_CHANGE - END
mNvmeControllerNumber--;
if (mNvmeControllerNumber == 0) {
Status = gBS->LocateProtocol (&gEfiResetNotificationProtocolGuid, NULL, (VOID **)&ResetNotify);
Expand Down
4 changes: 4 additions & 0 deletions MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,10 @@ NvmExpressPassThru (
//
CopyMem (Packet->NvmeCompletion, (VOID *)Cq, sizeof (EFI_NVM_EXPRESS_COMPLETION));
} else {
// MU_CHANGE BEGIN UEFI_890
ReportStatusCode ((EFI_ERROR_MAJOR | EFI_ERROR_CODE), (EFI_IO_BUS_SCSI | EFI_IOB_EC_INTERFACE_ERROR));
// MU_CHANGE END UEFI_890

//
// Timeout occurs for an NVMe command. Reset the controller to abort the
// outstanding commands.
Expand Down

0 comments on commit dad3c06

Please sign in to comment.