From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web11.3778.1641630536595232253 for ; Sat, 08 Jan 2022 00:28:56 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=JQ2mXGnk; 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.143.35, mailfrom: prvs=000704d8ca=abner.chang@hpe.com) Received: from pps.filterd (m0134425.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 2084mtjt020761; Sat, 8 Jan 2022 08:28:55 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=ak+1jVTYmLRnYsmDosTjNV9MnkTfdW2McSA7O8+8o8k=; b=JQ2mXGnkIZpaW7rB33oU74H1ctn39mmXww69si/HZjs5pwIWJgoCmWSvTSxyKt6cL/Ep bDpiWGV/Es5M1QPUWcAmHGmCZOl81JUCagawsULtzXDZe/pGLCuh5Zvr/lKmAS5ddsxl 78PuSjOgwC3gvDKOlU/xTyV8ETEMKSC7b5Iu+17ILBCe2xPFEIvgmI0gQ2YsdrgvRvZY zZ/sDnmWoZpKlW3AG6lr8ZlCskesonL6r1RNl90mRXmvpddREoFlxE3JTbDmLH1oNpqJ tL0Rfm9fp8FN+t5M3IoeLJ96WEc9VumxehKrSekeoczcFg5bdFfJKagmILI/B6xxzOEU tQ== Received: from g2t2354.austin.hpe.com (g2t2354.austin.hpe.com [15.233.44.27]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3df3wtgr60-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 08 Jan 2022 08:28:55 +0000 Received: from g2t2360.austin.hpecorp.net (g2t2360.austin.hpecorp.net [16.196.225.135]) by g2t2354.austin.hpe.com (Postfix) with ESMTP id C507881; Sat, 8 Jan 2022 08:28:54 +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 B73BB36; Sat, 8 Jan 2022 08:28:53 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: abner.chang@hpe.com, Daniel Schaefer , Sunil V L Subject: [PATCH 73/79] RiscVPkg: Address Core CI ECC errors. Date: Sat, 8 Jan 2022 15:27:31 +0800 Message-Id: <20220108072737.17962-12-abner.chang@hpe.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220108072737.17962-1-abner.chang@hpe.com> References: <20220108072737.17962-1-abner.chang@hpe.com> MIME-Version: 1.0 X-Proofpoint-GUID: 0NFnAB7PwTEv1P-7seiRH-I0rGD99NxA X-Proofpoint-ORIG-GUID: 0NFnAB7PwTEv1P-7seiRH-I0rGD99NxA 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_03,2022-01-07_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 phishscore=0 bulkscore=0 priorityscore=1501 suspectscore=0 lowpriorityscore=0 spamscore=0 impostorscore=0 mlxscore=0 malwarescore=0 clxscore=1015 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2201080064 Content-Transfer-Encoding: quoted-printable Signed-off-by: Abner Chang Cc: Daniel Schaefer Cc: Sunil V L --- RiscVPkg/RiscVPkg.dec | 2 ++ RiscVPkg/RiscVPkg.dsc | 4 ++-- .../RiscVFirmwareContextSbiLib.inf | 2 +- .../Include/Library/MachineModeTimerLib.h | 15 +++++++++++++ .../Include/Library/RiscVPlatformTimerLib.h | 21 +++++++++++++++++++ .../CpuExceptionHandlerLib.h | 2 +- RiscVPkg/RiscVPkg.uni | 18 +++++++++++++++- 7 files changed, 59 insertions(+), 5 deletions(-) create mode 100644 RiscVPkg/Include/Library/MachineModeTimerLib.h create mode 100644 RiscVPkg/Include/Library/RiscVPlatformTimerLib.h diff --git a/RiscVPkg/RiscVPkg.dec b/RiscVPkg/RiscVPkg.dec index f23d3c0135..1e2d2fac0d 100644 --- a/RiscVPkg/RiscVPkg.dec +++ b/RiscVPkg/RiscVPkg.dec @@ -26,6 +26,8 @@ RiscVCpuLib|Include/Library/RiscVCpuLib.h=0D RiscVEdk2SbiLib|Include/Library/RiscVEdk2SbiLib.h=0D RiscVFirmwareContextLib|Include/Library/RiscVFirmwareContextLib.h=0D + RiscVPlatformTimerLib|Include/Library/RiscVPlatformTimerLib.h=0D + MachineModeTimerLib|Include/Library/MachineModeTimerLib.h=0D =0D [Guids]=0D gUefiRiscVPkgTokenSpaceGuid =3D { 0x4261e9c8, 0x52c0, 0x4b34, { 0x85, 0= x3d, 0x48, 0x46, 0xea, 0xd3, 0xb7, 0x2c}}=0D diff --git a/RiscVPkg/RiscVPkg.dsc b/RiscVPkg/RiscVPkg.dsc index 7e8c8f599c..c1cd11a161 100644 --- a/RiscVPkg/RiscVPkg.dsc +++ b/RiscVPkg/RiscVPkg.dsc @@ -1,11 +1,11 @@ -#/** @file=0D +## @file=0D # RISC-V package.=0D #=0D # Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All right= s reserved.
=0D #=0D # SPDX-License-Identifier: BSD-2-Clause-Patent=0D #=0D -#**/=0D +#=0D =0D ##########################################################################= ######=0D #=0D diff --git a/RiscVPkg/Library/RiscVFirmwareContextSbiLib/RiscVFirmwareConte= xtSbiLib.inf b/RiscVPkg/Library/RiscVFirmwareContextSbiLib/RiscVFirmwareCon= textSbiLib.inf index db30d7e551..e3dbc05007 100644 --- a/RiscVPkg/Library/RiscVFirmwareContextSbiLib/RiscVFirmwareContextSbiLi= b.inf +++ b/RiscVPkg/Library/RiscVFirmwareContextSbiLib/RiscVFirmwareContextSbiLi= b.inf @@ -12,7 +12,7 @@ [Defines]=0D INF_VERSION =3D 0x0001001b=0D BASE_NAME =3D RiscVFirmwareContextSbiLib=0D - FILE_GUID =3D 3709E048-6794-427A-B728-BFE3FFD6D461= =0D + FILE_GUID =3D 308117C0-400A-79C5-6ED4-AB9763A202E5= =0D MODULE_TYPE =3D PEIM=0D VERSION_STRING =3D 1.0=0D LIBRARY_CLASS =3D RiscVFirmwareContextLib|PEIM PEI_CORE= =0D diff --git a/RiscVPkg/Include/Library/MachineModeTimerLib.h b/RiscVPkg/Incl= ude/Library/MachineModeTimerLib.h new file mode 100644 index 0000000000..a27391cca3 --- /dev/null +++ b/RiscVPkg/Include/Library/MachineModeTimerLib.h @@ -0,0 +1,15 @@ +/** @file=0D + RISC-V Machine Mode Timer Library Definition=0D +=0D + Copyright (c) 2022, Hewlett Packard Enterprise Development LP. All right= s reserved.
=0D +=0D + SPDX-License-Identifier: BSD-2-Clause-Patent=0D +**/=0D +=0D +#ifndef MACHINE_MODE_TIMER_LIB_H_=0D +#define MACHINE_MODE_TIMER_LIB_H_=0D +=0D +UINT64=0D +RiscVReadMachineTimerInterface (VOID);=0D +=0D +#endif=0D diff --git a/RiscVPkg/Include/Library/RiscVPlatformTimerLib.h b/RiscVPkg/In= clude/Library/RiscVPlatformTimerLib.h new file mode 100644 index 0000000000..dcd8734eb5 --- /dev/null +++ b/RiscVPkg/Include/Library/RiscVPlatformTimerLib.h @@ -0,0 +1,21 @@ +/** @file=0D + RISC-V Platform Timer library definitions.=0D +=0D + Copyright (c) 2022, Hewlett Packard Enterprise Development LP. All right= s reserved.
=0D +=0D + SPDX-License-Identifier: BSD-2-Clause-Patent=0D +**/=0D +=0D +#ifndef RISCV_PLATFORM_TIMER_LIB_H_=0D +#define RISCV_PLATFORM_TIMER_LIB_H_=0D +=0D +UINT64=0D +RiscVReadMachineTimer (VOID);=0D +=0D +VOID=0D +RiscVSetMachineTimerCmp (UINT64);=0D +=0D +UINT64=0D +RiscVReadMachineTimerCmp(VOID);=0D +=0D +#endif=0D diff --git a/RiscVPkg/Library/RiscVExceptionLib/CpuExceptionHandlerLib.h b/= RiscVPkg/Library/RiscVExceptionLib/CpuExceptionHandlerLib.h index 3e480e9b09..b316510020 100644 --- a/RiscVPkg/Library/RiscVExceptionLib/CpuExceptionHandlerLib.h +++ b/RiscVPkg/Library/RiscVExceptionLib/CpuExceptionHandlerLib.h @@ -1,4 +1,4 @@ -/**@file=0D +/** @file=0D =0D RISC-V Exception Handler library definition file.=0D =0D diff --git a/RiscVPkg/RiscVPkg.uni b/RiscVPkg/RiscVPkg.uni index 7e470eb531..d459272444 100644 --- a/RiscVPkg/RiscVPkg.uni +++ b/RiscVPkg/RiscVPkg.uni @@ -8,6 +8,22 @@ // **/=0D =0D #string STR_PACKAGE_ABSTRACT #language en-US "Provides UEFI com= patible RISC-V processor modules and libraries"=0D -=0D #string STR_PACKAGE_DESCRIPTION #language en-US "This Package prov= ides UEFI compatible RISC-V processor modules and libraries."=0D =0D +#string STR_gUefiRiscVPkgTokenSpaceGuid_PcdProcessorSpecificDataGuidHobGui= d_PROMPT #language en-US "Processor Specific Data HOB GUID"=0D +#string STR_gUefiRiscVPkgTokenSpaceGuid_PcdProcessorSpecificDataGuidHobGui= d_HELP #language en-US "This is the GUID definition of HOB that passes= the "=0D + = "processor specific data to DXE phase."=0D +#string STR_gUefiRiscVPkgTokenSpaceGuid_PcdProcessorSmbiosGuidHobGuid_PROM= PT #language en-US "RISC-V SMBIOS Data HOB GUID"=0D +#string STR_gUefiRiscVPkgTokenSpaceGuid_PcdProcessorSmbiosGuidHobGuid_HELP= #language en-US "This is the GUID definition of HOB that passes= RISC-V SMBIOS"=0D + = "Data to DXE phase."=0D +#string STR_gUefiRiscVPkgTokenSpaceGuid_PcdProcessorSmbiosType4GuidHobGuid= _PROMPT #language en-US "RISC-V SMBIOS Type 4 Data HOB GUID"=0D +#string STR_gUefiRiscVPkgTokenSpaceGuid_PcdProcessorSmbiosType4GuidHobGuid= _HELP #language en-US "This is the GUID definition of HOB that passes= RISC-V SMBIOS"=0D + = "Type 4 information to DXE phase for building up SMBIOS record.= "=0D +#string STR_gUefiRiscVPkgTokenSpaceGuid_PcdProcessorSmbiosType7GuidHobGuid= _PROMPT #language en-US "RISC-V SMBIOS Type 7 Data HOB GUID"=0D +#string STR_gUefiRiscVPkgTokenSpaceGuid_PcdProcessorSmbiosType7GuidHobGuid= _HELP #language en-US "This is the GUID definition of HOB that passes= RISC-V SMBIOS"=0D + = "Type 7 information to DXE phase for building up SMBIOS record.= "=0D +#string STR_gUefiRiscVPkgTokenSpaceGuid_PcdRiscVMachineTimerTickInNanoSeco= nd_PROMPT #language en-US "RISC-V Machine Mode Timer Duration"=0D +#string STR_gUefiRiscVPkgTokenSpaceGuid_PcdRiscVMachineTimerTickInNanoSeco= nd_HELP #language en-US "RISC-V Machine Mode Timer Duration in nanoseco= nd."=0D +#string STR_gUefiRiscVPkgTokenSpaceGuid_PcdRiscVMachineTimerFrequencyInHer= z_PROMPT #language en-US "RISC-V Machine Mode Timer frequency."=0D +#string STR_gUefiRiscVPkgTokenSpaceGuid_PcdRiscVMachineTimerFrequencyInHer= z_HELP #language en-US "RISC-V Machine Mode Timer frequency in Herz"=0D +=0D --=20 2.31.1