diff options
author | Heng Luo <heng.luo@intel.com> | 2020-01-14 14:29:43 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-02-06 08:18:17 +0000 |
commit | f469c7028174281ec63fca1057961dda0f742340 (patch) | |
tree | 52541d74f7f774299c6087eb0f1c5b705be6c809 /MdeModulePkg/Universal/MemoryTest | |
parent | a9e3458ba7dcdab2793e2fb69ed4fa92e1301625 (diff) | |
download | edk2-f469c7028174281ec63fca1057961dda0f742340.zip edk2-f469c7028174281ec63fca1057961dda0f742340.tar.gz edk2-f469c7028174281ec63fca1057961dda0f742340.tar.bz2 |
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 <heng.luo@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Diffstat (limited to 'MdeModulePkg/Universal/MemoryTest')
-rw-r--r-- | MdeModulePkg/Universal/MemoryTest/GenericMemoryTestDxe/LightMemoryTest.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/MdeModulePkg/Universal/MemoryTest/GenericMemoryTestDxe/LightMemoryTest.c b/MdeModulePkg/Universal/MemoryTest/GenericMemoryTestDxe/LightMemoryTest.c index ce9e5e6..fe24e49 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.<BR>
+ Copyright (c) 2006 - 2020, Intel Corporation. All rights reserved.<BR>
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
|