Re: [edk2-devel] "PyBaseTools" branch on edk2-staging

2022-04-03 Thread Michael D Kinney
Hi Bob, Thank you for setting up this staging branch. Can you list the current inventory of tools that are being considered for porting from C -> Python? It would be good for everyone to review that list and determine if there are tools that can be deleted because they are no longer needed. T

Re: [edk2-devel] [PATCH v1 2/4] .pytool/Plugin/UncrustifyCheck: Add ignore file support

2022-04-03 Thread Michael D Kinney
Hi Sean, Perhaps in the future this can be converted to an option python parameter with a default value of None? Mike From: devel@edk2.groups.io On Behalf Of Sean Sent: Friday, April 1, 2022 10:45 AM To: Kinney, Michael D ; devel@edk2.groups.io Subject: Re: [edk2-devel] [PATCH v1 2/4] .pytool/

Re: [edk2-devel] "PyBaseTools" branch on edk2-staging

2022-04-03 Thread Bob Feng
Yes. I added the list to the branch Readme.md. Welcome everyone to review this list and let me know which one can be deleted. GenCrc32 Compress tools LzmaCompress BrotliCompress PyEfiCompressor TianoCompress PI Spec Vol3 GenSec GenFfs GenFv Utilities VolInfo EfiRom DevicePath PE/COFF spec GenFw

[edk2-devel] GSoC2022-Add Rust Support to EDK II.

2022-04-03 Thread huangwenyuu via groups.io
Hi! I'm Wenyu Huang, pursueing the MPhil degree in the Chinese University of Hong Kong, Shenzhen. My research is focusing on the operating system and virtualization and I am familiar with using Rust. So I am so interested in Add Rust Support to EDK II. Could you guide me how to go through resear

[edk2-devel] Questions about ARM memory properties

2022-04-03 Thread 唐龙军
Hi,I'm currently working on a PCI device driver on the ARM platform that needs to support unaligned access in the pci bar memory, such as cpymem(), but I've noticed that the PCI bus driver doesn't support the cached or write combine attributes.as follow: // // This driver does not support setting t

[edk2-devel] Touch Support in EDK2

2022-04-03 Thread Thomas Finny via groups.io
I'm working with software (VeraCrypt) that uses EDK2 to support touch interaction at boot.  It doesn't seem to work with the ASUS Vivobook 14 Flip, however, so I rebuilt the app with some debugging code. There is a TouchDevice detected and a handle is obtained, but when DevicePathFromHandle() i

[edk2-devel] [Patch V2] BaseTools: Fix DevicePath tool build failure issue

2022-04-03 Thread Bob Feng
From: "Feng, Bob C" Fix the DevicePath tool build failure that was introduced by the fixes: 22130dcd98b4 ("Basetools: turn off gcc12 warning"). Failure cases are: 1. clang 13.1.6 on macOS 2. gcc5.4 Reported-by: Rebecca Cran Reported-by: Yuwei Chen Signed-off-by: Gerd Hoffmann Signed-off-by: B

[edk2-devel][PATCH 0/5] To support PEI 64bit in IntelFsp2Pkg

2022-04-03 Thread Kuo, Ted
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3893 Currently PEI drivers/libraries only support 32bit in IntelFsp2Pkg. The patches below are needed to support these drivers/libraries in 64bit. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Star Zeng Cc: Ashraf Ali S Signed-off-by: Ted Kuo Ted K

[edk2-devel][PATCH 1/5] IntelFsp2Pkg: X64 compatible changes to support PEI in 64bit

2022-04-03 Thread Kuo, Ted
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3893 1.Added EFIAPI to FspNotifyPhasePeimEntryPoint. 2.Changed AsmReadEsp to AsmReadStackPointer. 3.Changed the type of the return value of AsmReadStackPointer from UINT32 to UINTN. 4.Changed the type of TemporaryMemoryBase, PermenentMemoryBase

[edk2-devel][PATCH 3/5] IntelFsp2Pkg: Update FSP_GLOBAL_DATA and FSP_PLAT_DATA for X64

2022-04-03 Thread Kuo, Ted
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3893 Updated FSP_GLOBAL_DATA and FSP_PLAT_DATA structures to support both IA32 and X64. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Star Zeng Cc: Ashraf Ali S Signed-off-by: Ted Kuo --- IntelFsp2Pkg/FspSecCore/SecFsp.c | 2 +- IntelFsp2Pkg/In

[edk2-devel][PATCH 4/5] IntelFsp2Pkg: FspSecCore support for X64

2022-04-03 Thread Kuo, Ted
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3893 1.Added FspSecCore support for X64. 2.Bumped FSP header revision to 7 to indicate FSP 64bit is supported. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Star Zeng Cc: Ashraf Ali S Signed-off-by: Ted Kuo --- IntelFsp2Pkg/FspSecCore/Fsp22SecCoreS.

[edk2-devel][PATCH 2/5] IntelFsp2Pkg: Add FSPx_ARCH2_UPD support for X64

2022-04-03 Thread Kuo, Ted
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3893 Added FSPx_ARCH2_UPD structures which support both IA32 and X64. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Star Zeng Cc: Ashraf Ali S Signed-off-by: Ted Kuo --- IntelFsp2Pkg/FspSecCore/Ia32/FspApiEntryM.nasm | 29 ++ IntelFsp2Pkg/FspSe

[edk2-devel][PATCH 5/5] IntelFsp2Pkg: SecFspSecPlatformLibNull support for X64

2022-04-03 Thread Kuo, Ted
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3893 1.Added SecFspSecPlatformLibNull support for X64. 2.Added X64 support to IntelFsp2Pkg.dsc. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Star Zeng Cc: Ashraf Ali S Signed-off-by: Ted Kuo --- IntelFsp2Pkg/IntelFsp2Pkg.dsc |

[edk2-devel][PATCH v2 1/8] IntelFsp2Pkg: X64 compatible changes to support PEI in 64bit

2022-04-03 Thread Kuo, Ted
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3893 1.Added EFIAPI to FspNotifyPhasePeimEntryPoint. 2.Changed AsmReadEsp to AsmReadStackPointer. 3.Changed the type of the return value of AsmReadStackPointer from UINT32 to UINTN. 4.Changed the type of TemporaryMemoryBase, PermenentMemoryBase

[edk2-devel][PATCH v2 3/8] IntelFsp2Pkg: Update FSP_GLOBAL_DATA and FSP_PLAT_DATA for X64

2022-04-03 Thread Kuo, Ted
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3893 Updated FSP_GLOBAL_DATA and FSP_PLAT_DATA structures to support both IA32 and X64. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Star Zeng Cc: Ashraf Ali S Signed-off-by: Ted Kuo --- IntelFsp2Pkg/FspSecCore/SecFsp.c | 2 +- IntelFsp2Pkg/In

[edk2-devel][PATCH v2 2/8] IntelFsp2Pkg: Add FSPx_ARCH2_UPD support for X64

2022-04-03 Thread Kuo, Ted
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3893 1.Added FSPx_ARCH2_UPD structures which support both IA32 and X64. 2.Added FSPx_UPD_COMMON_FSP24 structures. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Star Zeng Cc: Ashraf Ali S Signed-off-by: Ted Kuo --- IntelFsp2Pkg/FspSecCore/Ia32/FspApi

[edk2-devel][PATCH v2 4/8] IntelFsp2Pkg: FspSecCore support for X64

2022-04-03 Thread Kuo, Ted
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3893 1.Added FspSecCore support for X64. 2.Bumped FSP header revision to 7 to indicate FSP 64bit is supported. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Star Zeng Cc: Ashraf Ali S Signed-off-by: Ted Kuo --- IntelFsp2Pkg/FspSecCore/Fsp22SecCoreS.

[edk2-devel][PATCH v2 6/8] IntelFsp2WrapperPkg: Adopt FSPM_UPD_COMMON_FSP24 for X64

2022-04-03 Thread Kuo, Ted
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3893 Adopt FSPM_UPD_COMMON_FSP24 in FspmWrapperPeim to support X64. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Star Zeng Cc: Ashraf Ali S Signed-off-by: Ted Kuo --- .../FspmWrapperPeim/FspmWrapperPeim.c | 25 ++ 1

[edk2-devel][PATCH v2 5/8] IntelFsp2Pkg: SecFspSecPlatformLibNull support for X64

2022-04-03 Thread Kuo, Ted
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3893 1.Added SecFspSecPlatformLibNull support for X64. 2.Added X64 support to IntelFsp2Pkg.dsc. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Star Zeng Cc: Ashraf Ali S Signed-off-by: Ted Kuo --- IntelFsp2Pkg/IntelFsp2Pkg.dsc |

[edk2-devel][PATCH v2 0/8] Support PEI 64bit in IntelFsp2Pkg and IntelFsp2WrapperPkg

2022-04-03 Thread Kuo, Ted
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3893 Currently PEI drivers/libraries only support 32bit in IntelFsp2Pkg and IntelFsp2WrapperPkg. The patches below are needed to support these drivers/libraries in 64bit. V2 changes: 1.Change FSPM_UPD_COMMON2 to FSPM_UPD_COMMON_FSP24 in FspApiEnt

[edk2-devel][PATCH v2 7/8] IntelFsp2WrapperPkg: BaseFspWrapperApiLib support for X64

2022-04-03 Thread Kuo, Ted
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3893 Add Execute64BitCode to execute 64bit code from long mode directly in PEI 64bit. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Star Zeng Cc: Ashraf Ali S Signed-off-by: Ted Kuo --- .../BaseFspWrapperApiLib/FspWrapperApiLib.c| 42 +++

[edk2-devel][PATCH v2 8/8] IntelFsp2WrapperPkg: SecFspWrapperPlatformSecLibSample support for X64

2022-04-03 Thread Kuo, Ted
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3893 1.Added SecFspWrapperPlatformSecLibSample support for X64. 2.Adopted FSPT_ARCH2_UPD in SecFspWrapperPlatformSecLibSample. 3.Moved Fsp.h up one level to be shared across IA32 and X64. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Star Zeng Cc: Ashr

[edk2-devel] [PATCH] OvmfPkg: reserve igd memory by E820

2022-04-03 Thread Corvin Köhne
Hi all, I'd like to discuss the following patch. At the moment, it's bhyve specific but I'd like to merge it into stock OVMF too. I'm working on GPU passthrough support for Intels integrated graphics devices (Intel calls it GVT-d). In order to get GVT-d working properly, the guest bios should