[edk2-devel] [PATCH V3] MdeModulePkg: Memory Corruption Error in CapsuleRuntimeDxe

2022-10-21 Thread Nate DeSimone
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4112 In AllocateReservedMemoryBelow4G(), if gBS->AllocatePages() returns an error, and ASSERTs are disabled, then the function will overwrite memory from 0x -> (0x + Size). Cc: Liming Gao Cc: Guomin Jiang Cc: Jian J Wang Cc: M

[edk2-devel] [PATCH V2] MdeModulePkg: Memory Corruption Error in CapsuleRuntimeDxe

2022-10-21 Thread Nate DeSimone
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4112 In AllocateReservedMemoryBelow4G(), if gBS->AllocatePages() returns an error, and ASSERTs are disabled, then the function will overwrite memory from 0x -> (0x + Size). Cc: Liming Gao Cc: Guomin Jiang Cc: Jian J Wang Cc: M

[edk2-devel] [PATCH V1] MdeModulePkg: Memory Corruption Error in CapsuleRuntimeDxe

2022-10-21 Thread Nate DeSimone
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4112 In AllocateReservedMemoryBelow4G(), if gBS->AllocatePages() returns an error, and ASSERTs are disabled, then the function will overwrite memory from 0x -> (0x + Size). Cc: Liming Gao Cc: Guomin Jiang Cc: Jian J Wang Cc: M

Re: [edk2-devel] 回复: [PATCH V4 00/10] Introduce Lazy-accept for Tdx guest

2022-10-21 Thread Dionna Glaze via groups.io
> > Min: > > I understand that they are for the different purpose and usage. But, their > > protocol name are very similar. > Yes. They do look very similar. > > > If there is no better protocol name, I will also be fine. > Dionna, what's your thought? > The accept_all_unaccepted_memory name c

Re: [edk2-devel] [PATCH v7 0/7] Add safe unaccepted memory behavior

2022-10-21 Thread Dionna Glaze via groups.io
> > I suppose that's true. Would you prefer volatile versions of > > OsIndications/OsIndicationsSupported added to the spec, or this > > proposed one-off toggle protocol? No specified global variables seem > > overloadable with this duty. > > > > No it would have to be a completely separate variabl

Re: [edk2-devel] [PATCH v7 0/7] Add safe unaccepted memory behavior

2022-10-21 Thread Ard Biesheuvel
On Fri, 21 Oct 2022 at 00:37, Dionna Amalie Glaze wrote: > > > That assumes the variable is non-volatile, but I suppose we could use > > a volatile variable [other than OsIndications] as well. > > > > I suppose that's true. Would you prefer volatile versions of > OsIndications/OsIndicationsSupport

Re: [edk2-devel] [PATCH] DynamicTablesPkg:ACPI: SLIT Generator files

2022-10-21 Thread PierreGondois
Hello Swatisri, On 9/29/22 20:18, Name via groups.io wrote: From: Swatisri Kantamsetti Added SLIT Generator and supporting files to generate SLIT ACPI Table Signed-off-by: Swatisri Kantamsetti --- DynamicTablesPkg/DynamicTables.dsc.inc| 2 + DynamicTablesPkg/Include/AcpiTableGen

Re: 回复: [edk2-devel] [PATCH v8 00/19] Add Raw algorithm support using Arm FW-TRNG interface

2022-10-21 Thread PierreGondois
Hello Liming, On 10/21/22 03:13, gaoliming wrote: Pierre: Is MdePkg BaseTrngLibNull Library instance only for build? Is it possible to be used in the platform without RNG support? If yes, I suggest to remove ASSERT in API implementation. The BaseTrngLibNull is only here to have a defau

[edk2-devel] [edk2-platforms][PATCH V4 09/14] Platform/Loongson: Add PciCpuIoDxe driver.

2022-10-21 Thread xianglai
Add PCI CpuIo protocol.there is no fix translation offset between I/O port accesses and MMIO accesses. Add PciCpuIo2Dxe driver to implement EFI_CPU_IO2_PROTOCOL to add the translation for IO access. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Signed-off-by: xianglai li --- .../Driv

[edk2-devel] [edk2-platforms][PATCH V4 08/14] Platform/Loongson: Add CPU DXE driver.

2022-10-21 Thread xianglai
The driver produces EFI_CPU_ARCH_PROTOCOL, Initialize the exception entry address. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Signed-off-by: xianglai li --- .../LoongArchQemuPkg/Drivers/CpuDxe/CpuDxe.c | 382 ++ .../LoongArchQemuPkg/Drivers/CpuDxe/CpuDxe.h | 151

[edk2-devel] [edk2-platforms][PATCH V4 14/14] Platform/Loongson: Support Dxe

2022-10-21 Thread xianglai
Support Dxe for LoogArch. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Signed-off-by: xianglai li --- .../Loongson/LoongArchQemuPkg/Loongson.dec| 14 +- .../Loongson/LoongArchQemuPkg/Loongson.dsc| 424 +- .../Loongson/LoongArchQemuPkg/Loongson.fdf| 242 +

[edk2-devel] [edk2-platforms][PATCH V4 12/14] Platform/Loongson: Add Platform Boot Manager Lib.

2022-10-21 Thread xianglai
The Library provides Boot Manager interfaces. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Signed-off-by: xianglai li --- .../PlatformBootManagerLib/PlatformBm.c | 760 ++ .../PlatformBootManagerLib/PlatformBm.h | 112 +++ .../PlatformBootManagerLib.inf

[edk2-devel] [edk2-platforms][PATCH V4 10/14] Platform/Loongson: Add timer Dxe driver.

2022-10-21 Thread xianglai
This driver produces Timer Architectural Protocol, Registers a timer interrupt and initializes the timer. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Signed-off-by: xianglai li --- .../Drivers/StableTimerDxe/Timer.c| 405 ++ .../Drivers/StableTimerDxe/Ti

[edk2-devel] [edk2-platforms][PATCH V4 07/14] Platform/Loongson: Support PEI phase.

2022-10-21 Thread xianglai
Platform PEI module for LoongArch platform initialization. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Signed-off-by: xianglai li --- .../Loongson/LoongArchQemuPkg/Loongson.dec| 22 ++ .../Loongson/LoongArchQemuPkg/Loongson.dsc| 65 - .../Loongson/LoongArchQemuPkg/Loo

[edk2-devel] [edk2-platforms][PATCH V4 11/14] Platform/Loongson: Add RealTime Clock lib.

2022-10-21 Thread xianglai
This library provides interfaces such as real-time clock initialization to get time and setting time. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Signed-off-by: xianglai li --- .../LsRealTimeClockLib/LsRealTimeClock.h | 41 +++ .../LsRealTimeClockLib/LsRealTimeClockLib.c |

[edk2-devel] [edk2-platforms][PATCH V4 13/14] Platform/Loongson: Add Reset System Lib.

2022-10-21 Thread xianglai
This library provides interfaces related to restart and shutdown. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Signed-off-by: xianglai li --- .../BaseResetSystemAcpiGed.c | 155 ++ .../BaseResetSystemAcpiGedLib.inf | 42 +++ .../DxeResetSystemAc

[edk2-devel] [edk2-platforms][PATCH V4 00/14] Platform: Add Loongson support.

2022-10-21 Thread xianglai
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 The uploaded code generates firmware to support Linux launching on the LoongArch platform under qemu, So it will run in a virtual machine. LoongArch is the general processor architecture of Loongson. You can get the latest LoongArch docume