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.web10.5917.1642838092164520426
 for <devel@edk2.groups.io>;
 Fri, 21 Jan 2022 23:54:52 -0800
Authentication-Results: mx.groups.io;
 dkim=pass header.i=@hpe.com header.s=pps0720 header.b=Tt7csd4K;
 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=00215b754f=abner.chang@hpe.com)
Received: from pps.filterd (m0134422.ppops.net [127.0.0.1])
	by mx0b-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 20M6d1JL012999;
	Sat, 22 Jan 2022 07:54:51 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=OL+kA7JYWWanh4epOEx9BjDGsxPs9aNrR1ekUetr/F0=;
 b=Tt7csd4KwMs336kUQ0pAd5AjCaKDm/iWjjYty0aFmlMyuQNscxPIks2zfVZedP8Y19FP
 vx7q7lC7+GEGCDPwsf7JfLChO3fubilAeBqrdEs06Gn/hPUR3qhAH7CHPvEgx3U6p/Iz
 aoO4eVKP0CXZNbN3aEEPMQqnaHNTpCiJLdxQ8MIEvAm6S6gZS+MtZh+uGjfucuvU7+vl
 W4U/XEkk6lP7R5MvB39L4oJ21453OHOLSsG2iBQSr0CBhtnmS3I3VO3EFHMJ+Zx0RO5Q
 KSvGIkGS8gzrXcJgDKQ+O5UUSvR0/e1SOi62TjSuuYfGv1ziOnjlvT8yMR1NdAxq5yfw eA== 
Received: from g4t3427.houston.hpe.com (g4t3427.houston.hpe.com [15.241.140.73])
	by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3drbah8pmc-1
	(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);
	Sat, 22 Jan 2022 07:54:51 +0000
Received: from g4t3433.houston.hpecorp.net (g4t3433.houston.hpecorp.net [16.208.49.245])
	by g4t3427.houston.hpe.com (Postfix) with ESMTP id B8AD457;
	Sat, 22 Jan 2022 07:54:50 +0000 (UTC)
Received: from UB16Abner.asiapacific.hpqcorp.net (ub16abner.asiapacific.hpqcorp.net [15.119.209.229])
	by g4t3433.houston.hpecorp.net (Postfix) with ESMTP id 8C20645;
	Sat, 22 Jan 2022 07:54:49 +0000 (UTC)
From: "Abner Chang" <abner.chang@hpe.com>
To: devel@edk2.groups.io
Cc: abner.chang@hpe.com, Daniel Schaefer <daniel.schaefer@hpe.com>,
        Sunil V L <sunilvl@ventanamicro.com>
Subject: [edk2-platforms][PATCH V2 00/14] Address edk2 Core CI issues
Date: Sat, 22 Jan 2022 14:53:04 +0800
Message-Id: <20220122065318.21808-1-abner.chang@hpe.com>
X-Mailer: git-send-email 2.31.1
MIME-Version: 1.0
X-Proofpoint-GUID: d_Yk1hLzaG7Ccz9N2mDMwUbVTJ2Lv-GZ
X-Proofpoint-ORIG-GUID: d_Yk1hLzaG7Ccz9N2mDMwUbVTJ2Lv-GZ
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-22_03,2022-01-21_01,2021-12-02_01
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxscore=0
 lowpriorityscore=0 mlxlogscore=916 adultscore=0 clxscore=1015
 malwarescore=0 bulkscore=0 spamscore=0 phishscore=0 suspectscore=0
 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1
 engine=8.12.0-2201110000 definitions=main-2201220050
Content-Transfer-Encoding: 8bit

This patch set addresses edk2 Core CI on RISC-V ProcessorPkg
and PlatformPkg.


V2: Address comments to V1.

Signed-off-by: Abner Chang <abner.chang@hpe.com>
Cc: Daniel Schaefer <daniel.schaefer@hpe.com>
Cc: Sunil V L <sunilvl@ventanamicro.com>

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