Re: [edk2-devel] [PATCH] Platform/Loongson: Remove minimium memory size limitation

2024-03-25 Thread maobibo
On 2024/3/25 下午5:25, xianglai wrote: From: Bibo Mao Temparory stack memory on PEI is hardcoded now, also minimium memory size 256M is hardcoded now. Here memory map table from fw cfg can be parsed. If there is memory map entry contains pei stack, it can be published as usable memory at PEI

Re: [edk2-devel] [PATCH v6 25/36] OvmfPkg/LoongArchVirt: Add stable timer driver

2024-01-11 Thread maobibo
On 2024/1/5 下午5:45, Chao Li wrote: Add a CPU timer driver named StableTimerDxe, which proviedes EFI_TIMER_ARCH_PROTOCOL for LoongArch. BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584 Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Jordan Justen Cc: Gerd Hoffmann Cc: Bibo Mao Cc: Dongyan

Re: [edk2-devel] [PATCH v6 26/36] OvmfPkg/LoongArchVirt: Add a NULL library named CollectApResouceLibNull

2024-01-10 Thread maobibo
On 2024/1/10 上午10:47, Chao Li wrote: Hi Bibo, Thanks, Chao On 2024/1/10 09:24, maobibo wrote: On 2024/1/5 下午5:45, Chao Li wrote: This Library is used to collect APs resources, but is currently NULL for OvmfPkg, because it is not used by the LoongArch virtual machine. BZ: https

Re: [edk2-devel] [PATCH v6 36/36] OvmfPkg/LoongArchVirt: Add self introduction file

2024-01-09 Thread maobibo
On 2024/1/5 下午5:46, Chao Li wrote: Add self introduction file for LoongArch virtual machine. BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584 Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Jordan Justen Cc: Gerd Hoffmann Cc: Bibo Mao Cc: Dongyan Qian Signed-off-by: Chao Li ---

Re: [edk2-devel] [PATCH v6 35/36] OvmfPkg/LoongArchVirt: Add build file

2024-01-09 Thread maobibo
On 2024/1/5 下午5:46, Chao Li wrote: Add infrastructure files to build edk2 for LoongArch QEMU virtual machine. BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584 Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Jordan Justen Cc: Gerd Hoffmann Cc: Bibo Mao Cc: Dongyan Qian Signed-off-by: Chao

Re: [edk2-devel] [PATCH v6 31/36] OvmfPkg/LoongArchVirt: Add FdtQemuFwCfgLib

2024-01-09 Thread maobibo
On 2024/1/5 下午5:46, Chao Li wrote: This library for PEI phase, and obtains the QemuFwCfg base address by directly parsing the FDT, reads and writes the data in QemuFwCfg by operating on the QemuFwCfg base address. BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584 Cc: Ard Biesheuvel

Re: [edk2-devel] [PATCH v6 30/36] OvmfPkg/LoongArchVirt: Add NorFlashQemuLib

2024-01-09 Thread maobibo
On 2024/1/5 下午5:46, Chao Li wrote: Add NorFlashQemuLib for LoongArch, it is referenced from ArmVirtPkg. BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584 Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Jordan Justen Cc: Gerd Hoffmann Cc: Bibo Mao Cc: Dongyan Qian Signed-off-by: Chao Li

Re: [edk2-devel] [PATCH v6 28/36] OvmfPkg/LoongArchVirt: Add the early serial port output library

2024-01-09 Thread maobibo
On 2024/1/5 下午5:45, Chao Li wrote: Add a early serial port output library into LoongArchVirt that named EarlyFdtSerialPortLib16550, this library is referenced from MdeModulePkg. This library is used in the PEI phase. Since the serial port address can not be saved in memory of the LoongArch

Re: [edk2-devel] [PATCH v6 26/36] OvmfPkg/LoongArchVirt: Add a NULL library named CollectApResouceLibNull

2024-01-09 Thread maobibo
On 2024/1/5 下午5:45, Chao Li wrote: This Library is used to collect APs resources, but is currently NULL for OvmfPkg, because it is not used by the LoongArch virtual machine. BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584 Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Jordan Justen Cc:

Re: [edk2-devel] [PATCH v6 33/36] OvmfPkg/LoongArchVirt: Support SEC phase

2024-01-07 Thread maobibo
On 2024/1/5 下午5:46, Chao Li wrote: Add SEC code for LoongArch virtual machine. BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584 Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Jordan Justen Cc: Gerd Hoffmann Cc: Bibo Mao Cc: Dongyan Qian Signed-off-by: Chao Li Co-authored-by: Xianglai

Re: [edk2-devel] [PATCH v5 33/36] OvmfPkg/LoongArchVirt: Support SEC phase

2024-01-03 Thread maobibo
On 2023/12/28 下午6:07, Chao Li wrote: Add SEC code for LoongArch virtual machine. BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584 Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Jordan Justen Cc: Gerd Hoffmann Signed-off-by: Chao Li Co-authored-by: Xianglai Li Co-authored-by: Bibo Mao

Re: [edk2-devel] [PATCH v5 32/36] OvmfPkg/LoongArchVirt: Add reset system library

2024-01-03 Thread maobibo
On 2023/12/28 下午6:07, Chao Li wrote: This library provides interface related to restart and shudown the LoongArch64 virtual machine. BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584 Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Jordan Justen Cc: Gerd Hoffmann Signed-off-by: Chao Li

Re: [edk2-devel] [PATCH v5 29/36] OvmfPkg/LoongArchVirt: Add real time clock library

2024-01-03 Thread maobibo
On 2023/12/28 下午6:07, Chao Li wrote: This library is provides real time clock for LoongArch virtual machine. BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584 Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Jordan Justen Cc: Gerd Hoffmann Signed-off-by: Chao Li Co-authored-by: Baoqi Zhang

Re: [edk2-devel] [PATCH v5 27/36] OvmfPkg/LoongArchVirt: Add serial port hook library

2024-01-03 Thread maobibo
On 2023/12/28 下午6:07, Chao Li wrote: Add a serial port hook library in LoongArchVirt named Fdt16550SerialProtHookLib, this library is referenced from ArmVirtPkg. LoongArch QEMU virtual machine uses register of LOONGARCH_CSR_KS1 to transfer serial port base addres from the PEI phase to the

Re: [edk2-devel] [PATCH v5 34/36] OvmfPkg/LoongArchVirt: Support PEI phase

2024-01-03 Thread maobibo
On 2023/12/28 下午6:07, Chao Li wrote: Platfrom PEI module for LoongArch platfrom initialization. BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584 Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Jordan Justen Cc: Gerd Hoffmann Signed-off-by: Chao Li Co-authored-by: Xianglai Li

Re: [edk2-devel] [PATCH v1 00/29] Enable LoongArch virtual machine in edk2

2023-11-03 Thread maobibo
on the actual and virtual machines to ensure it works right. If so, it is ok for me-:) Regards Bibo Mao Thanks, Chao 在 2023/11/3 15:51, maobibo 写道: On 2023/11/3 下午3:08, Chao Li wrote: Hi Ray, Thanks for review. I think the MpInitLib is necessary, because this library will serve PEI

Re: [edk2-devel] [PATCH v1 00/29] Enable LoongArch virtual machine in edk2

2023-11-03 Thread maobibo
On 2023/11/3 下午3:08, Chao Li wrote: Hi Ray, Thanks for review. I think the MpInitLib is necessary, because this library will serve PEI and DEX phases. In LoongArch, the MP initialization function will be called first in the PEI phase. It will wake up all of AP, collect accurate online

Re: [edk2-devel] [edk2-platforms] Platform/Loongson: Set common page size to 16k

2023-05-10 Thread maobibo
在 2023/5/11 09:33, xianglai li 写道: > Default page size is 16K for loongarch qemu tcg code section > separated with data section with 16K page alignment, > And data write operation in the same page with code section > will cause qemu TB flush. Xianglai, Could you add more data supporting? such

Re: [edk2-devel] On integrating LoongArch EDK2 firmware into QEMU build process

2023-04-03 Thread maobibo
ile the loongarch firmware gcc > throws errors: > > loongarch64-linux-gnu-gcc: error: unrecognized command-line option > ‘-mno-explicit-reloc what is your option about this issue? Regards Bibo, Mao 在 2023/4/1 13:11, maobibo 写道: > > > On 2023/3/31 20:12, Gerd Hoffmann wrote: >>

Re: [edk2-devel] [edk2-platforms][PATCH V1 4/4] Platform/Loongson: Fixed the bug during page table creation.

2023-01-03 Thread maobibo
在 2023/1/4 11:10, xianglai li 写道: > 1.Open the NULL pointer protection policy. > 2.Fixed the bug of converting huge page to page entry. > 3.Adjust the access level of page entry. > 4.Optimize the existence of page entry judgment functions. Can we split the patch into 4 small patches? All the

Re: [edk2-devel] [edk2-platforms][PATCH V1 3/4] Platform/Loongson: Support pflash for loongarch.

2023-01-03 Thread maobibo
在 2023/1/4 11:10, xianglai li 写道: > Add pflash driver for loongarch. > > Cc: Ard Biesheuvel > Cc: Bibo Mao > Cc: Chao Li > Cc: Leif Lindholm > Cc: Liming Gao > Cc: Michael D Kinney > Signed-off-by: xianglai li > --- > .../Library/NorFlashQemuLib/NorFlashQemuLib.c | 138

Re: [edk2-devel] [edk2-platforms][PATCH V5 00/15] Platform: Add Loongson support.

2022-11-13 Thread maobibo
Ping for reviewing, Any comments is welcome. >From edk2 mailing list, Soft Feature Freeze start on 2022-11-07 for >edk2-stable202211, is edk2-platform is affected also? And there are series of submition for Riscv ovmf supports recently, we will adopt the new multi-arch schemes on Loongarch

Re: [edk2-devel] [edk2-platforms][PATCH V4 05/14] Platform/Loongson: Add MmuLib.

2022-10-29 Thread maobibo
在 2022/10/21 15:11, xianglai li 写道: > Read the memory map information through the QemuFwCfg interface, > then build the page table through the memory map information, > and finally enable Mmu. > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 > > Signed-off-by: xianglai li > --- >

Re: [edk2-devel] [edk2-platforms][PATCH V4 01/14] Platform/Loongson: Add Serial Port library

2022-10-28 Thread maobibo
Hi xianglai, I reply inline. 在 2022/10/21 15:11, xianglai li 写道: > Serial Port library for LoongarchQemuPkg > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 > > Signed-off-by: xianglai li > --- > .../LoongArchQemuPkg/Include/Library/Cpu.h| 387 +++ >

Re: [edk2-devel] Confirm your bibo_...@163.com email address

2021-11-27 Thread maobibo
On 11/26/2021 10:24 AM, Groups.io Notification wrote: > Hello, > > Thank you for your interest in the https://edk2.groups.io/g/devel group at > Groups.io. If you did not request or do not want to join > devel@edk2.groups.io, please ignore this message. > > If you only want to send and

Re: [edk2-devel] one possible issue with ovmf fvb

2021-11-27 Thread maobibo
On 11/25/2021 06:38 PM, Gerd Hoffmann wrote: > Hi, > >> PcdStatus = PcdSet64S (PcdFlashNvStorageVariableBase64, (UINT32)(UINTN) >> Ptr); >> ASSERT_RETURN_ERROR (PcdStatus); > > I guess you are referring to that UINT32 cast? > Not sure why it is there. I think you can just drop it.

[edk2-devel] one possible issue with ovmf fvb

2021-11-27 Thread maobibo
Hi Gerd, I am porting Loongarch Qemu uefi bios, and I want to use reuse ovmf code. And I encounter one problem when using OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c here is piece of code: --- Initialize = TRUE; if (PcdGet64