From nobody Mon Feb 9 03:13:49 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+85948+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+85948+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=hpe.com ARC-Seal: i=1; a=rsa-sha256; t=1642838098; cv=none; d=zohomail.com; s=zohoarc; b=C16eXg4ylCq/2/MVQsTegOhbSIV5EjgBWq9aAjQ+SKgH4K1by1FUV4tFtzCljWh8RDBV979B3gsLHsVeWw8Je5/uPjgVXVatF9e4BqOJNfyt4O9aRjwVURgTCNRa4y//XuxhSU/Gm05a0C5Rqm/VSG1/rRZPPIzC/VUqZAMpkDQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1642838098; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=jJrOGqDdvuBLdwj0NuI1wkxW5QJwXeCvjIwQLi+BSwU=; b=BnFuPurABXIOTnTH/m/UYy5gPlh9ZvPNRzQgGuTE3iJvcGr376Tk3+WmJvcLrHe6WgJu1FiGGbCQST49G6LOvjcc5SHMR2zaaMiOu4y3ll5ui8TtIdcCK0ZW9kmyberPygtY2e3xTKQSir0FNJnJGpBrtKGPipajGAVOin+pmt0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+85948+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1642838098253193.09479452976143; Fri, 21 Jan 2022 23:54:58 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id GAPCYY1788612xQG2kqFSuly; Fri, 21 Jan 2022 23:54:57 -0800 X-Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web09.5918.1642838097082759783 for ; Fri, 21 Jan 2022 23:54:57 -0800 X-Received: from pps.filterd (m0150245.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 20M4hZvh005039; Sat, 22 Jan 2022 07:54:56 GMT X-Received: from g4t3426.houston.hpe.com (g4t3426.houston.hpe.com [15.241.140.75]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3drb59grdr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 22 Jan 2022 07:54:55 +0000 X-Received: from g4t3433.houston.hpecorp.net (g4t3433.houston.hpecorp.net [16.208.49.245]) by g4t3426.houston.hpe.com (Postfix) with ESMTP id 22EF859; Sat, 22 Jan 2022 07:54:55 +0000 (UTC) X-Received: from UB16Abner.asiapacific.hpqcorp.net (ub16abner.asiapacific.hpqcorp.net [15.119.209.229]) by g4t3433.houston.hpecorp.net (Postfix) with ESMTP id DB01E45; Sat, 22 Jan 2022 07:54:53 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: abner.chang@hpe.com, Daniel Schaefer , Sunil V L Subject: [edk2-devel] [edk2-platforms][PATCH V2 03/14] RISC-V/PlatformPkg: Address ECC errors Date: Sat, 22 Jan 2022 14:53:07 +0800 Message-Id: <20220122065318.21808-4-abner.chang@hpe.com> In-Reply-To: <20220122065318.21808-1-abner.chang@hpe.com> References: <20220122065318.21808-1-abner.chang@hpe.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: I21FRlApZAyxqairYWTtgF_bHoUzEPPE X-Proofpoint-GUID: I21FRlApZAyxqairYWTtgF_bHoUzEPPE X-HPE-SCL: -1 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,abner.chang@hpe.com X-Gm-Message-State: abSYAjbSDFyiNkFCLR5D8N74x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1642838097; bh=ZDc6gP9vibfWPHPlkv5D6GQq+bED2vsTgWlt+GLw4Vg=; h=Cc:Date:From:Reply-To:Subject:To; b=SjTjv5aPT5SO2pMmf9b4+5kicQ77nGbqxx2ULMNj9+g3c6gCHz1M9mNykPFSq11gibf pD9X8RH+dsT4FgfMEcdtf1YuyKgi8HR/Cb19myHRyRB78jgn0/pFzlAH8DioSEl7lq6jp UtcWvXPBJim7jJiJ80M8cvJbNyUvU18Broc= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1642838099414100002 Content-Type: text/plain; charset="utf-8" Signed-off-by: Abner Chang Cc: Daniel Schaefer Cc: Sunil V L --- .../RISC-V/PlatformPkg/RiscVPlatformPkg.dec | 1 - .../RISC-V/PlatformPkg/RiscVPlatformPkg.dsc | 4 +- .../FirmwareContextProcessorSpecificLib.inf | 7 +- .../OpensbiPlatformLib/OpensbiPlatformLib.inf | 2 +- .../PeiCoreEntryPoint/PeiCoreEntryPoint.inf | 1 - .../PlatformBootManagerLib.inf | 13 +--- .../PlatformMemoryTestLibNull.inf | 6 +- .../PlatformSecPpiLibNull.inf | 8 +-- .../PlatformUpdateProgressLibNull.inf | 7 +- .../Library/ResetSystemLib/ResetSystemLib.inf | 1 - .../PlatformPkg/Universal/FdtPeim/FdtPeim.inf | 3 - .../Universal/Pei/PlatformPei/PlatformPei.inf | 10 ++- .../PlatformPkg/Universal/Sec/SecMain.inf | 1 + .../FirmwareContextProcessorSpecificLib.h | 4 +- .../PlatformBootManager.h | 10 +-- .../PlatformPkg/Universal/Sec/SecMain.h | 29 +++++--- .../Edk2OpensbiPlatformWrapperLib.c | 8 +-- .../FirmwareContextProcessorSpecificLib.c | 4 +- .../{Platform.c =3D> OpensbiPlatform.c} | 0 .../PeiCoreEntryPoint/PeiCoreEntryPoint.c | 2 +- .../PeiCoreInfoHobLibNull/CoreInfoHob.c | 2 +- .../PlatformBootManager.c | 7 ++ .../PlatformBootManagerLib/PlatformData.c | 2 +- .../PlatformSecPpiLibNull/PlatformSecPpiLib.c | 2 +- .../RiscVSpecialPlatformLib.c | 2 +- .../PlatformPkg/Universal/FdtPeim/FdtPeim.c | 3 +- .../Universal/Pei/PlatformPei/MemDetect.c | 6 +- .../Universal/Pei/PlatformPei/Platform.c | 71 ++++++++++++++++++- .../PlatformPkg/Universal/Sec/SecMain.c | 51 +++++++------ .../RISC-V/PlatformPkg/RiscVPlatformPkg.uni | 71 ++++++++++++++++++- 30 files changed, 232 insertions(+), 106 deletions(-) rename Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/{Platform.c = =3D> OpensbiPlatform.c} (100%) diff --git a/Platform/RISC-V/PlatformPkg/RiscVPlatformPkg.dec b/Platform/RI= SC-V/PlatformPkg/RiscVPlatformPkg.dec index 19206556ce..53d424c901 100644 --- a/Platform/RISC-V/PlatformPkg/RiscVPlatformPkg.dec +++ b/Platform/RISC-V/PlatformPkg/RiscVPlatformPkg.dec @@ -85,7 +85,6 @@ [PcdsPatchableInModule] =20 [PcdsFeatureFlag] - gUefiRiscVPlatformPkgTokenSpaceGuid.PcdBootlogoOnlyEnable|FALSE|BOOLEAN|= 0x00001200 =20 [PcdsFixedAtBuild, PcdsPatchableInModule, PcdsDynamic, PcdsDynamicEx] =20 diff --git a/Platform/RISC-V/PlatformPkg/RiscVPlatformPkg.dsc b/Platform/RI= SC-V/PlatformPkg/RiscVPlatformPkg.dsc index 47a0fc4494..4f7b2eb282 100644 --- a/Platform/RISC-V/PlatformPkg/RiscVPlatformPkg.dsc +++ b/Platform/RISC-V/PlatformPkg/RiscVPlatformPkg.dsc @@ -1,11 +1,11 @@ -#/** @file +## @file # RISC-V platform package. # # Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All right= s reserved.
# # SPDX-License-Identifier: BSD-2-Clause-Patent # -#**/ +# =20 ##########################################################################= ###### # diff --git a/Platform/RISC-V/PlatformPkg/Library/FirmwareContextProcessorSp= ecificLib/FirmwareContextProcessorSpecificLib.inf b/Platform/RISC-V/Platfor= mPkg/Library/FirmwareContextProcessorSpecificLib/FirmwareContextProcessorSp= ecificLib.inf index 69568511ce..ea2550ce2c 100644 --- a/Platform/RISC-V/PlatformPkg/Library/FirmwareContextProcessorSpecificL= ib/FirmwareContextProcessorSpecificLib.inf +++ b/Platform/RISC-V/PlatformPkg/Library/FirmwareContextProcessorSpecificL= ib/FirmwareContextProcessorSpecificLib.inf @@ -1,10 +1,11 @@ -#/** @file +## @file +# This is the library module of RISC-V EDK2 OpenSBI Firmware Context +# Processor Specific hwardware information. # -# Copyright (c) 2019, Hewlett Packard Enterprise Development LP. All righ= ts reserved.
+# Copyright (c) 2019-2022, Hewlett Packard Enterprise Development LP. All= rights reserved.
# # SPDX-License-Identifier: BSD-2-Clause-Patent # -#**/ =20 [Defines] INF_VERSION =3D 0x0001001b diff --git a/Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/Opensbi= PlatformLib.inf b/Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/Op= ensbiPlatformLib.inf index 6661ee8204..78040d5a93 100644 --- a/Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/OpensbiPlatfor= mLib.inf +++ b/Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/OpensbiPlatfor= mLib.inf @@ -24,7 +24,7 @@ # =20 [Sources] - Platform.c + OpensbiPlatform.c =20 [Packages] EmbeddedPkg/EmbeddedPkg.dec diff --git a/Platform/RISC-V/PlatformPkg/Library/PeiCoreEntryPoint/PeiCoreE= ntryPoint.inf b/Platform/RISC-V/PlatformPkg/Library/PeiCoreEntryPoint/PeiCo= reEntryPoint.inf index 4f3af27bcf..8e27011c8f 100644 --- a/Platform/RISC-V/PlatformPkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoi= nt.inf +++ b/Platform/RISC-V/PlatformPkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoi= nt.inf @@ -33,5 +33,4 @@ BaseLib DebugLib PlatformSecPpiLib - RiscVFirmwareContextLib =20 diff --git a/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/Pla= tformBootManagerLib.inf b/Platform/RISC-V/PlatformPkg/Library/PlatformBootM= anagerLib/PlatformBootManagerLib.inf index 2bf89a3c44..caefae3b2e 100644 --- a/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBo= otManagerLib.inf +++ b/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBo= otManagerLib.inf @@ -34,18 +34,11 @@ =20 [LibraryClasses] BaseLib - UefiBootServicesTableLib - UefiRuntimeServicesTableLib - UefiLib - UefiBootManagerLib PcdLib - PlatformMemoryTestLib - PlatformUpdateProgressLib - DxeServicesLib MemoryAllocationLib - DevicePathLib - HiiLib PrintLib + PlatformMemoryTestLib + PlatformUpdateProgressLib =20 [Guids] gEfiEndOfDxeEventGroupGuid @@ -59,4 +52,4 @@ gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn gEfiMdeModulePkgTokenSpaceGuid.PcdConInConnectOnDemand - gUefiRiscVPlatformPkgTokenSpaceGuid.PcdBootlogoOnlyEnable + diff --git a/Platform/RISC-V/PlatformPkg/Library/PlatformMemoryTestLibNull/= PlatformMemoryTestLibNull.inf b/Platform/RISC-V/PlatformPkg/Library/Platfor= mMemoryTestLibNull/PlatformMemoryTestLibNull.inf index a1b503ebc2..9905448909 100644 --- a/Platform/RISC-V/PlatformPkg/Library/PlatformMemoryTestLibNull/Platfor= mMemoryTestLibNull.inf +++ b/Platform/RISC-V/PlatformPkg/Library/PlatformMemoryTestLibNull/Platfor= mMemoryTestLibNull.inf @@ -1,10 +1,10 @@ -#/** @file +## @file +# Platform NULL memory test library instance. # # Copyright (c) 2019, Hewlett Packard Enterprise Development LP. All righ= ts reserved.
# # SPDX-License-Identifier: BSD-2-Clause-Patent # -#**/ =20 [Defines] INF_VERSION =3D 0x0001001b @@ -22,8 +22,6 @@ MdePkg/MdePkg.dec =20 [LibraryClasses] - UefiLib - DebugLib =20 [Pcd] =20 diff --git a/Platform/RISC-V/PlatformPkg/Library/PlatformSecPpiLibNull/Plat= formSecPpiLibNull.inf b/Platform/RISC-V/PlatformPkg/Library/PlatformSecPpiL= ibNull/PlatformSecPpiLibNull.inf index 22f5751655..c562e44c68 100644 --- a/Platform/RISC-V/PlatformPkg/Library/PlatformSecPpiLibNull/PlatformSec= PpiLibNull.inf +++ b/Platform/RISC-V/PlatformPkg/Library/PlatformSecPpiLibNull/PlatformSec= PpiLibNull.inf @@ -1,17 +1,16 @@ ## @file -# Library instance to to provide PPI before PEI Core +# NULL library instance of PlatformSecPpiLib # # Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All righ= ts reserved.
# # SPDX-License-Identifier: BSD-2-Clause-Patent # -## =20 [Defines] INF_VERSION =3D 0x0001001b BASE_NAME =3D PlatformSecPpiLib FILE_GUID =3D A2CDDADC-CB65-4EED-9CAE-192B0BDD6C84 - MODULE_TYPE =3D PEIM + MODULE_TYPE =3D BASE VERSION_STRING =3D 1.0 LIBRARY_CLASS =3D PlatformSecPpiLib|PEI_CORE =20 @@ -28,9 +27,6 @@ MdePkg/MdePkg.dec MdeModulePkg/MdeModulePkg.dec Platform/RISC-V/PlatformPkg/RiscVPlatformPkg.dec - #Silicon/RISC-V/ProcessorPkg/RiscVProcessorPkg.dec =20 [LibraryClasses] - #BaseLib - #PrintLib =20 diff --git a/Platform/RISC-V/PlatformPkg/Library/PlatformUpdateProgressLibN= ull/PlatformUpdateProgressLibNull.inf b/Platform/RISC-V/PlatformPkg/Library= /PlatformUpdateProgressLibNull/PlatformUpdateProgressLibNull.inf index fdba00c053..1411015809 100644 --- a/Platform/RISC-V/PlatformPkg/Library/PlatformUpdateProgressLibNull/Pla= tformUpdateProgressLibNull.inf +++ b/Platform/RISC-V/PlatformPkg/Library/PlatformUpdateProgressLibNull/Pla= tformUpdateProgressLibNull.inf @@ -1,10 +1,11 @@ -#/** @file +## @file +# Platform Update Progress NULL library # # Copyright (c) 2019, Hewlett Packard Enterprise Development LP. All righ= ts reserved.
# # SPDX-License-Identifier: BSD-2-Clause-Patent # -#**/ +# =20 [Defines] INF_VERSION =3D 0x0001001b @@ -22,8 +23,6 @@ MdePkg/MdePkg.dec =20 [LibraryClasses] - UefiLib - DebugLib =20 [Pcd] =20 diff --git a/Platform/RISC-V/PlatformPkg/Library/ResetSystemLib/ResetSystem= Lib.inf b/Platform/RISC-V/PlatformPkg/Library/ResetSystemLib/ResetSystemLib= .inf index f876ae2056..8987adb946 100644 --- a/Platform/RISC-V/PlatformPkg/Library/ResetSystemLib/ResetSystemLib.inf +++ b/Platform/RISC-V/PlatformPkg/Library/ResetSystemLib/ResetSystemLib.inf @@ -4,7 +4,6 @@ # Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All righ= ts reserved.
# SPDX-License-Identifier: BSD-2-Clause-Patent # -## =20 [Defines] INF_VERSION =3D 0x00010005 diff --git a/Platform/RISC-V/PlatformPkg/Universal/FdtPeim/FdtPeim.inf b/Pl= atform/RISC-V/PlatformPkg/Universal/FdtPeim/FdtPeim.inf index 8dc58f0a8b..dc3a685d58 100644 --- a/Platform/RISC-V/PlatformPkg/Universal/FdtPeim/FdtPeim.inf +++ b/Platform/RISC-V/PlatformPkg/Universal/FdtPeim/FdtPeim.inf @@ -33,14 +33,11 @@ Silicon/RISC-V/ProcessorPkg/RiscVProcessorPkg.dec =20 [LibraryClasses] - DebugLib DebugLib HobLib FdtLib PcdLib - PeiServicesLib PeimEntryPoint - RiscVFirmwareContextLib =20 [Guids] gFdtHobGuid ## PRODUCES diff --git a/Platform/RISC-V/PlatformPkg/Universal/Pei/PlatformPei/Platform= Pei.inf b/Platform/RISC-V/PlatformPkg/Universal/Pei/PlatformPei/PlatformPei= .inf index 6368a49927..8a88bbf9ce 100644 --- a/Platform/RISC-V/PlatformPkg/Universal/Pei/PlatformPei/PlatformPei.inf +++ b/Platform/RISC-V/PlatformPkg/Universal/Pei/PlatformPei/PlatformPei.inf @@ -3,7 +3,7 @@ # # This module provides platform specific function to detect boot mode. # -# Copyright (c) 2021-2022, Hewlett Packard Enterprise Development LP. All= rights reserved.
+# Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All righ= ts reserved.
# # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -27,6 +27,7 @@ Fv.c MemDetect.c Platform.c + Platform.h =20 [Packages] MdeModulePkg/MdeModulePkg.dec @@ -42,12 +43,9 @@ DebugLib HobLib IoLib - PciLib - PeiResourcePublicationLib - PeiServicesLib - PeiServicesTablePointerLib - PeimEntryPoint PcdLib + PeimEntryPoint + PeiResourcePublicationLib RiscVCoreplexInfoLib =20 [Pcd] diff --git a/Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.inf b/Platfo= rm/RISC-V/PlatformPkg/Universal/Sec/SecMain.inf index b949b6c470..1e8d53f486 100644 --- a/Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.inf +++ b/Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.inf @@ -22,6 +22,7 @@ # =20 [Sources] + SecMain.h SecMain.c =20 [Sources.RISCV64] diff --git a/Platform/RISC-V/PlatformPkg/Include/Library/FirmwareContextPro= cessorSpecificLib.h b/Platform/RISC-V/PlatformPkg/Include/Library/FirmwareC= ontextProcessorSpecificLib.h index f3b096c257..3920c61155 100644 --- a/Platform/RISC-V/PlatformPkg/Include/Library/FirmwareContextProcessorS= pecificLib.h +++ b/Platform/RISC-V/PlatformPkg/Include/Library/FirmwareContextProcessorS= pecificLib.h @@ -6,8 +6,8 @@ SPDX-License-Identifier: BSD-2-Clause-Patent =20 **/ -#ifndef FIRMWARE_CONTEXT_PROCESSOR_SPECIFIC_LIB_H -#define FIRMWARE_CONTEXT_PROCESSOR_SPECIFIC_LIB_H +#ifndef FIRMWARE_CONTEXT_PROCESSOR_SPECIFIC_LIB_H_ +#define FIRMWARE_CONTEXT_PROCESSOR_SPECIFIC_LIB_H_ =20 #include #include diff --git a/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/Pla= tformBootManager.h b/Platform/RISC-V/PlatformPkg/Library/PlatformBootManage= rLib/PlatformBootManager.h index 58c363a48b..01c26f307e 100644 --- a/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBo= otManager.h +++ b/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBo= otManager.h @@ -1,4 +1,4 @@ -/**@file +/** @file Head file for BDS Platform specific code =20 Copyright (c) 2016, Hewlett Packard Enterprise Development LP. All rights = reserved.
@@ -39,14 +39,6 @@ typedef struct { =20 extern PLATFORM_CONSOLE_CONNECT_ENTRY gPlatformConsole[]; =20 -#define gEndEntire \ - { \ - END_DEVICE_PATH_TYPE,\ - END_ENTIRE_DEVICE_PATH_SUBTYPE,\ - END_DEVICE_PATH_LENGTH,\ - 0\ - } - #define CONSOLE_OUT BIT0 #define CONSOLE_IN BIT1 #define STD_ERROR BIT2 diff --git a/Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.h b/Platform= /RISC-V/PlatformPkg/Universal/Sec/SecMain.h index 6188778fc4..63a610fbd0 100644 --- a/Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.h +++ b/Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.h @@ -27,25 +27,38 @@ #include #include =20 -int +/** + OpenSBI platform early init hook. + + @param[in] ColdBoot Is cold boot path or warm boot path. + @retval OpenSBI error code. + +**/ +INT32 SecPostOpenSbiPlatformEarlylInit( IN BOOLEAN ColdBoot ); =20 -int +/** + OpenSBI platform final init hook. + We restore the next_arg1 to the pointer of EFI_RISCV_OPENSBI_FIRMWARE_CO= NTEXT. + + @param[in] ColdBoot Is cold boot path or warm boot path. + @retval OpenSBI error code. + +**/ +INT32 SecPostOpenSbiPlatformFinalInit ( IN BOOLEAN ColdBoot ); =20 +/** + SEC machine mode trap handler. + +**/ VOID SecMachineModeTrapHandler ( IN VOID ); =20 -VOID -EFIAPI -SecStartupPhase2 ( - IN VOID *Context - ); - #endif // _SECMAIN_H_ diff --git a/Platform/RISC-V/PlatformPkg/Library/Edk2OpensbiPlatformWrapper= Lib/Edk2OpensbiPlatformWrapperLib.c b/Platform/RISC-V/PlatformPkg/Library/E= dk2OpensbiPlatformWrapperLib/Edk2OpensbiPlatformWrapperLib.c index 6c5c1a789f..2137c6c619 100644 --- a/Platform/RISC-V/PlatformPkg/Library/Edk2OpensbiPlatformWrapperLib/Edk= 2OpensbiPlatformWrapperLib.c +++ b/Platform/RISC-V/PlatformPkg/Library/Edk2OpensbiPlatformWrapperLib/Edk= 2OpensbiPlatformWrapperLib.c @@ -1,11 +1,11 @@ -/* +/** @file EDK2 OpenSBI generic platform wrapper library =20 Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All right= s reserved.
=20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 - */ + **/ =20 #include #include @@ -189,7 +189,7 @@ Edk2OpensbiPlatformEarlyInit ( return ReturnCode; } } - if (ColdBoot =3D=3D TRUE) { + if (ColdBoot) { return SecPostOpenSbiPlatformEarlylInit(ColdBoot); } return 0; @@ -216,7 +216,7 @@ Edk2OpensbiPlatformFinalInit ( return ReturnCode; } } - if (ColdBoot =3D=3D TRUE) { + if (ColdBoot) { return SecPostOpenSbiPlatformFinalInit(ColdBoot); } return 0; diff --git a/Platform/RISC-V/PlatformPkg/Library/FirmwareContextProcessorSp= ecificLib/FirmwareContextProcessorSpecificLib.c b/Platform/RISC-V/PlatformP= kg/Library/FirmwareContextProcessorSpecificLib/FirmwareContextProcessorSpec= ificLib.c index c62f77bc49..143c18d62c 100644 --- a/Platform/RISC-V/PlatformPkg/Library/FirmwareContextProcessorSpecificL= ib/FirmwareContextProcessorSpecificLib.c +++ b/Platform/RISC-V/PlatformPkg/Library/FirmwareContextProcessorSpecificL= ib/FirmwareContextProcessorSpecificLib.c @@ -1,4 +1,4 @@ -/**@file +/** @file Common library to build upfirmware context processor-specific information =20 Copyright (c) 2019, Hewlett Packard Enterprise Development LP. All right= s reserved.
@@ -93,7 +93,7 @@ CommonFirmwareContextHartSpecificInfo ( } =20 /** - Print debug information of the processor specific data for a hart + Print debug information of the processor specific data for a hart. =20 @param ProcessorSpecificDataHob Pointer to RISC_V_PROCESSOR_SPECIFI= C_DATA_HOB **/ diff --git a/Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/Platfor= m.c b/Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/OpensbiPlatfor= m.c similarity index 100% rename from Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/Platform= .c rename to Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/OpensbiPla= tform.c diff --git a/Platform/RISC-V/PlatformPkg/Library/PeiCoreEntryPoint/PeiCoreE= ntryPoint.c b/Platform/RISC-V/PlatformPkg/Library/PeiCoreEntryPoint/PeiCore= EntryPoint.c index 16488b7bc9..50de969947 100644 --- a/Platform/RISC-V/PlatformPkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoi= nt.c +++ b/Platform/RISC-V/PlatformPkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoi= nt.c @@ -45,7 +45,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent **/ VOID EFIAPI -_ModuleEntryPoint( +_ModuleEntryPoint ( IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData, IN CONST EFI_PEI_PPI_DESCRIPTOR *PpiList ) diff --git a/Platform/RISC-V/PlatformPkg/Library/PeiCoreInfoHobLibNull/Core= InfoHob.c b/Platform/RISC-V/PlatformPkg/Library/PeiCoreInfoHobLibNull/CoreI= nfoHob.c index 9aad7991bc..ae80b2404d 100644 --- a/Platform/RISC-V/PlatformPkg/Library/PeiCoreInfoHobLibNull/CoreInfoHob= .c +++ b/Platform/RISC-V/PlatformPkg/Library/PeiCoreInfoHobLibNull/CoreInfoHob= .c @@ -1,4 +1,4 @@ -/**@file +/** @file Build up platform processor information. =20 Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All right= s reserved.
diff --git a/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/Pla= tformBootManager.c b/Platform/RISC-V/PlatformPkg/Library/PlatformBootManage= rLib/PlatformBootManager.c index d67f4836fc..deaad7d5a1 100644 --- a/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBo= otManager.c +++ b/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBo= otManager.c @@ -86,6 +86,13 @@ PlatformFindLoadOption ( return -1; } =20 +/** + Register a boot option using a file GUID in the FV. + + @param FileGuid The file GUID name in FV. + @param Description The boot option description. + @param Attributes The attributes used for the boot option loading. +**/ VOID PlatformRegisterFvBootOption ( EFI_GUID *FileGuid, diff --git a/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/Pla= tformData.c b/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/Pl= atformData.c index 3208051e16..c1dbbf451e 100644 --- a/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformDa= ta.c +++ b/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformDa= ta.c @@ -1,4 +1,4 @@ -/**@file +/** @file Defined the platform specific device path which will be filled to ConIn/ConOut variables. =20 diff --git a/Platform/RISC-V/PlatformPkg/Library/PlatformSecPpiLibNull/Plat= formSecPpiLib.c b/Platform/RISC-V/PlatformPkg/Library/PlatformSecPpiLibNull= /PlatformSecPpiLib.c index d5c089b02d..bcb345c4e9 100644 --- a/Platform/RISC-V/PlatformPkg/Library/PlatformSecPpiLibNull/PlatformSec= PpiLib.c +++ b/Platform/RISC-V/PlatformPkg/Library/PlatformSecPpiLibNull/PlatformSec= PpiLib.c @@ -1,4 +1,4 @@ -/**@file +/** @file NULL library instance of PlatformSecPpiLib =20 Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All right= s reserved.
diff --git a/Platform/RISC-V/PlatformPkg/Library/RiscVSpecialPlatformLibNul= l/RiscVSpecialPlatformLib.c b/Platform/RISC-V/PlatformPkg/Library/RiscVSpec= ialPlatformLibNull/RiscVSpecialPlatformLib.c index f64bde4535..44f6ad6aed 100644 --- a/Platform/RISC-V/PlatformPkg/Library/RiscVSpecialPlatformLibNull/RiscV= SpecialPlatformLib.c +++ b/Platform/RISC-V/PlatformPkg/Library/RiscVSpecialPlatformLibNull/RiscV= SpecialPlatformLib.c @@ -1,4 +1,4 @@ -/**@file +/** @file Library to provide platform_override for the special RISC-V platform. This module incorporates with OpensbiPlatformLib and RISC-V Opensbi library. diff --git a/Platform/RISC-V/PlatformPkg/Universal/FdtPeim/FdtPeim.c b/Plat= form/RISC-V/PlatformPkg/Universal/FdtPeim/FdtPeim.c index 2cd94f291c..3487a5faf4 100644 --- a/Platform/RISC-V/PlatformPkg/Universal/FdtPeim/FdtPeim.c +++ b/Platform/RISC-V/PlatformPkg/Universal/FdtPeim/FdtPeim.c @@ -22,7 +22,8 @@ SPDX-License-Identifier: BSD-2-Clause-Patent @param FileHandle Handle of the file being invoked. @param PeiServices Describes the list of possible PEI Servic= es. =20 - @retval TODO + @retval EFI_SUCCESS The address of FDT is passed in HOB. + EFI_UNSUPPORTED Can't locate FDT. **/ EFI_STATUS EFIAPI diff --git a/Platform/RISC-V/PlatformPkg/Universal/Pei/PlatformPei/MemDetec= t.c b/Platform/RISC-V/PlatformPkg/Universal/Pei/PlatformPei/MemDetect.c index c15d6bb5d4..9b52eb5189 100644 --- a/Platform/RISC-V/PlatformPkg/Universal/Pei/PlatformPei/MemDetect.c +++ b/Platform/RISC-V/PlatformPkg/Universal/Pei/PlatformPei/MemDetect.c @@ -1,4 +1,4 @@ -/**@file +/** @file Memory Detection for Virtual Machines. =20 Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All right= s reserved.
@@ -32,7 +32,7 @@ Module Name: =20 =20 /** - Publish PEI core memory + Publish PEI core memory. =20 @return EFI_SUCCESS The PEIM initialized successfully. =20 @@ -65,7 +65,7 @@ PublishPeiMemory ( } =20 /** - Publish system RAM and reserve memory regions + Publish system RAM and reserve memory regions. =20 **/ VOID diff --git a/Platform/RISC-V/PlatformPkg/Universal/Pei/PlatformPei/Platform= .c b/Platform/RISC-V/PlatformPkg/Universal/Pei/PlatformPei/Platform.c index 6deeb19655..972a429fb9 100644 --- a/Platform/RISC-V/PlatformPkg/Universal/Pei/PlatformPei/Platform.c +++ b/Platform/RISC-V/PlatformPkg/Universal/Pei/PlatformPei/Platform.c @@ -1,4 +1,4 @@ -/**@file +/** @file Platform PEI driver =20 Copyright (c) 2019-2022, Hewlett Packard Enterprise Development LP. All = rights reserved.
@@ -54,6 +54,14 @@ EFI_PEI_PPI_DESCRIPTOR mPpiBootMode[] =3D { =20 STATIC EFI_BOOT_MODE mBootMode =3D BOOT_WITH_FULL_CONFIGURATION; =20 +/** + Build memory map I/O range resource HOB using the + base address and size. + + @param MemoryBase Memory map I/O base. + @param MemorySize Memory map I/O size. + +**/ VOID AddIoMemoryBaseSizeHob ( EFI_PHYSICAL_ADDRESS MemoryBase, @@ -71,6 +79,13 @@ AddIoMemoryBaseSizeHob ( ); } =20 +/** + Build reserved memory range resource HOB. + + @param MemoryBase Reserved memory range base address. + @param MemorySize Reserved memory range size. + +**/ VOID AddReservedMemoryBaseSizeHob ( EFI_PHYSICAL_ADDRESS MemoryBase, @@ -88,6 +103,14 @@ AddReservedMemoryBaseSizeHob ( ); } =20 +/** + Build memory map I/O resource using the base address + and the top address of memory range. + + @param MemoryBase Memory map I/O range base address. + @param MemoryLimit The top address of memory map I/O range + +**/ VOID AddIoMemoryRangeHob ( EFI_PHYSICAL_ADDRESS MemoryBase, @@ -97,7 +120,14 @@ AddIoMemoryRangeHob ( AddIoMemoryBaseSizeHob (MemoryBase, (UINT64)(MemoryLimit - MemoryBase)); } =20 +/** + Create memory range resource HOB using the memory base + address and size. + + @param MemoryBase Memory range base address. + @param MemorySize Memory range size. =20 +**/ VOID AddMemoryBaseSizeHob ( EFI_PHYSICAL_ADDRESS MemoryBase, @@ -118,7 +148,14 @@ AddMemoryBaseSizeHob ( ); } =20 +/** + Create memory range resource HOB using memory base + address and top address of the memory range. + + @param MemoryBase Memory range base address. + @param MemoryLimit Memory range size. =20 +**/ VOID AddMemoryRangeHob ( EFI_PHYSICAL_ADDRESS MemoryBase, @@ -128,7 +165,14 @@ AddMemoryRangeHob ( AddMemoryBaseSizeHob (MemoryBase, (UINT64)(MemoryLimit - MemoryBase)); } =20 +/** + Create untested memory range resource HOB using memory base + address and top address of the memory range. + + @param MemoryBase Memory range base address. + @param MemorySize Memory range size. =20 +**/ VOID AddUntestedMemoryBaseSizeHob ( EFI_PHYSICAL_ADDRESS MemoryBase, @@ -148,6 +192,14 @@ AddUntestedMemoryBaseSizeHob ( ); } =20 +/** + Create untested memory range resource HOB using memory base + address and top address of the memory range. + + @param MemoryBase Memory range base address. + @param MemoryLimit Memory range size. + +**/ VOID AddUntestedMemoryRangeHob ( EFI_PHYSICAL_ADDRESS MemoryBase, @@ -157,6 +209,10 @@ AddUntestedMemoryRangeHob ( AddUntestedMemoryBaseSizeHob (MemoryBase, (UINT64)(MemoryLimit - MemoryB= ase)); } =20 +/** + Add PCI resource. + +**/ VOID AddPciResource ( VOID @@ -167,6 +223,10 @@ AddPciResource ( // } =20 +/** + Platform memory map initialization. + +**/ VOID MemMapInitialization ( VOID @@ -187,6 +247,10 @@ MemMapInitialization ( AddPciResource (); } =20 +/** + Platform misc initialization. + +**/ VOID MiscInitialization ( VOID @@ -221,7 +285,10 @@ CheckResumeFromS3 ( return FALSE; } =20 +/** + Platform boot mode initialization. =20 +**/ VOID BootModeInitialization ( VOID @@ -229,7 +296,7 @@ BootModeInitialization ( { EFI_STATUS Status; =20 - if (CheckResumeFromS3 () =3D=3D TRUE) { + if (CheckResumeFromS3 ()) { DEBUG ((DEBUG_INFO, "This is wake from S3\n")); } else { DEBUG ((DEBUG_INFO, "This is normal boot\n")); diff --git a/Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.c b/Platform= /RISC-V/PlatformPkg/Universal/Sec/SecMain.c index 05f228c44d..1fafed2799 100644 --- a/Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.c +++ b/Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.c @@ -227,10 +227,10 @@ FindFfsFileAndSection ( } =20 /** - Locates the PEI Core entry point address + Locates the PEI Core entry point address. =20 @param[in] Fv The firmware volume to search - @param[out] PeiCoreEntryPoint The entry point of the PEI Core image + @param[out] PeiCoreImageBase The entry point of the PEI Core image =20 @retval EFI_SUCCESS The file and section was found @retval EFI_NOT_FOUND The file and section was not found @@ -270,14 +270,10 @@ FindPeiCoreImageBaseInFv ( } =20 /** - Locates the PEI Core entry point address + Locates the PEI Core entry point address. =20 - @param[in,out] Fv The firmware volume to search - @param[out] PeiCoreEntryPoint The entry point of the PEI Core image - - @retval EFI_SUCCESS The file and section was found - @retval EFI_NOT_FOUND The file and section was not found - @retval EFI_VOLUME_CORRUPTED The firmware volume was corrupted + @param[in,out] BootFv The firmware volume to search + @param[out] PeiCoreImageBase The entry point of the PEI Core image =20 **/ VOID @@ -292,12 +288,16 @@ FindPeiCoreImageBase ( FindPeiCoreImageBaseInFv (*BootFv, PeiCoreImageBase); } =20 -/* +/** Find and return Pei Core entry point. =20 It also find SEC and PEI Core file debug inforamtion. It will report the= m if remote debug is enabled. =20 + @param[in] BootFirmwareVolumePtr The firmware volume pointer to search + @param[out] PeiCoreEntryPoint The entry point of the PEI Core image + + **/ VOID FindAndReportEntryPoints ( @@ -330,7 +330,7 @@ FindAndReportEntryPoints ( =20 @param[in] ExtId The extension ID of the FW extension. @param[in] FuncId The called function ID. - @param[in] Args The args to the function. + @param[in] TrapRegs The args to the function. @param[out] OutVal The value the function returns to the caller. @param[out] OutTrap Trap info for trapping further, see OpenSBI cod= e. Is ignored if return value is not SBI_ETRAP. @@ -339,7 +339,8 @@ FindAndReportEntryPoints ( @retval SBI_ENOTSUPP If there's no function with the given ID. @retval SBI_ETRAP If the called SBI functions wants to trap furth= er. **/ -STATIC int SbiEcallFirmwareHandler ( +int +SbiEcallFirmwareHandler ( IN unsigned long ExtId, IN unsigned long FuncId, IN CONST struct sbi_trap_regs *TrapRegs, @@ -347,8 +348,9 @@ STATIC int SbiEcallFirmwareHandler ( OUT struct sbi_trap_info *OutTrap ) { - int Ret =3D SBI_OK; + int Ret; =20 + Ret =3D SBI_OK; switch (FuncId) { case SBI_EXT_FW_MSCRATCH_FUNC: *OutVal =3D (unsigned long) sbi_scratch_thishart_ptr(); @@ -408,17 +410,20 @@ RegisterFirmwareSbiExtension ( @param[in] Scratch Pointer to sbi_scratch structure. =20 **/ -VOID EFIAPI PeiCore ( +VOID +EFIAPI +PeiCore ( IN UINTN BootHartId, IN struct sbi_scratch *Scratch ) { EFI_SEC_PEI_HAND_OFF SecCoreData; EFI_PEI_CORE_ENTRY_POINT PeiCoreEntryPoint; - EFI_FIRMWARE_VOLUME_HEADER *BootFv =3D (EFI_FIRMWARE_VOLUME_HEADER *)Fix= edPcdGet32(PcdRiscVPeiFvBase); + EFI_FIRMWARE_VOLUME_HEADER *BootFv; EFI_RISCV_OPENSBI_FIRMWARE_CONTEXT FirmwareContext; - struct sbi_platform *ThisSbiPlatform; + struct sbi_platform *ThisSbiPlatform; =20 + BootFv =3D (EFI_FIRMWARE_VOLUME_HEADER *)FixedPcdGet32(PcdRiscVPeiFvBase= ); FindAndReportEntryPoints (&BootFv, &PeiCoreEntryPoint); =20 SecCoreData.DataSize =3D sizeof(EFI_SEC_PEI_HAND_OFF); @@ -571,8 +576,6 @@ GetDeviceTreeAddress ( bootable harts other than those declared in Device Tree =20 @param[in] SbiPlatform Pointer to SBI platform - @retval hart_index2id Index to ID value may be overwrote. - @retval hart_count Index to ID value may be overwrote. =20 **/ VOID @@ -626,7 +629,9 @@ Edk2PlatformHartIndex2Id ( @param[in] Scratch Pointer to sbi_scratch structure. =20 **/ -VOID EFIAPI SecCoreStartUpWithStack( +VOID +EFIAPI +SecCoreStartUpWithStack( IN UINTN HartId, IN struct sbi_scratch *Scratch ) @@ -710,11 +715,3 @@ VOID EFIAPI SecCoreStartUpWithStack( sbi_init(Scratch); } =20 -VOID OpensbiDebugPrint (CHAR8 *debugstr, ...) -{ - VA_LIST Marker; - - VA_START (Marker, debugstr); - DebugVPrint (DEBUG_INFO, debugstr, Marker); - VA_END (Marker); -} diff --git a/Platform/RISC-V/PlatformPkg/RiscVPlatformPkg.uni b/Platform/RI= SC-V/PlatformPkg/RiscVPlatformPkg.uni index deb91fa10c..836e02dd74 100644 --- a/Platform/RISC-V/PlatformPkg/RiscVPlatformPkg.uni +++ b/Platform/RISC-V/PlatformPkg/RiscVPlatformPkg.uni @@ -1,7 +1,7 @@ // /** @file // RISC-V Package Localized Strings and Content. // -// Copyright (c) 2019, Hewlett Packard Enterprise Development LP. All righ= ts reserved.
+// Copyright (c) 2019-2022, Hewlett Packard Enterprise Development LP. All= rights reserved.
// // SPDX-License-Identifier: BSD-2-Clause-Patent // @@ -12,4 +12,73 @@ =20 #string STR_PACKAGE_DESCRIPTION #language en-US "This Package prov= ides UEFI compatible RISC-V platform modules and libraries." =20 +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdRiscVSecFvBase_PROMPT #= language en-US "SEC FV base address" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdRiscVSecFvBase_HELP #= language en-US "RISC-V platform SEC Firmware Volume base address." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdRiscVSecFvSize_PROMPT #= language en-US "SEC FV Size" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdRiscVSecFvSize_HELP #= language en-US "RISC-V platform SEC Firmware Volume size." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdRiscVPeiFvBase_PROMPT #= language en-US "PEI FV base address" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdRiscVPeiFvBase_HELP #= language en-US "RISC-V platform PEI Firmware Volume base address." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdRiscVPeiFvSize_PROMPT #= language en-US "PEI FV Size" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdRiscVPeiFvSize_HELP #= language en-US "RISC-V platform PEI Firmware Volume size. +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdRiscVDxeFvBase_PROMPT #= language en-US "DXE FV base address" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdRiscVDxeFvBase_HELP #= language en-US "RISC-V platform DXE Firmware Volume base address." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdRiscVDxeFvSize_PROMPT #= language en-US "DXE FV Size" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdRiscVDxeFvSize_HELP #= language en-US "RISC-V platform DXE Firmware Volume size." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdRiscVDtbFvBase_PROMPT #= language en-US "DBT FV base address." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdRiscVDtbFvBase_HELP #= language en-US "RISC-V platform Device Tree Firmware Volume base address." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdRiscVDtbFvSize_PROMPT #= language en-US "DBT FV Size". +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdRiscVDtbFvSize_HELP #= language en-US "RISC-V platform Device Tree Firmware Volume size." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdRootFirmwareDomainBaseA= ddress_PROMPT #language en-US "EDK2 OpenSBI Root Firmware Domain address" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdRootFirmwareDomainBaseA= ddress_HELP #language en-US "The base address of EDK2 OpenSBI Root Firmwa= re Domain." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdRootFirmwareDomainSize_= PROMPT #language en-US "EDK2 OpenSBI Root Firmware Domain size" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdRootFirmwareDomainSize_= HELP #language en-US "This is the size of EKD2 OpenSBI Root Firmware Doma= in." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdFirmwareDomainBaseAddre= ss_PROMPT #language en-US "EDK2 OpenSBI Firmware Domain address" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdFirmwareDomainBaseAddre= ss_HELP #language en-US "This is the base address of EDK2 OpenSBI Firmwar= e Domain." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdFirmwareDomainSize_PROM= PT #language en-US "EDK2 OpenSBI Firmware Domain size" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdFirmwareDomainSize_HELP= #language en-US "The size of EDK2 OpenSBI Firmware Domain." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdVariableFirmwareRegionB= aseAddress_PROMPT #language en-US "EFI Variable FV base address" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdVariableFirmwareRegionB= aseAddress_HELP #language en-US "The base address of EFI Variable Firmwar= e Volume." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdVariableFirmwareRegionS= ize_PROMPT #language en-US "EFI Variable FV size" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdVariableFirmwareRegionS= ize_HELP #language en-US "The size of EFI Variable Firmware Volume." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdVariableFdBaseAddress_P= ROMPT #language en-US "FD base address" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdVariableFdBaseAddress_H= ELP #language en-US "The base address of Firmware Device." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdVariableFdSize_PROMPT #= language en-US "FD size" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdVariableFdSize_HELP #= language en-US "The size of Firmware Device." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdVariableFdBlockSize_PRO= MPT #language en-US "FD block size" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdVariableFdBlockSize_HEL= P #language en-US "The block size of Firmware Device" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdPlatformFlashNvStorageV= ariableBase_PROMPT #language en-US "Base address of flash NV variable ran= ge" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdPlatformFlashNvStorageV= ariableBase_HELP #language en-US "Base address of the NV variable range= in flash device." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdPlatformFlashNvStorageF= twWorkingBase_PROMPT #language en-US "Base address of flash FTW working blo= ck range" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdPlatformFlashNvStorageF= twWorkingBase_HELP #language en-US "Base address of the FTW working block= range in flash device. If PcdFlashNvStorageFtwWorkingSize is larger than o= ne block size, this value should be block size aligned." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdPlatformFlashNvStorageF= twSpareBase_PROMPT #language en-US "Base address of flash FTW spare block= range" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdPlatformFlashNvStorageF= twSpareBase_HELP #language en-US "Base address of the FTW spare block r= ange in flash device. Note that this value should be block size aligned." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdHartCount_PROMPT #lang= uage en-US "RISC-V HART Count" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdHartCount_HELP #lang= uage en-US "The HART count of the RISC-V processor." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdBootHartId_PROMPT #lang= uage en-US "RISC-V Boot HART ID" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdBootHartId_HELP #lang= uage en-US "The ID number of booting HART of RISC-V processor." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdBootableHartNumber_PROM= PT #language en-US "RISC-V Bootable HART number" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdBootableHartNumber_HELP= #language en-US "The bootable hart core number, which incorporates with = OpenSBI platform hart_index2id value.
" + = "PcdBootableHartNumber =3D 0 means the number of bootabl= e hart comes from Device Tree.
" + = "Otherwise the number assigned in PcdBootableHartNumber = overwrite it." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdBootableHartIndexToId_P= ROMPT #language en-US "RISC-V HARD ID to indxe tanslation" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdBootableHartIndexToId_H= ELP #language en-US "PcdBootableHartIndexToId is valid if PcdBootableHart= Number !=3D 0.
" + = "If PcdBootableHartNumber !=3D 0, then PcdBootableHar= tIndexToId is an array of
" + = "bootable hart ID.
" + = "For example,
" + = " if PcdBootableHartNumber =3D=3D 3 then PcdBootable= HartIndexToId could be defined
" + = " as {0x1, 0x2, 0x3}." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdScratchRamBase_PROMPT #= language en-US "Scratch buffer base address" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdScratchRamBase_HELP #= language en-US "The base address of scratch buffer used by OpenSBI while in= itializing RISC-V HARTs." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdScratchRamSize_PROMPT #= language en-US "Scratch buffer size" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdScratchRamSize_HELP #= language en-US "The size of scratch buffer used by OpenSBI while initializi= ng RISC-V HARTs." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdOpenSbiStackSize_PROMPT= #language en-US "OpenSBI stack size" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdOpenSbiStackSize_HELP = #language en-US "The size of stack used by OpenSBI while initializing RISC= -V HARTs. +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdTemporaryRamBase_PROMPT= #language en-US "Temporary RAM for PEI phase" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdTemporaryRamBase_HELP = #language en-US "The temporary memory passed to PEI phase from SEC." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdTemporaryRamSize_PROMPT= #language en-US "Size of Temporary RAM for PEI phase" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdTemporaryRamSize_HELP = #language en-US "The size of temporary memory passed to PEI phase from SEC= ." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdPeiCorePrivilegeMode_PR= OMPT #language en-US "RISC-V Privilege mode in PEI phase " +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdPeiCorePrivilegeMode_HE= LP #language en-US "The privilege mode the PEI phase is executed." +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdDeviceTreeAddress_PROMP= T #language en-US "Device Tree base address" +#string STR_gUefiRiscVPlatformPkgTokenSpaceGuid_PcdDeviceTreeAddress_HELP = #language en-US "The base address of Device Tree.
" =20 --=20 2.31.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#85948): https://edk2.groups.io/g/devel/message/85948 Mute This Topic: https://groups.io/mt/88601620/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-