From f469c7028174281ec63fca1057961dda0f742340 Mon Sep 17 00:00:00 2001 From: Heng Luo Date: Tue, 14 Jan 2020 14:29:43 +0800 Subject: [PATCH] MdeModulePkg: Perform test only if not ignore memory test REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2463 Perform Data and Address line test only if not ignore memory test. Signed-off-by: Heng Luo Reviewed-by: Liming Gao Reviewed-by: Ray Ni --- .../MemoryTest/GenericMemoryTestDxe/LightMemoryTest.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/MdeModulePkg/Universal/MemoryTest/GenericMemoryTestDxe/LightMemoryTest.c b/MdeModulePkg/Universal/MemoryTest/GenericMemoryTestDxe/LightMemoryTest.c index ce9e5e659b..fe24e490d4 100644 --- a/MdeModulePkg/Universal/MemoryTest/GenericMemoryTestDxe/LightMemoryTest.c +++ b/MdeModulePkg/Universal/MemoryTest/GenericMemoryTestDxe/LightMemoryTest.c @@ -1,6 +1,6 @@ /** @file - Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
+ Copyright (c) 2006 - 2020, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent @@ -677,10 +677,12 @@ GenMemoryTestFinished ( Private = GENERIC_MEMORY_TEST_PRIVATE_FROM_THIS (This); // - // Perform Data and Address line test + // Perform Data and Address line test only if not ignore memory test // - Status = PerformAddressDataLineTest (Private); - ASSERT_EFI_ERROR (Status); + if (Private->CoverLevel != IGNORE) { + Status = PerformAddressDataLineTest (Private); + ASSERT_EFI_ERROR (Status); + } // // Add the non tested memory range to system memory map through GCD service