From 6406ab73966f0a01eb00f52d42eb9482c1b58b45 Mon Sep 17 00:00:00 2001 From: Glenn Diviney Date: Thu, 14 Feb 2019 01:24:11 +0100 Subject: [PATCH] Added EFI_NOT_READY as a pseudo-success condition response from BIOS ArsStatus query. Signed-off-by: Glenn L Diviney --- DcpmPkg/driver/Protocol/Driver/NvmDimmConfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DcpmPkg/driver/Protocol/Driver/NvmDimmConfig.c b/DcpmPkg/driver/Protocol/Driver/NvmDimmConfig.c index f8f7a74c..804601a7 100644 --- a/DcpmPkg/driver/Protocol/Driver/NvmDimmConfig.c +++ b/DcpmPkg/driver/Protocol/Driver/NvmDimmConfig.c @@ -10134,7 +10134,7 @@ LoadArsList( //First check how many records exist by passing NULL sArsBadRecordsCount = 0; ReturnCode = pDcpmmProtocol->DcpmmArsStatus(&sArsBadRecordsCount, NULL); - if (EFI_ERROR(ReturnCode)) { + if (ReturnCode != EFI_NOT_READY && EFI_ERROR(ReturnCode)) { NVDIMM_WARN("Could not obtain the ARS bad address list count"); sArsBadRecordsCount = 0; goto Finish; @@ -10151,7 +10151,7 @@ LoadArsList( } ReturnCode = pDcpmmProtocol->DcpmmArsStatus(&sArsBadRecordsCount, sArsBadRecords); - if (EFI_ERROR(ReturnCode)) { + if (ReturnCode != EFI_NOT_READY && EFI_ERROR(ReturnCode)) { NVDIMM_WARN("Could not obtain the ARS bad address list"); FreePool(sArsBadRecords); sArsBadRecordsCount = 0;