Re: [edk2-devel] [PATCH] BaseTools/VolInfo: Increase define for highest section value

2022-07-21 Thread Yuwei Chen
Reviewed-by: Yuwei Chen > -Original Message- > From: Konstantin Aladyshev > Sent: Monday, July 18, 2022 8:56 PM > To: devel@edk2.groups.io > Cc: Feng, Bob C ; Gao, Liming > ; Chen, Christine ; > Konstantin Aladyshev > Subject: [PATCH] BaseTools/VolInfo: Increase define for highest sectio

Re: [edk2-devel] [PATCH] BaseTools/VolInfo: Correct alignment attributes display

2022-07-21 Thread Yuwei Chen
Reviewed-by: Yuwei Chen > -Original Message- > From: devel@edk2.groups.io On Behalf Of > Konstantin Aladyshev > Sent: Wednesday, July 13, 2022 9:11 PM > To: devel@edk2.groups.io > Cc: Feng, Bob C ; Gao, Liming > ; Chen, Christine ; > Konstantin Aladyshev > Subject: [edk2-devel] [PATCH] B

[edk2-devel] ‘EmbeddedDrivers’ option in Capsule file.

2022-07-21 Thread gordontcp
Hi all, I can generate Red1.cap capsule file from GenerateCapsule.py of edk2, and execute CapsuleApp Red1.cap on Minnowboard to complete the process of capsule update. Build capsule file command: \BaseTools\Source\Python\Capsule>GenerateCapsule.py -e -j red1.json -o red1.cap --capflag PersistAcr

Re: [edk2-devel] [PATCH 1/1] BaseTools: INF should use latest Pcd value instead of default value

2022-07-21 Thread yi1 li
Hi Christine, Thanks for review, and this bug is come from commit : https://github.com/tianocore/edk2/commit/bf9230a9f3dde065c3c8b4175ccd32e44e8f0362 This commit introduce a new feature to conditional build source file in INF, Such like: curve25519.c |*|*|*|gEfiCryptoPkgTokenSpaceGuid.PcdO

Re: [edk2-devel] [PATCH 1/1] BaseTools: INF should use latest Pcd value instead of default value

2022-07-21 Thread Yuwei Chen
Hi Yi, Could you describe the bug with an example? In which scenario the dsc defined pcd will not override the dec definition? Thanks, Christine > -Original Message- > From: devel@edk2.groups.io On Behalf Of yi1 li > Sent: Monday, July 11, 2022 1:48 PM > To: devel@edk2.groups.io > Cc:

[edk2-devel] [Patch V3 1/1] BaseTools: remove directly calling for gcc command

2022-07-21 Thread Yuwei Chen
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4003 In some environment, the directly calling for gcc is not supported. This patch fixes the issue. Cc: Bob Feng Cc: Liming Gao Signed-off-by: Yuwei Chen --- BaseTools/Source/C/DevicePath/GNUmakefile | 13 - 1 file changed, 8 in

[edk2-devel] [Patch v3 3/3] Maintainers.txt: Remove reviewer Harry Han

2022-07-21 Thread Michael D Kinney
Cc: Harry Han Cc: Andrew Fish Cc: Leif Lindholm Signed-off-by: Michael D Kinney Reviewed-by: Harry Han --- Maintainers.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/Maintainers.txt b/Maintainers.txt index bc7caa12d8d9..0ea6b4041654 100644 --- a/Maintainers.txt +++ b/Maintainers.txt

[edk2-devel] [Patch v3 2/3] Maintainers.txt: Add missing github ids

2022-07-21 Thread Michael D Kinney
Cc: Andrew Fish Cc: Leif Lindholm Cc: Daniel Schaefer Cc: Sean Rhodes Cc: Debkumar De Cc: Erdem Aktas Cc: Gary Lin Cc: Julien Grall Signed-off-by: Michael D Kinney Reviewed-by: Daniel Schaefer Reviewed-by: Sean Rhodes Reviewed-by: Debkumar De Acked-by: Gary Lin --- Maintainers.txt | 1

[edk2-devel] [Patch v3 1/3] Maintainers.txt: Remove OvmfPkg/XenTimerDxe reference

2022-07-21 Thread Michael D Kinney
XenTimerDxe has been removed from the OvmfPkg. Remove file pattern for XenTimerDxe reviews from Maintainers.txt. Cc: Anthony Perard Cc: Julien Grall Cc: Andrew Fish Cc: Leif Lindholm Signed-off-by: Michael D Kinney Acked-by: Anthony PERARD --- Maintainers.txt | 1 - 1 file changed, 1 delet

[edk2-devel] [Patch v3 0/3] Update Maintainers.txt

2022-07-21 Thread Michael D Kinney
Cc: Anthony Perard Cc: Julien Grall Cc: Daniel Schaefer Cc: Sean Rhodes Cc: Debkumar De Cc: Erdem Aktas Cc: Harry Han Cc: Gary Lin Cc: Andrew Fish Cc: Leif Lindholm Signed-off-by: Michael D Kinney Michael D Kinney (3): Maintainers.txt: Remove OvmfPkg/XenTimerDxe reference Maintainer

Re: [edk2-devel] [Patch v2 3/3] Maintainers.txt: Remove reviewer Harry Han

2022-07-21 Thread Han, Harry
Hi Mickael, Reviewed-by: Han, Harry ; Thanks, -Harry -Original Message- From: Kinney, Michael D Sent: Wednesday, July 20, 2022 8:15 PM To: devel@edk2.groups.io Cc: Han, Harry ; Andrew Fish ; Leif Lindholm Subject: [Patch v2 3/3] Maintainers.txt: Remove reviewer Harry Han Cc: Harry H

Re: [edk2-devel] [Patch 2/3] Maintainers.txt: Add missing github ids

2022-07-21 Thread Sean Rhodes
Reviewed-by: Sean Rhodes On Wed, 20 Jul 2022 at 22:58, Michael D Kinney wrote: > Cc: Andrew Fish > Cc: Leif Lindholm > Cc: Daniel Schaefer > Cc: Sean Rhodes > Cc: Debkumar De > Cc: Erdem Aktas > Signed-off-by: Michael D Kinney > --- > Maintainers.txt | 10 +- > 1 file changed, 5

[edk2-devel] [edk2-platforms][PATCH v2 7/7] PhytiumCommonPkg: Pipeline: Resolving newly introduced dependency

2022-07-21 Thread Kun Qin
The new changes in SecureBootVariableLib brought in a new dependency of PlatformPKProtectionLib. This change added the new library instance from SecurityPkg to resolve PhytiumCommonPkg platforms build. Cc: Leif Lindholm Cc: Peng Xie Cc: Ling Jia Cc: Yiqi Shu Signed-off-by: Kun Qin --- Note

[edk2-devel] [edk2-platforms][PATCH v2 5/7] Socionext: Pipeline: Resolving newly introduced dependency

2022-07-21 Thread Kun Qin
The new changes in SecureBootVariableLib brought in a new dependency of PlatformPKProtectionLib. This change added the new library instance from SecurityPkg to resolve DeveloperBox platforms build. Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Masami Hiramatsu Signed-off-by: Kun Qin --- Notes:

[edk2-devel] [edk2-platforms][PATCH v2 4/7] Qemu: Pipeline: Resolving newly introduced dependency

2022-07-21 Thread Kun Qin
The new changes in SecureBootVariableLib brought in a new dependency of PlatformPKProtectionLib. This change added the new library instance from SecurityPkg to resolve SbsaQemu platform builds. Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Graeme Gregory Cc: Radoslaw Biernacki Signed-off-by: Kun

[edk2-devel] [edk2-platforms][PATCH v2 6/7] AmpereAltraPkg: Pipeline: Resolving newly introduced dependency

2022-07-21 Thread Kun Qin
The new changes in SecureBootVariableLib brought in a new dependency of PlatformPKProtectionLib. This change added the new library instance from SecurityPkg to resolve AmpereAltraPkg platforms build. Cc: Nhi Pham Cc: Vu Nguyen Cc: Thang Nguyen Cc: Chuong Tran Cc: Leif Lindholm Signed-off-by

[edk2-devel] [edk2-platforms][PATCH v2 2/7] U5SeriesPkg: Pipeline: Resolving newly introduced dependency

2022-07-21 Thread Kun Qin
The new changes in SecureBootVariableLib brought in a new dependency of PlatformPKProtectionLib. This change added the new library instance from SecurityPkg to resolve U5SeriesPkg platforms build. Cc: Abner Chang Cc: Gilbert Chen Cc: Daniel Schaefer Signed-off-by: Kun Qin --- Notes: v2:

[edk2-devel] [edk2-platforms][PATCH v2 3/7] VExpressPkg: Pipeline: Resolving newly introduced dependency

2022-07-21 Thread Kun Qin
The new changes in SecureBootVariableLib brought in a new dependency of PlatformPKProtectionLib. This change added the new library instance from SecurityPkg to resolve ArmVExpress platforms build. Cc: Ard Biesheuvel Cc: Thomas Abraham Cc: Sami Mujawar Signed-off-by: Kun Qin Reviewed-by: Sami

[edk2-devel] [edk2-platforms][PATCH v2 1/7] RaspberryPi: Pipeline: Resolving newly introduced dependency

2022-07-21 Thread Kun Qin
The new changes in SecureBootVariableLib brought in a new dependency of PlatformPKProtectionLib. This change added the new library instance from SecurityPkg to resolve RaspberryPi platforms build. Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Jeremy Linton Signed-off-by: Kun Qin Reviewed-by: Jere

[edk2-devel] [edk2-platforms][PATCH v2 0/7] Resolving SecureBootVariableLib dependency

2022-07-21 Thread Kun Qin
From: Kun This v2 series is a follow up of previously submitted patches: https://edk2.groups.io/g/devel/message/91195 Compared to v1, v2 patches updated commit message to include Review-by tags collected during v1 review cycle. Patch v2 branch:https://github.com/kuqin12/edk2-platforms/tree/fix_

Re: [edk2-devel] [PATCH 1/1] OvmfPkg/XenPvBlkDxe: Fix memory barrier macro

2022-07-21 Thread Andrew Cooper via groups.io
On 19/07/2022 14:52, Anthony Perard wrote: > diff --git a/OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.h > b/OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.h > index 350b7bd309c0..67ee1899e9a8 100644 > --- a/OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.h > +++ b/OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.h > @@ -11,8 +11,9 @@ > #define __EFI_XEN_P

Re: [edk2-devel] [edk2-platforms][PATCH 1/2] Ext4Pkg: Add symbolic links support

2022-07-21 Thread Marvin Häuser
> On 20. Jul 2022, at 08:17, Savva Mitrofanov wrote: > > Provided support for symlink file type. Added routine which allows > reading and following them through recursive open() call. As a security > meausure implemented simple symlink loop check with nest level limit > equal 8. Also this patch

Re: [edk2-devel] [edk2-platforms][PATCH v2 2/2] Ext4Pkg: Add base containing record macro for EXT4_FILE

2022-07-21 Thread Marvin Häuser
Reviewed-by: Marvin Häuser > On 20. Jul 2022, at 08:47, Savva Mitrofanov wrote: > > We shouldn't use direct casts, because in the future it could break > the code, so using BASE_CR would be safe against possible structure > changes and rearrangements > > Cc: Marvin Häuser > Cc: Pedro Falcato

Re: [edk2-devel] [edk2-platforms][PATCH v2 1/1] Ext4Pkg: Code correctness and security improvements

2022-07-21 Thread Marvin Häuser
On 20. Jul 2022, at 07:36, Savva Mitrofanov wrote: > > This changes tends to improve security of code sections by fixing > integer overflows, missing aligment checks, unsafe casts, also > simplified some routines, fixed compiler warnings and corrected some > code mistakes. > > - Set HoleLen to U

[edk2-devel] [edk2-platforms][PATCH 2/2] Ext4Pkg: Add base containing record macro for EXT4_FILE

2022-07-21 Thread Savva Mitrofanov
We shouldn't use direct casts, because in the future it could break the code, so using BASE_CR would be safe against possible structure changes and rearrangements Cc: Marvin Häuser Cc: Pedro Falcato Cc: Vitaly Cheptsov Signed-off-by: Savva Mitrofanov --- Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.h |

[edk2-devel] [edk2-platforms][PATCH 02/10] Ext4Pkg: Change HoleLen type to UINT64

2022-07-21 Thread Savva Mitrofanov
Set HoleLen to UINT64 to perform safe cast to UINTN in ternary operator at WasRead assignment Cc: Marvin Häuser Cc: Pedro Falcato Cc: Vitaly Cheptsov Signed-off-by: Savva Mitrofanov --- Features/Ext4Pkg/Ext4Dxe/Inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Fe

[edk2-devel] [edk2-platforms][PATCH v2 2/2] Ext4Pkg: Add base containing record macro for EXT4_FILE

2022-07-21 Thread Savva Mitrofanov
We shouldn't use direct casts, because in the future it could break the code, so using BASE_CR would be safe against possible structure changes and rearrangements Cc: Marvin Häuser Cc: Pedro Falcato Cc: Vitaly Cheptsov Signed-off-by: Savva Mitrofanov --- Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.h |

[edk2-devel] [edk2-platforms][PATCH v2 1/2] Ext4Pkg: Add symbolic links support

2022-07-21 Thread Savva Mitrofanov
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3677 Provided support for symlink file type. Added routine which allows reading and following them through recursive open() call. As a security meausure implemented simple symlink loop check with nest level limit equal 8. Also this patch moves Ext

[edk2-devel] [edk2-platforms][PATCH v2 0/2] Ext4Pkg: Add Symbolic Links support

2022-07-21 Thread Savva Mitrofanov
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3677 Hi all, In previous patchset I forgot to mention 3677 bug dedicated to symlinks. So in v2 I took it into account. This patchset adds symbolic links support with simple recursion protection based on symbolic link nest level limitation, also

[edk2-devel] [edk2-platforms][PATCH 1/2] Ext4Pkg: Add symbolic links support

2022-07-21 Thread Savva Mitrofanov
Provided support for symlink file type. Added routine which allows reading and following them through recursive open() call. As a security meausure implemented simple symlink loop check with nest level limit equal 8. Also this patch moves Ext4Open functionality to internal routine. Cc: Marvin Häus

[edk2-devel] [edk2-platforms][PATCH v2 0/1] Ext4Pkg: Code correctness and security improvements

2022-07-21 Thread Savva Mitrofanov
Hi all, This is second version of patch in which I squashed commits into one. Here attempts to improve security of code sections by fixing integer overflows, missing aligment checks, unsafe casts. Also I simplified some routines, fixed compiler warnings and corrected some code mistakes. REF: ht

[edk2-devel] [edk2-platforms][PATCH v2 1/1] Ext4Pkg: Code correctness and security improvements

2022-07-21 Thread Savva Mitrofanov
This changes tends to improve security of code sections by fixing integer overflows, missing aligment checks, unsafe casts, also simplified some routines, fixed compiler warnings and corrected some code mistakes. - Set HoleLen to UINT64 to perform safe cast to UINTN in ternary operator at WasRead

[edk2-devel] [edk2-platforms][PATCH 0/2] Ext4Pkg: Add Symbolic Links support

2022-07-21 Thread Savva Mitrofanov
Hi all, This patchset adds symbolic links support with simple recursion protection based on symbolic link nest level limitation, also I included patch which adds BASE_CR to extract EXT4_FILE private structure to prevent possible code corruption caused by structure changes and rearrangements in fu

[edk2-devel] [edk2-platforms][PATCH 10/10] Ext4Pkg: Group descriptor size must be 4-byte aligned

2022-07-21 Thread Savva Mitrofanov
Adds 4-byte aligned check for superblock group descriptor size field Cc: Marvin Häuser Cc: Pedro Falcato Cc: Vitaly Cheptsov Signed-off-by: Savva Mitrofanov --- Features/Ext4Pkg/Ext4Dxe/Directory.c | 2 +- Features/Ext4Pkg/Ext4Dxe/Superblock.c | 10 +- 2 files changed, 6 insertions(

[edk2-devel] [edk2-platforms][PATCH 08/10] Ext4Pkg: Fix possible int overflow in Ext4ExtentsMapKeyCompare

2022-07-21 Thread Savva Mitrofanov
Cc: Marvin Häuser Cc: Pedro Falcato Cc: Vitaly Cheptsov Signed-off-by: Savva Mitrofanov --- Features/Ext4Pkg/Ext4Dxe/Extents.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Features/Ext4Pkg/Ext4Dxe/Extents.c b/Features/Ext4Pkg/Ext4Dxe/Extents.c index c5951f78aa62..80427d

[edk2-devel] [edk2-platforms][PATCH 07/10] Ext4Pkg: Simplify Ext4RemoveDentry logic

2022-07-21 Thread Savva Mitrofanov
First of all BASE_LIST_FOR_EACH_SAFE doesn't have any sanity checks. So its usage isn't "safe". We can drop this loop and use just IsNodeInList Cc: Marvin Häuser Cc: Pedro Falcato Cc: Vitaly Cheptsov Signed-off-by: Savva Mitrofanov --- Features/Ext4Pkg/Ext4Dxe/Directory.c | 16 ++-

[edk2-devel] [edk2-platforms][PATCH 09/10] Ext4Pkg: Return bad block type in Ext4GetBlockpath

2022-07-21 Thread Savva Mitrofanov
Seems that returning maximum uintn in case of bad block was a mistake, so return just bad block type Cc: Marvin Häuser Cc: Pedro Falcato Cc: Vitaly Cheptsov Signed-off-by: Savva Mitrofanov --- Features/Ext4Pkg/Ext4Dxe/BlockMap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[edk2-devel] [edk2-platforms][PATCH 05/10] Ext4Pkg: Fix compiler warnings

2022-07-21 Thread Savva Mitrofanov
Initialize all fields in gExt4BindingProtocol. Fix comparison of integer expressions of different signedness. Cc: Marvin Häuser Cc: Pedro Falcato Cc: Vitaly Cheptsov Signed-off-by: Savva Mitrofanov --- Features/Ext4Pkg/Ext4Dxe/Ext4Disk.h | 2 +- Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.c | 10 +

[edk2-devel] [edk2-platforms][PATCH 06/10] Ext4Pkg: Drop dir entry name_len limit extra check

2022-07-21 Thread Savva Mitrofanov
Field name_len has type CHAR8, while filename limit is 255 (EXT4_NAME_MAX), so because structure EXT4_DIR_ENTRY would be unchangeable in future, we could drop this check without any assertions Cc: Marvin Häuser Cc: Pedro Falcato Cc: Vitaly Cheptsov Signed-off-by: Savva Mitrofanov --- Features

[edk2-devel] [edk2-platforms][PATCH 03/10] Ext4Pkg: Use 32-bit block number in BlockMap

2022-07-21 Thread Savva Mitrofanov
Replace EXT4_BLOCK_NR with 32-bit EXT2_BLOCK_NR in BlockMap, because we consider BlockMap is 32-bit fs ext2/3 feature Cc: Marvin Häuser Cc: Pedro Falcato Cc: Vitaly Cheptsov Signed-off-by: Savva Mitrofanov --- Features/Ext4Pkg/Ext4Dxe/Ext4Disk.h | 1 + Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.h |

[edk2-devel] [edk2-platforms][PATCH 04/10] Ext4Pkg: Use assertion in Ext4CalculateChecksum

2022-07-21 Thread Savva Mitrofanov
Replaced UNREACHABLE with ASSERT (FALSE) in case of new checksum algorithms, due to it is an invariant violation rather than unreachable path Cc: Marvin Häuser Cc: Pedro Falcato Cc: Vitaly Cheptsov Signed-off-by: Savva Mitrofanov --- Features/Ext4Pkg/Ext4Dxe/Superblock.c | 2 +- 1 file change

[edk2-devel] [edk2-platforms][PATCH 01/10] Ext4Pkg: Replace SetMem(,,0) with ZeroMem

2022-07-21 Thread Savva Mitrofanov
Cc: Marvin Häuser Cc: Pedro Falcato Cc: Vitaly Cheptsov Signed-off-by: Savva Mitrofanov --- Features/Ext4Pkg/Ext4Dxe/Inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Features/Ext4Pkg/Ext4Dxe/Inode.c b/Features/Ext4Pkg/Ext4Dxe/Inode.c index 831f5946e870..142ee6e3d

[edk2-devel] [edk2-platforms][PATCH 00/10] Ext4Pkg: Code security and correctness improvements

2022-07-21 Thread Savva Mitrofanov
Hi all, This patchset attempts to improve security of code sections by fixing integer overflows, missing aligment checks, unsafe casts. Also I simplified some routines, fixed compiler warnings and corrected some code mistakes. REF: https://github.com/savvamitrofanov/edk2-platforms/commits/ext

[edk2-devel] [PATCH] VirtualKeyboardFeaturePkg: Pre OS virtual keyboard touch are not working with I2C touch panel

2022-07-21 Thread KalaiyarasanX Thangaraj
Vktimer event Task Priority Level changed to TPL_CALLBACK from TPL_NOTIFY to fix Virtual Keyboard touch slowness issues and touch not working issues Cc: Dandan Bi Cc: Liming Gao Cc: Madhan Pethaiyan Cc: Kathappan Esakkithevar Cc: Madhusudhan Balaji Signed-off-by: KalaiyarasanX Thangaraj ---

Re: [edk2-devel] [edk2][PATCH V3 1/1] ArmPlatformPkg/PrePeiCore: Explicitly invoke constructor for SEC phase

2022-07-21 Thread Sami Mujawar
Hi Rohit, On Wed, Jul 6, 2022 at 06:42 AM, Rohit Mathew wrote: > > =20 > @@ -86,6 +86,10 @@ CEntryPoint ( > ArmEnableVFP (); > } > =20 > + // Explicitly invoke the library constructor to resolve any library > + // dependency. > + ProcessLibraryConstructorList(); > + I missed this in my previous

Re: [edk2-devel] [PATCH 1/1] ArmPlatformPkg/PrePeiCore: Print the firmware version early in boot

2022-07-21 Thread Sami Mujawar
Hi Rebecca, Ard, On Tue, May 3, 2022 at 12:43 AM, Ard Biesheuvel wrote: > > >> // Data Cache enabled on Primary core when MMU is enabled. >> ArmDisableDataCache (); >> // Invalidate instruction cache >> @@ -90,6 +95,18 @@ CEntryPoint ( >> >> // If not primary Jump to Secondary Main >> if (ArmP

Re: [edk2-devel] [edk2][PATCH V3 1/1] ArmPlatformPkg/PrePeiCore: Explicitly invoke constructor for SEC phase

2022-07-21 Thread Sami Mujawar
Hi Rohit, Please find my response inline marked [SAMI]. Regards, Sami Mujawar On 06/07/2022 02:42 pm, Rohit Mathew wrote: Invoke the constructor in the SEC phase to call into initialization functions associated with libraries linked with this particular module. For instance, PrePeiCore's CEnt

[edk2-devel] Now: TianoCore edk2-test Bug Triage Meeting - 07/21/2022 #cal-notice

2022-07-21 Thread Group Notification
*TianoCore edk2-test Bug Triage Meeting* *When:* 07/21/2022 10:00pm to 11:00pm (UTC+08:00) Asia/Shanghai *Where:* https://armltd.zoom.us/j/93809865843?pwd=dU1hSzk4NHM2RGhaRDRyWWZxUzY5dz09&from=addon *Organizer:* Edhaya Chandran edhaya.chand...@arm.com ( edhaya.chand...@arm.com?subject=Re:%20Eve

[edk2-devel] Event: TianoCore edk2-test Bug Triage Meeting - 07/21/2022 #cal-reminder

2022-07-21 Thread Group Notification
*Reminder: TianoCore edk2-test Bug Triage Meeting* *When:* 07/21/2022 10:00pm to 11:00pm (UTC+08:00) Asia/Shanghai *Where:* https://armltd.zoom.us/j/93809865843?pwd=dU1hSzk4NHM2RGhaRDRyWWZxUzY5dz09&from=addon *Organizer:* Edhaya Chandran edhaya.chand...@arm.com ( edhaya.chand...@arm.com?subject

[edk2-devel] [PATCH] BaseTools/VolInfo: Increase GUID base name string

2022-07-21 Thread Konstantin Aladyshev
The current string lenght (=60) is not enough for cases where basename is a path to Build folder. Drop custom define and use MAX_LINE_LEN from the BaseTools codebase instead. Signed-off-by: Konstantin Aladyshev --- BaseTools/Source/C/VolInfo/VolInfo.c | 4 +--- 1 file changed, 1 insertion(+), 3

[edk2-devel] [PATCH] BaseTools: Support COMPAT16 section generation

2022-07-21 Thread Konstantin Aladyshev
Currently COMPAT16 section type is not recognized and GenSec is called without the "-s [SectionType]" argument. Add COMPAT16 type to the SectionType dictionary to fix the issue. Now this syntax works correctly: ``` FILE FREEFORM = { SECTION COMPAT16 = } ``` Signed-off-by: Konstantin Aladyshe

Re: [edk2-devel] [PATCH 2/2] Platform/Sgi: Add serial debug controller to SSDT

2022-07-21 Thread Sami Mujawar
Hi Rohit, Have you considered moving to use Dynamic Tables Framework? There is just too much repetition in this series which can be easily avoided. It will also make the code more maintainable. Apart from this I have a comment marked inline as [SAMI]. Regards, Sami Mujawar On 04/07/2022 05

Re: [edk2-devel] [PATCH 1/2] Platform/Sgi: Update ACPI tables to use console UART

2022-07-21 Thread Sami Mujawar
Hi Rohit, These changes are fine, just too repetitive. Reviewed-by: Sami Mujawar Regards, Sami Mujawar On 04/07/2022 05:59 pm, Rohit Mathew wrote: Patch 433b5b1b0f7f ("Platform/Sgi: Route logs to different sets of consoles") assigns different address for the console UART and the debug UART.

Re: [edk2-devel] [edk2-platforms] [PATCH 1/1] Platform/Sgi: Add support to disable isolated cpus

2022-07-21 Thread Sami Mujawar
Hi Nishant, Please find my response inline marked [SAMI]. Regards, Sami Mujawar On 17/06/2022 07:07 am, Nishant Sharma wrote: Isolated CPUs are those that are not to be used on the platform for various reasons. The isolated CPU list is an array of MPID values of [SAMI] Can you explain the us

Re: [edk2-devel] [PATCH v3 00/22] Add Raw algorithm support using Arm FW-TRNG interface

2022-07-21 Thread PierreGondois
On 7/21/22 12:42, Yao, Jiewen wrote: Hi Pierre Sorry, I should have given the specific comment. [PATCH v3 12/22] SecurityPkg: Update Securitypkg.ci.yaml Why we need ArmPkg as new dependency? I don’t think this is good idea. Can we have a way to remove that dependency? Thank you Yao, Jiewen

Re: [edk2-devel] [PATCH v3 14/22] SecurityPkg/RngDxe: Replace Pcd with Sp80090Ctr256Guid

2022-07-21 Thread Yao, Jiewen
+ CopyMem (&RNGAlgorithmList[0], gEfiRngAlgorithmSp80090Ctr256Guid, sizeof (EFI_RNG_ALGORITHM)); Should it be &gEfiRngAlgorithmSp80090Ctr256Guid ? The dereference is missing. Thank you Yao Jiewen > -Original Message- > From: pierre.gond...@arm.com > Sent: Wednesday, June 29, 2022 11

Re: [edk2-devel] [PATCH v3 20/21] SecurityPkg/RngDxe: Add Arm support of RngDxe

2022-07-21 Thread Yao, Jiewen
> + #ifdef MDE_CPU_AARCH64 > + // Check FEAT_RNG before advertising PcdCpuRngSupportedAlgorithm. > + if (ArmHasRngExt ()) { Usually, we don't prefer use "#ifdef" in a common code. Instead, the general pattern is to define Architecture specific directory, and move architecture specific doe ther

Re: [edk2-devel] [PATCH v3 00/22] Add Raw algorithm support using Arm FW-TRNG interface

2022-07-21 Thread Yao, Jiewen
Hi Pierre Sorry, I should have given the specific comment. [PATCH v3 12/22] SecurityPkg: Update Securitypkg.ci.yaml Why we need ArmPkg as new dependency? I don’t think this is good idea. Can we have a way to remove that dependency? Thank you Yao, Jiewen > -Original Message- > From: dev

Re: [edk2-devel] [PATCH v3 00/22] Add Raw algorithm support using Arm FW-TRNG interface

2022-07-21 Thread Yao, Jiewen
Hi Pierre I give the feedback on interface design and dependency, esp SecurityPkg and MdePkg. 1) Please don’t change package dependency policy. 2) For AesLib/DrbgLib/TrbgLib, I already expressed my concern on adding those new APIs in MdePkg. Please try to avoid that. Basically, since this is ARM

Re: [edk2-devel] [Patch v2 2/3] Maintainers.txt: Add missing github ids

2022-07-21 Thread Lin, Gary (HPS OE-Linux)
Acked-by: Gary Lin On Wed, Jul 20, 2022 at 08:14:43PM -0700, Michael D Kinney wrote: > Cc: Andrew Fish > Cc: Leif Lindholm > Cc: Daniel Schaefer > Cc: Sean Rhodes > Cc: Debkumar De > Cc: Erdem Aktas > Cc: Gary Lin > Signed-off-by: Michael D Kinney > --- > Maintainers.txt | 12 ++-

[edk2-devel] How to handle ‘RegisterFmpInstaller’ in FmpDxe to operate USBIO when updating capsule?

2022-07-21 Thread gordontcp
Hi all, In \FmpDevicePkg\Library\FmpDeviceLibNull\FmpDeviceLib.c There are comments for RegisterFmpInstaller : /** Used to pass the FMP install function to this lib. This allows the library to have control of the handle that the FMP instance is installed on. This allows the library to use Dri

Re: [edk2-devel] [Patch 1/3] Maintainers.txt: Remove OvmfPkg/XenTimerDxe reference

2022-07-21 Thread Anthony PERARD via groups.io
On Wed, Jul 20, 2022 at 02:58:26PM -0700, Michael D Kinney wrote: > XenTimerDxe has been removed from the OvmfPkg. Remove > file pattern for XenTimerDxe reviews from Maintainers.txt. > > Cc: Anthony Perard > Cc: Julien Grall > Cc: Andrew Fish > Cc: Leif Lindholm > Signed-off-by: Michael D Kin

Re: [edk2-devel] [PATCH v3 1/2] UefiPayloadPkg: Implement a new SerialPortLib instance

2022-07-21 Thread Ni, Ray
Please try to not use AllocatePool in this library because in early part of DxeMain, the memory service may not be available. You could use a C array with maximum maybe 16 elements. Then the SerialPortLib may only support up to 16 serial ports. But I think that should be enough. Thanks, Ray > --

[edk2-devel] [PATCH v3 2/2] UefiPayloadPkg: Allow DxeMain.inf to consume the new SerialPortLib

2022-07-21 Thread kavya
Let DxeMain.inf consume new SerialPortLib to support multiple channel debug message on early DXE. Cc: Guo Dong Cc: Ray Ni Cc: Sean Rhodes Cc: Gua Guo Signed-off-by: Kavya --- UefiPayloadPkg/UefiPayloadPkg.dsc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UefiPayloadPkg/UefiPayloadPkg

[edk2-devel] [PATCH v3 1/2] UefiPayloadPkg: Implement a new SerialPortLib instance

2022-07-21 Thread kavya
Add new Serial port library instance that consumes the HOB defined in MdeModulePkg/Include/UniversalPayload/SerialPortInfo.h to support multiple UART's. Cc: Guo Dong Cc: Ray Ni Cc: Sean Rhodes Cc: Gua Guo Signed-off-by: Kavya --- UefiPayloadPkg/Library/BaseSerialPortLibHob/BaseSerialPortLibH

Re: [edk2-devel] [PATCH v3 00/22] Add Raw algorithm support using Arm FW-TRNG interface

2022-07-21 Thread PierreGondois
Hi Jiewen, On 7/20/22 18:44, Yao, Jiewen wrote: Hey This patch add dependency that SecurityPkg will depend on ArmPkg. I am not sure it is good idea. As alternative, why not put all those to ArmPkg? Then you don’t need change the package dependency. I am not sure I understood what you want to