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.web08.9804.1642758620855814082 for ; Fri, 21 Jan 2022 01:50:21 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=pSuiuWSs; 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=00207f782d=abner.chang@hpe.com) Received: from pps.filterd (m0134423.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 20L85AI0013700; Fri, 21 Jan 2022 09:50:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pps0720; bh=waBTSYif3s6cQzHlhUyTud24l9pwIrJhp/uuXpdrzKI=; b=pSuiuWSs4EI7174502beFELTV1AmhbxkvslYB8msHqLSEDEJHtbuZHj/X4qN7KpoLzVc WPBUQ9Oc+adV8biHdP39ayBUQXtwqyBn1VeF5s50U3U9HA1SVDGdvvWa0TRcuaqjUsAM PKQe61XYqKFbk+7CLg15hKSxsw4PS5lb6xGU4qv6Alz+lmQdCdJAflrRQMjVyGeryk4a mIydPXEpfJHrJDXEAd44g2xUDZlcCkdRPMZfAXF1mkYiw5K/mD4Vv4mRL1ODp+BjmylI BYibD7oycC7IdWHMgRWMesfcbGCmrDek+wzow6HQK3X0kGR/zsKEiruRkrNSJLcnFTFb Ig== Received: from g4t3427.houston.hpe.com (g4t3427.houston.hpe.com [15.241.140.73]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3dqhxubyjk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jan 2022 09:50:19 +0000 Received: from g9t2301.houston.hpecorp.net (g9t2301.houston.hpecorp.net [16.220.97.129]) by g4t3427.houston.hpe.com (Postfix) with ESMTP id 0936C6F; Fri, 21 Jan 2022 09:50:18 +0000 (UTC) Received: from UB16Abner.asiapacific.hpqcorp.net (ub16abner.asiapacific.hpqcorp.net [15.119.209.229]) by g9t2301.houston.hpecorp.net (Postfix) with ESMTP id C53C751; Fri, 21 Jan 2022 09:50:17 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: abner.chang@hpe.com, Daniel Schaefer , Sunil V L Subject: [edk2-platforms][PATCH 00/14] Address edk2 Core CI issues Date: Fri, 21 Jan 2022 16:48:34 +0800 Message-Id: <20220121084848.7695-1-abner.chang@hpe.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: 87WfLUf0YK6iEyXMsVrTmRi6wh4DOyV2 X-Proofpoint-GUID: 87WfLUf0YK6iEyXMsVrTmRi6wh4DOyV2 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-21_06,2022-01-20_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 adultscore=0 clxscore=1015 mlxscore=0 phishscore=0 mlxlogscore=912 bulkscore=0 malwarescore=0 suspectscore=0 impostorscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2201210065 Content-Transfer-Encoding: 8bit This patch set addresses edk2 Core CI on RISC-V ProcessorPkg and PlatformPkg. Signed-off-by: Abner Chang Cc: Daniel Schaefer Cc: Sunil V L Abner Chang (14): RiscVProcessorPkg: Fix build fail on RiscVProcessorPkg package PlatformPkg/PlatformPei: Fix the build error RISC-V/PlatformPkg: Address ECC errors RISC-V/PlatformPkg: Address Spelling check errors. RISC-V/PlatformPkg: Address Core CI package dependency check errors RISC-V/PlatformPkg: Address Core CI license check errors. RISC-V/PlatformPkg: Address Core CI library header check errors RISC-V/PlatformPkg: Address Core CI Uncrustify errors RISC-V/ProcessorPkg: Address Core CI ECC errors. RISC-V/ProcessorPkg: Address Core CI library header check errors RISC-V/ProcessorPkg: Address Core CI Spelling errors. RISC-V/ProcessorPkg: Address Core CI Uncrustify errors Silicon/SiFive: Fix build error Platform/U5Series: Fix build error .../RISC-V/PlatformPkg/RiscVPlatformPkg.dec | 7 +- .../RISC-V/ProcessorPkg/RiscVProcessorPkg.dec | 7 +- .../RISC-V/PlatformPkg/RiscVPlatformPkg.dsc | 4 +- .../RISC-V/ProcessorPkg/RiscVProcessorPkg.dsc | 5 +- .../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 | 5 +- .../Universal/Pei/PlatformPei/PlatformPei.inf | 14 +- .../PlatformPkg/Universal/Sec/SecMain.inf | 1 + .../RiscVFirmwareContextSbiLib.inf | 8 +- .../RiscVFirmwareContextSscratchLib.inf | 4 +- .../Library/Edk2OpensbiPlatformWrapperLib.h | 2 +- .../FirmwareContextProcessorSpecificLib.h | 25 +- .../Include/Library/PlatformSecPpiLib.h | 2 +- .../Library/RiscVPlatformTempMemoryInitLib.h | 18 +- .../PlatformBootManager.h | 44 +- .../Universal/Pei/PlatformPei/Platform.h | 39 +- .../PlatformPkg/Universal/Sec/SecMain.h | 37 +- .../Include/IndustryStandard/RiscV.h | 156 ++--- .../Include/IndustryStandard/RiscVOpensbi.h | 28 +- .../Include/Library/MachineModeTimerLib.h | 17 + .../Include/Library/RiscVCpuLib.h | 76 ++- .../Include/Library/RiscVEdk2SbiLib.h | 138 ++-- .../Include/Library/RiscVFirmwareContextLib.h | 6 +- .../Include/Library/RiscVPlatformTimerLib.h | 25 + .../ProcessorPkg/Include/OpensbiTypes.h | 73 ++- .../Include/ProcessorSpecificHobData.h | 105 +-- .../RISC-V/ProcessorPkg/Include/RiscVImpl.h | 52 +- .../Include/SmbiosProcessorSpecificData.h | 50 +- .../CpuExceptionHandlerLib.h | 171 ++--- .../ProcessorPkg/Universal/CpuDxe/CpuDxe.h | 45 +- .../Universal/SmbiosDxe/RiscVSmbiosDxe.h | 3 +- .../Edk2OpensbiPlatformWrapperLib.c | 394 +++++------ .../FirmwareContextProcessorSpecificLib.c | 42 +- .../OpensbiPlatformLib/OpensbiPlatform.c | 270 ++++++++ .../Library/OpensbiPlatformLib/Platform.c | 225 ------- .../PeiCoreEntryPoint/PeiCoreEntryPoint.c | 20 +- .../PeiCoreInfoHobLibNull/CoreInfoHob.c | 2 +- .../PlatformBootManager.c | 79 ++- .../PlatformBootManagerLib/PlatformData.c | 20 +- .../PlatformMemoryTestLibNull.c | 2 +- .../PlatformSecPpiLibNull/PlatformSecPpiLib.c | 2 +- .../Library/ResetSystemLib/ResetSystemLib.c | 40 +- .../RiscVSpecialPlatformLib.c | 9 +- .../PlatformPkg/Universal/FdtPeim/FdtPeim.c | 33 +- .../Universal/Pei/PlatformPei/Fv.c | 9 +- .../Universal/Pei/PlatformPei/MemDetect.c | 21 +- .../Universal/Pei/PlatformPei/Platform.c | 168 +++-- .../PlatformPkg/Universal/Sec/SecMain.c | 379 +++++------ .../Library/PeiCoreInfoHobLib/CoreInfoHob.c | 2 +- .../PeiServicesTablePointerOpenSbi.c | 22 +- .../Library/RiscVEdk2SbiLib/RiscVEdk2SbiLib.c | 617 ++++++++++-------- .../CpuExceptionHandlerLib.c | 34 +- .../RiscVFirmwareContextSbiLib.c | 4 +- .../RiscVFirmwareContextSscratchLib.c | 6 +- .../RiscVFirmwareContextStvecLib.c | 8 +- .../Library/RiscVTimerLib/RiscVTimerLib.c | 24 +- .../ProcessorPkg/Universal/CpuDxe/CpuDxe.c | 72 +- .../ProcessorPkg/Universal/FdtDxe/FdtDxe.c | 66 +- .../Universal/PciCpuIo2Dxe/PciCpuIo2Dxe.c | 47 +- .../Universal/SmbiosDxe/RiscVSmbiosDxe.c | 165 +++-- .../Library/PeiCoreInfoHobLib/CoreInfoHob.c | 4 +- Platform/RISC-V/PlatformPkg/Readme.md | 14 +- .../RISC-V/PlatformPkg/RiscVPlatformPkg.uni | 71 +- .../Universal/Sec/Riscv64/SecEntry.S | 19 +- .../PeiServicesTablePointerLibOpenSbi.uni | 15 +- .../RISC-V/ProcessorPkg/RiscVProcessorPkg.uni | 18 +- 73 files changed, 2297 insertions(+), 1838 deletions(-) create mode 100644 Silicon/RISC-V/ProcessorPkg/Include/Library/MachineModeTimerLib.h create mode 100644 Silicon/RISC-V/ProcessorPkg/Include/Library/RiscVPlatformTimerLib.h create mode 100644 Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/OpensbiPlatform.c delete mode 100644 Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/Platform.c -- 2.31.1