Add LoongArch64 architecture on LoongArch64 EDK2 CI.
Cc: Michael D Kinney
Cc: Liming Gao
Signed-off-by: Chao Li
---
.azurepipelines/Ubuntu-GCC5.yml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.azurepipelines/Ubuntu-GCC5.yml b/.azurepipelines/Ubuntu-GCC5.yml
index 376
Add LoongArch64 architecture on LoongArch64 EDK2 CI testing.
Cc: Michael D Kinney
Cc: Liming Gao
Signed-off-by: Chao Li
---
.pytool/CISettings.py | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/.pytool/CISettings.py b/.pytool/CISettings.py
index cf9e0d77b1..7ebec0ba0a
Add LOONGARCH64 sections in MdePkg.dec and LOONGARCH64 ProcessorBind.h
Cc: Michael D Kinney
Cc: Liming Gao
Cc: Zhiguang Liu
Signed-off-by: Chao Li
Co-authored-by: Baoqi Zhang
Co-authored-by: Dongyan Qian
---
MdePkg/Include/LoongArch64/ProcessorBind.h | 120 +
MdePkg/Mde
Add LoongArch processor related definitions.
Cc: Michael D Kinney
Cc: Liming Gao
Cc: Zhiguang Liu
Signed-off-by: Chao Li
---
MdePkg/Include/IndustryStandard/PeImage.h | 9 ++
MdePkg/Include/Protocol/DebugSupport.h| 107 --
MdePkg/Include/Protocol/PxeBaseCode.h |
Add LoongArch LOONGARCH64 BaseLib functions.
Cc: Michael D Kinney
Cc: Liming Gao
Cc: Zhiguang Liu
Signed-off-by: Chao Li
Co-authored-by: Baoqi Zhang
---
MdePkg/Include/Library/BaseLib.h | 24 ++
MdePkg/Library/BaseLib/BaseLib.inf| 13 +
.../BaseLib/LoongArch64/Cpu
Implement LoongArch cache maintenance functions in
BaseCacheMaintenanceLib.
Cc: Michael D Kinney
Cc: Liming Gao
Cc: Zhiguang Liu
Signed-off-by: Chao Li
---
.../BaseCacheMaintenanceLib.inf | 4 +
.../BaseCacheMaintenanceLib/LoongArchCache.c | 252 ++
2 files c
LoongArch MMIO library instance, use the IoLibNoIo.
Cc: Michael D Kinney
Cc: Liming Gao
Cc: Zhiguang Liu
Signed-off-by: Chao Li
---
.../Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf | 10 +++---
MdePkg/Library/BaseIoLibIntrinsic/IoLibNoIo.c | 3 ++-
2 files changed, 9 inse
Add LoongArch image relocation.
Cc: Michael D Kinney
Cc: Liming Gao
Cc: Zhiguang Liu
Signed-off-by: Chao Li
Co-authored-by: Baoqi Zhang
---
MdePkg/Library/BasePeCoffLib/BasePeCoff.c | 3 +-
.../Library/BasePeCoffLib/BasePeCoffLib.inf | 5 +
.../Library/BasePeCoffLib/BasePeCoffLib.
Implement LoongArch CPU related functions in BaseCpuLib.
Cc: Michael D Kinney
Cc: Liming Gao
Cc: Zhiguang Liu
Signed-off-by: Chao Li
---
MdePkg/Library/BaseCpuLib/BaseCpuLib.inf | 7 ++-
MdePkg/Library/BaseCpuLib/BaseCpuLib.uni | 5 +++--
MdePkg/Library/BaseCpuLib/Loo
Support LoongArch cache related functions.
Cc: Michael D Kinney
Cc: Liming Gao
Cc: Zhiguang Liu
Signed-off-by: Chao Li
Co-authored-by: Baoqi Zhang
---
.../BaseSynchronizationLib.inf| 5 +
.../LoongArch64/Synchronization.c | 246 ++
2 files chang
Add LoongArch64 architecture for BaseSafeIntLib library.
Cc: Michael D Kinney
Cc: Liming Gao
Cc: Zhiguang Liu
Signed-off-by: Chao Li
---
MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf | 9 +
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/MdePkg/Library/BaseSafeIntLib
Add LoongArch64 architecture to the Logo.
Cc: Zhichao Gao
Cc: Ray Ni
Signed-off-by: Chao Li
---
MdeModulePkg/Logo/Logo.inf | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/MdeModulePkg/Logo/Logo.inf b/MdeModulePkg/Logo/Logo.inf
index 70a66cae98..294482ccdc 100644
--- a/Md
Add LoongArch in INF for building CapsuleRuntimeDxe LoongArch64 image.
Cc: Liming Gao
Cc: Guomin Jiang
Sigend-off-by: Chao Li
---
.../Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf| 9 +
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/MdeModulePkg/Universal/Capsul
Implement LoongArch DxeIPL instance.
Cc: Liming Gao
Cc: Guomin Jiang
Signed-off-by: Chao Li
Co-authored-by: Baoqi Zhang
---
MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf | 6 +-
.../Core/DxeIplPeim/LoongArch64/DxeLoadFunc.c | 63 +++
2 files changed, 68 insertions(+), 1 dele
Add LoongArch64 architecture in to NetworkPkg.
Cc: Maciej Rabeda
Cc: Jiaxin Wu
Cc: Siyuan Fu
Signed-off-by: Chao Li
---
NetworkPkg/Network.dsc.inc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/NetworkPkg/Network.dsc.inc b/NetworkPkg/Network.dsc.inc
index 99fad885bf..0
Add LoongArch64 ProcessorBin.h and add LoongArch to Makefiles.
Cc: Bob Feng
Cc: Liming Gao
Cc: Yuwei Chen
Signed-off-by: Chao Li
Co-authored-by: Baoqi Zhang
---
BaseTools/Source/C/GNUmakefile| 3 +
.../C/Include/LoongArch64/ProcessorBind.h | 80 +++
2 fi
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4051
The Type4 CurrentSpeed field may be various.
So this patch adds it into the filter table.
Signed-off-by: Heng Luo
Cc: Jian J Wang
Cc: Liming Gao
Cc: Zhiguang Liu
Cc: Dandan Bi
Cc: Star Zeng
Cc: Zhichao Gao
---
MdeModulePkg/Universal
Reviewed-by: Jiewen Yao
> -Original Message-
> From: devel@edk2.groups.io On Behalf Of Heng
> Luo
> Sent: Thursday, September 8, 2022 1:41 PM
> To: devel@edk2.groups.io
> Cc: Wang, Jian J ; Gao, Liming
> ; Liu, Zhiguang ; Bi,
> Dandan ; Zeng, Star ; Gao,
> Zhichao
> Subject: [edk2-devel
Reviewed-by: Hao A Wu
Best Regards,
Hao Wu
From: devel@edk2.groups.io On Behalf Of Anbazhagan,
Baraneedharan via groups.io
Sent: Thursday, September 8, 2022 12:38 PM
To: devel@edk2.groups.io
Cc: Gao, Liming ; Wu, Hao A ; Ni,
Ray
Subject: [edk2-devel] [PATCH v2] MdeModulePkg: Use configurable
On Tue, 5 Jul 2022 at 08:55, Mark-PK Tsai wrote:
>
> If "numa-node-id" is specified in a memory node,
> take node 0 as system memory instead of taking
> the first memory node.
>
> Cc: YJ Chiang
Typo in email address
> Signed-off-by: Mark-PK Tsai
> ---
> ArmVirtPkg/PrePi/FdtParser.c | 32 +++
On Wed, 7 Sept 2022 at 06:35, Rebecca Cran wrote:
>
> Also, CI is failing in the SpellCheck test because of the
> "-mstrict-align" in
> ArmPsciMpServicesDxe.inf.
>
> /home/vsts/work/1/s/ArmPkg/Drivers/ArmPsciMpServicesDxe/ArmPsciMpServicesDxe.inf:55:25
> - Unknown word (mstrict)
>
> Should I add "
On Wed, 7 Sept 2022 at 04:37, wrote:
>
> From: Michael Kubacki
>
> REF:https://bugzilla.tianocore.org/show_bug.cgi?id=4046
>
> Adds EmbeddedPkg to edk2 CI.
>
> Due to a number of build errors (some intentional) such as
> 'BUILD_EPOCH' only being defined for GCC in
> VirtualRealTimeClockLib.inf, t
On Wed, 7 Sept 2022 at 07:17, Gerd Hoffmann wrote:
>
> Add VgaInb() helper function to read vga registers. With that in place
> fix the unblanking. We need to put the ATT_ADDRESS_REGISTER flip flop
> into a known state, which is done by reading the
> INPUT_STATUS_1_REGISTER. Reading the INPUT_S
On Wed, 7 Sept 2022 at 06:22, Rebecca Cran wrote:
>
> Add support for EFI_MP_SERVICES_PROTOCOL during the DXE phase under
> AArch64.
>
> PSCI_CPU_ON is called to power on the core, the supplied procedure is
> executed and PSCI_CPU_OFF is called to power off the core.
>
> Fixes contributed by Ard B
On Mon, 13 Dec 2021 at 19:23, Kun Qin wrote:
>
> Hi ArmPkg and MdeModulePkg maintainers,
>
> Now that the hard freeze is lifted, could you please provide some
> feedback on these patches when you have a chance?
>
My apologies for not responding to these changes.
If these patches are still releva
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3828
Review PR: https://github.com/tianocore/edk2/pull/3309
This patch sequence is used to add CryptBn and CryptEc library, which
are wrapped over OpenSSL. The implementation provides library functions
for EFI BaseCrypt protocol and EFI BaseCrypt
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3828
This patch is used to add CryptBn library, which is wrapped
over OpenSSL.
Cc: Jiewen Yao
Cc: Jian J Wang
Cc: Xiaoyu Lu
Cc: Guomin Jiang
Signed-off-by: Yi Li
---
CryptoPkg/Include/Library/BaseCryptLib.h | 418 +
.../Li
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3828
The implementation provides CryptBn library functions
for EFI CryptoDxe and EFI BaseCrypt Protocol.
Cc: Jiewen Yao
Cc: Jian J Wang
Cc: Xiaoyu Lu
Cc: Guomin Jiang
Signed-off-by: Yi Li
---
CryptoPkg/CryptoPkg.dsc
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3828
This patch is used to add CryptEc library, which is wrapped
over OpenSSL.
Cc: Jiewen Yao
Cc: Jian J Wang
Cc: Xiaoyu Lu
Cc: Guomin Jiang
Signed-off-by: Yi Li
---
CryptoPkg/Include/Library/BaseCryptLib.h | 424 ++
.../Libr
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3828
The implementation provides CryptEc library functions
for EFI Driveer and EFI BaseCrypt Protocol.
Cc: Jiewen Yao
Cc: Jian J Wang
Cc: Xiaoyu Lu
Cc: Guomin Jiang
Signed-off-by: Yi Li
---
CryptoPkg/CryptoPkg.dsc |
Add unit test for CryptoBn.
Cc: Jiewen Yao
Cc: Jian J Wang
Cc: Xiaoyu Lu
Cc: Guomin Jiang
Signed-off-by: Yi Li
---
.../BaseCryptLib/UnitTestHostBaseCryptLib.inf | 1 +
.../BaseCryptLib/BaseCryptLibUnitTests.c | 1 +
.../UnitTest/Library/BaseCryptLib/BnTests.c | 257 +++
Add unit test for CryptoEc.
Cc: Jiewen Yao
Cc: Jian J Wang
Cc: Xiaoyu Lu
Cc: Guomin Jiang
Signed-off-by: Yi Li
---
.../BaseCryptLib/UnitTestHostBaseCryptLib.inf | 2 +
CryptoPkg/Test/CryptoPkgHostUnitTest.dsc | 3 +
.../BaseCryptLib/BaseCryptLibUnitTests.c | 1 +
.../UnitTest
Run uncrustify tools on EC and BN change to meet UEFI code style.
Cc: Jiewen Yao
Cc: Jian J Wang
Cc: Xiaoyu Lu
Cc: Guomin Jiang
Signed-off-by: Yi Li
---
CryptoPkg/Driver/Crypto.c | 2 +-
CryptoPkg/Include/Library/BaseCryptLib.h | 8 +-
CryptoPkg/Library/BaseCryp
On Thu, 30 Jun 2022 at 21:06, Jeff Brasen wrote:
>
> Update check for enough space to occur prior to alignment offset.
> This prevents cases where EfiFreeMemoryTop < EfiFreeMemoryBottom.
>
So prior to this patch, we would
- check for enough space
- apply the alignment
- potentially exceed the ava
Add VgaInb() helper function to read vga registers. With that in place
fix the unblanking. We need to put the ATT_ADDRESS_REGISTER flip flop
into a known state, which is done by reading the
INPUT_STATUS_1_REGISTER. Reading the INPUT_STATUS_1_REGISTER only works
when the device is in color mode,
[AMD Official Use Only - General]
Hi Sunil and UefiCpuPkg maintainers,
For CpuDxe case, I think we should abstract CpuDxe to accommodate all processor
architectures instead of having copy for each archs. CpuDxeCommon.c can have
the generic protocol structure and the installation functions, and
On Wed, 7 Sept 2022 at 11:15, Gerd Hoffmann wrote:
>
> Add VgaInb() helper function to read vga registers. With that in place
> fix the unblanking. We need to put the ATT_ADDRESS_REGISTER flip flop
> into a known state, which is done by reading the
> INPUT_STATUS_1_REGISTER. Reading the INPUT_S
On Wed, Sep 07, 2022 at 11:15:04AM +0200, Gerd Hoffmann wrote:
> Add VgaInb() helper function to read vga registers. With that in place
> fix the unblanking. We need to put the ATT_ADDRESS_REGISTER flip flop
> into a known state, which is done by reading the
> INPUT_STATUS_1_REGISTER. Reading th
Hi Nhi,
I was building this patch series and realised that merging this patch series
will break the SbsaQemu platform builds.
Would you be submitting a patch to update SbsaQemu platform to match this
series, please?
Also, can you check if this patch breaks any other platform.
Regards,
Sami Mu
RISC-V ProcessorPkg and PlatformPkg were added in edk2-platforms
repo. But the recommendation was they should be added in edk2 repo
itself leveraging common packages as much as possible. This series
tries to create RISC-V specific modules and libraries under standard
packages.
The approach taken h
Add register definitions and access routines for RISC-V. These
headers are leveraged from opensbi repo.
Signed-off-by: Sunil V L
---
MdePkg/Include/Register/RiscV64/RiscVAsm.h | 104
MdePkg/Include/Register/RiscV64/RiscVConst.h| 46 +++
MdePkg/Include/Register/Risc
RISC-V UEFI based platforms need to support RISCV_EFI_BOOT_PROTOCOL.
Add this protocol GUID definition.
Signed-off-by: Sunil V L
---
MdePkg/MdePkg.dec | 6 ++
1 file changed, 6 insertions(+)
diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec
index f1ebf9e251c1..8f1bcfdc3e97 100644
--- a/Mde
RISC-V UEFI platforms need to implement RISCV_EFI_BOOT_PROTOCOL.
Add header file with the definitions of this protocol.
Signed-off-by: Sunil V L
---
MdePkg/Include/Protocol/RiscVBootProtocol.h | 35
1 file changed, 35 insertions(+)
diff --git a/MdePkg/Include/Protocol/RiscV
Add few PCD variables for RISC-V platforms to indicate the
memory locations of the firmware volumes, temporary RAM etc.
Signed-off-by: Sunil V L
---
MdeModulePkg/MdeModulePkg.dec | 13 +
1 file changed, 13 insertions(+)
diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeMo
RISC-V platforms need PCD variable to indicate the mtimer
frequency which will be consumed by CpuDxe and TimerLib.
Signed-off-by: Sunil V L
---
UefiCpuPkg/UefiCpuPkg.dec | 3 +++
1 file changed, 3 insertions(+)
diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec
index 718323d9042
EDK2 in S-mode needs to use SSCRATCH register. Implement functions
to set/get the SSCRATCH register.
Signed-off-by: Sunil V L
---
MdePkg/Library/BaseLib/BaseLib.inf | 1 +
MdePkg/Include/Library/BaseLib.h| 10 ++
MdePkg/Library/BaseLib/RiscV64/CpuGen.S | 33
This library implements the TimerLib.h functionality. This library
is similar to CpuTimerLib but needs the library constructor.
Signed-off-by: Sunil V L
---
MdePkg/Library/ArchTimerLib/ArchTimerLib.inf | 40 +++
MdePkg/Library/ArchTimerLib/RiscV64/CpuTimerLib.c | 299
This library is required to make SBI ecalls from the S-mode EDK2.
Signed-off-by: Sunil V L
---
MdePkg/Library/RiscVSbiLib/RiscVSbiLib.inf | 27 +++
MdePkg/Include/Library/RiscVSbiLib.h | 129 +++
MdePkg/Library/RiscVSbiLib/RiscVSbiLib.c | 228
3 files change
Currently the common sources mean x86 only in this library. To add
support for other architectures like RISC-V, we need to build these
files only for x86.
Signed-off-by: Sunil V L
---
UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf | 6
--
1 file changed, 4 insertion
Add low level interfaces to register exception and interrupt handlers
for RISC-V.
Signed-off-by: Sunil V L
---
UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf|
7 +-
UefiCpuPkg/Library/CpuExceptionHandlerLib/RiscV64/CpuExceptionHandlerLib.h |
112
This library implements system reset interfaces like cold reboot,
warm reboot etc. On RISC-V platforms, these are implemented using
SBI calls.
Signed-off-by: Sunil V L
---
MdePkg/Library/ResetSystemLib/ResetSystemLib.inf | 35 ++
MdePkg/Library/ResetSystemLib/RiscV64/ResetSystemLib.c
Generic RISC-V platforms will start in S-mode directly.
Previous M-mode firmware like opensbi will branch to the
entry point in this module. This module initializes the
firmware context pointer and branches to the PEI phase.
Signed-off-by: Sunil V L
---
UefiCpuPkg/SecCore/SecCoreRiscV.inf | 5
This library is required in RISC-V to build the FDT Hob. The
library can be leveraged by other architectures like ARM if
required.
Signed-off-by: Sunil V L
---
MdePkg/Library/PlatformPeiLib/PlatformPeiLib.inf | 40
MdePkg/Include/Library/PlatformPeiLib.h| 15 ++
Thie PEIM is required to do platform specific initialization like
detecting the permanent memory and install memory HOB, install the
FDT Hob etc.
Signed-off-by: Sunil V L
---
MdeModulePkg/Universal/PlatformPei/PlatformPei.inf | 65
MdeModulePkg/Universal/PlatformPei/RiscV64/Platform.h
Currently, CpuDxe driver is mostly x86 specific. Refactor the INF
to allow other architectures like RISC-V.
Signed-off-by: Sunil V L
---
UefiCpuPkg/CpuDxe/CpuDxe.inf | 12 +++-
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.inf b/UefiCpuPkg/CpuDxe/
This DXE module initializes the RISC-V CPU by installing
the CPU specific ARCH protocol handlers. This also initializes
the RISCV_EFI_BOOT_PROTOCOL which is required on RISC-V
platforms.
Signed-off-by: Sunil V L
---
UefiCpuPkg/CpuDxe/CpuDxe.inf | 16 +-
UefiCpuPkg/CpuDxe/RiscV64/CpuDxe.h
This DXE module initializes the timer interrupt handler
and installs the Arch Timer protocol.
Signed-off-by: Sunil V L
---
MdeModulePkg/Universal/TimerDxe/TimerDxe.inf| 52
MdeModulePkg/Universal/TimerDxe/RiscV64/Timer.h | 174
MdeModulePkg/Universal/TimerDxe/RiscV64/Timer
Add build infrastructure files to boot qemu virt machine.
EDK2 will boot as S-mode payload of opensbi. There is no
integrated opensbi (M-mode firmware) within EDK2 for virt
machine.
It relies on the RISC-V calling convention that M-mode firmware like
opensbi will pass the BootHartId and the DTB t
Signed-off-by: Sunil V L
---
Maintainers.txt | 4
1 file changed, 4 insertions(+)
diff --git a/Maintainers.txt b/Maintainers.txt
index 73ce13126b37..60610e83bbf1 100644
--- a/Maintainers.txt
+++ b/Maintainers.txt
@@ -528,6 +528,10 @@ F: OvmfPkg/XenResetVector/
R: Anthony Perard [sheep]
R
On Wed, Sep 07, 2022 at 09:32:12AM +, Chang, Abner wrote:
> [AMD Official Use Only - General]
>
> Hi Sunil and UefiCpuPkg maintainers,
> For CpuDxe case, I think we should abstract CpuDxe to accommodate all
> processor architectures instead of having copy for each archs. CpuDxeCommon.c
> can
Thanks, Sami. I will check and submit the patch for edk2-platforms to
fix it.
Nhi
On 9/7/2022 5:49 PM, Sami Mujawar wrote:
Hi Nhi,
I was building this patch series and realised that merging this patch series
will break the SbsaQemu platform builds.
Would you be submitting a patch to update S
RISC-V ProcessorPkg and PlatformPkg were added in edk2-platforms
repo. But the recommendation was they should be added in edk2 repo
itself leveraging common packages as much as possible. This series
tries to create RISC-V specific modules and libraries under standard
packages.
The approach taken h
Add register definitions and access routines for RISC-V. These
headers are leveraged from opensbi repo.
Signed-off-by: Sunil V L
---
MdePkg/Include/Register/RiscV64/RiscVAsm.h | 104
MdePkg/Include/Register/RiscV64/RiscVConst.h| 46 +++
MdePkg/Include/Register/Risc
101 - 163 of 163 matches
Mail list logo