From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web11.2714.1641618760868992735 for ; Fri, 07 Jan 2022 21:12:40 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=DEnSX+oc; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=000704d8ca=abner.chang@hpe.com) Received: from pps.filterd (m0134421.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 20832p5j014812 for ; Sat, 8 Jan 2022 05:12:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pps0720; bh=8Ea/43a+ZoXT5OnvWa+cF/+tddA5Crvi44sgFtz5XMA=; b=DEnSX+ocVBvKEeLgNHfIPpp2AA3De2y9KcUgNymUOPKlCEFxdS88qjoBLg/AbpraZPmX WcIXL8jNho5TyQK/rCE82YbEGOpyUbetLeuiReE8w6hKlyef18yefAnSiHYUOFzQoqBf TMpxxJkHkoGYU4+GPMLs+5RZgsvSguPQLhRn+gD7c3ssIPrWVYBrqryN6OjIvH9IXLOo hVVcZGNAXgtKllYzbqUlhTtvl/K+DyiZ86NqkYhiNl45qB9ZuxMjDhvwHsgWObZbofQa 4YJIAPxmOAvug/YD0kVbUYKloirE1eVjPiolk0dRMvCiXjGCeVvs8q4uFx89Ne3o5zof oQ== Received: from g2t2354.austin.hpe.com (g2t2354.austin.hpe.com [15.233.44.27]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3df0tcrtqy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sat, 08 Jan 2022 05:12:37 +0000 Received: from g2t2360.austin.hpecorp.net (g2t2360.austin.hpecorp.net [16.196.225.135]) by g2t2354.austin.hpe.com (Postfix) with ESMTP id 0091E81 for ; Sat, 8 Jan 2022 05:12:36 +0000 (UTC) Received: from UB16Abner.asiapacific.hpqcorp.net (ub16abner.asiapacific.hpqcorp.net [15.119.209.229]) by g2t2360.austin.hpecorp.net (Postfix) with ESMTP id 486ED36; Sat, 8 Jan 2022 05:12:36 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: abner.chang@hpe.com Subject: [PATCH 16/79] PlatformPkg/Library: NULL instance of PlatformMemoryTestLib Date: Sat, 8 Jan 2022 12:10:36 +0800 Message-Id: <20220108041121.16005-15-abner.chang@hpe.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220108041121.16005-1-abner.chang@hpe.com> References: <20220108041121.16005-1-abner.chang@hpe.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: Kq0wWtPzInuRQethRW9v-JBXB1l1j35z X-Proofpoint-GUID: Kq0wWtPzInuRQethRW9v-JBXB1l1j35z X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-08_01,2022-01-07_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxlogscore=999 clxscore=1015 adultscore=0 bulkscore=0 spamscore=0 malwarescore=0 mlxscore=0 lowpriorityscore=0 phishscore=0 priorityscore=1501 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2201080036 Content-Transfer-Encoding: quoted-printable (This is migrated from edk2-platforms:Platform/RISC-V) NULL instance of PlatformMemoryTestLib. Signed-off-by: Abner Chang Co-authored-by: Gilbert Chen Reviewed-by: Leif Lindholm Cc: Leif Lindholm Cc: Gilbert Chen --- .../PlatformMemoryTestLibNull.inf | 29 +++++++++++++++++++ .../PlatformMemoryTestLibNull.c | 29 +++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 Platform/RISC-V/PlatformPkg/Library/PlatformMemoryTestL= ibNull/PlatformMemoryTestLibNull.inf create mode 100644 Platform/RISC-V/PlatformPkg/Library/PlatformMemoryTestL= ibNull/PlatformMemoryTestLibNull.c diff --git a/Platform/RISC-V/PlatformPkg/Library/PlatformMemoryTestLibNull/= PlatformMemoryTestLibNull.inf b/Platform/RISC-V/PlatformPkg/Library/Platfor= mMemoryTestLibNull/PlatformMemoryTestLibNull.inf new file mode 100644 index 0000000000..a1b503ebc2 --- /dev/null +++ b/Platform/RISC-V/PlatformPkg/Library/PlatformMemoryTestLibNull/Platfor= mMemoryTestLibNull.inf @@ -0,0 +1,29 @@ +#/** @file=0D +#=0D +# Copyright (c) 2019, Hewlett Packard Enterprise Development LP. All righ= ts reserved.
=0D +#=0D +# SPDX-License-Identifier: BSD-2-Clause-Patent=0D +#=0D +#**/=0D +=0D +[Defines]=0D + INF_VERSION =3D 0x0001001b=0D + BASE_NAME =3D PlatformMemoryTestLibNull=0D + FILE_GUID =3D 81EE52ED-3C6A-4A42-9564-5676766F5CE6= =0D + MODULE_TYPE =3D DXE_DRIVER=0D + VERSION_STRING =3D 1.0=0D + LIBRARY_CLASS =3D PlatformMemoryTestLib=0D +=0D +[Sources.common]=0D + PlatformMemoryTestLibNull.c=0D +=0D +[Packages]=0D + MdeModulePkg/MdeModulePkg.dec=0D + MdePkg/MdePkg.dec=0D +=0D +[LibraryClasses]=0D + UefiLib=0D + DebugLib=0D +=0D +[Pcd]=0D +=0D diff --git a/Platform/RISC-V/PlatformPkg/Library/PlatformMemoryTestLibNull/= PlatformMemoryTestLibNull.c b/Platform/RISC-V/PlatformPkg/Library/PlatformM= emoryTestLibNull/PlatformMemoryTestLibNull.c new file mode 100644 index 0000000000..9246070787 --- /dev/null +++ b/Platform/RISC-V/PlatformPkg/Library/PlatformMemoryTestLibNull/Platfor= mMemoryTestLibNull.c @@ -0,0 +1,29 @@ +/** @file=0D + Platform Memory Test NULL library=0D +=0D + Copyright (c) 2019, Hewlett Packard Enterprise Development LP. All right= s reserved.
=0D +=0D + SPDX-License-Identifier: BSD-2-Clause-Patent=0D +=0D +**/=0D +=0D +#include =0D +#include =0D +=0D +/**=0D + Perform the memory test base on the memory test intensive level,=0D + and update the memory resource.=0D +=0D + @param Level The memory test intensive level.=0D +=0D + @retval EFI_STATUS Success test all the system memory and update=0D + the memory resource=0D +=0D +**/=0D +EFI_STATUS=0D +PlatformBootManagerMemoryTest (=0D + IN EXTENDMEM_COVERAGE_LEVEL Level=0D + )=0D +{=0D + return EFI_SUCCESS;=0D +}=0D --=20 2.31.1