From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web10.8121.1578992057479750756 for ; Tue, 14 Jan 2020 00:54:17 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: heng.luo@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Jan 2020 00:54:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,432,1571727600"; d="scan'208";a="213266195" Received: from hengluo-dev.ccr.corp.intel.com ([10.239.153.154]) by orsmga007.jf.intel.com with ESMTP; 14 Jan 2020 00:54:16 -0800 From: "Heng Luo" To: devel@edk2.groups.io Subject: [PATCH] MdeModulePkg: Perform test only if not ignore memory test Date: Tue, 14 Jan 2020 16:54:12 +0800 Message-Id: <20200114085412.2060-1-heng.luo@intel.com> X-Mailer: git-send-email 2.24.0.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2463 Perform Data and Address line test only if not ignore memory test. Signed-off-by: Heng Luo --- .../MemoryTest/GenericMemoryTestDxe/LightMemoryTest.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/MdeModulePkg/Universal/MemoryTest/GenericMemoryTestDxe/LightMe= moryTest.c b/MdeModulePkg/Universal/MemoryTest/GenericMemoryTestDxe/LightMe= moryTest.c index ce9e5e659b..fe24e490d4 100644 --- a/MdeModulePkg/Universal/MemoryTest/GenericMemoryTestDxe/LightMemoryTes= t.c +++ b/MdeModulePkg/Universal/MemoryTest/GenericMemoryTestDxe/LightMemoryTes= t.c @@ -1,6 +1,6 @@ /** @file=0D =0D - Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
=0D + Copyright (c) 2006 - 2020, Intel Corporation. All rights reserved.
=0D =0D SPDX-License-Identifier: BSD-2-Clause-Patent=0D =0D @@ -677,10 +677,12 @@ GenMemoryTestFinished ( Private =3D GENERIC_MEMORY_TEST_PRIVATE_FROM_THIS (This);=0D =0D //=0D - // Perform Data and Address line test=0D + // Perform Data and Address line test only if not ignore memory test=0D //=0D - Status =3D PerformAddressDataLineTest (Private);=0D - ASSERT_EFI_ERROR (Status);=0D + if (Private->CoverLevel !=3D IGNORE) {=0D + Status =3D PerformAddressDataLineTest (Private);=0D + ASSERT_EFI_ERROR (Status);=0D + }=0D =0D //=0D // Add the non tested memory range to system memory map through GCD serv= ice=0D --=20 2.24.0.windows.2