Re: [edk2-devel] [edk2-platforms PATCH 3/8] Silicon/Marvell: Add instance of MpInitLib

2021-12-15 Thread Marcin Wojtas
śr., 15 gru 2021 o 01:03 Rebecca Cran napisał(a): > > MpInitLib is now required for all users of ArmPkg/Drivers/CpuDxe. Add > ArmPkg/Library/MpInitLib/DxeMpInitLib.inf . > > Signed-off-by: Rebecca Cran > --- > Silicon/Marvell/Armada7k8k/Armada7k8k.dsc.inc | 1 + > 1 file changed, 1 insertion(+)

Re: [edk2-devel] [PATCH v4 0/5] OvmfPkg: rework TPM configuration.

2021-12-15 Thread Gerd Hoffmann
Hi, > Ah, got it. I am just wondering since I did not see new CI opened for this. Yes, it's an old branch and old pull request with fresh updates pushed (which re-runs the CI). take care, Gerd -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply

[edk2-devel] [PATCH] MdeModulePkg: Moving UFS HCS.DP checking out of UfsExecUicCommands() to fix timing problem

2021-12-15 Thread VincentX Ke
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3776 Moving UFS HCS.DP (Device Attached) checking under UfsDeviceDetection() to fix timing problem. Cc: Hao A Wu Cc: Ray Ni Cc: Ian Chiu Cc: Maggie Chu Signed-off-by: VincentX Ke --- MdeModulePkg/Bus/Ufs/UfsBlockIoPei/UfsHci.c | 51 +++

Re: [edk2-devel] [PATCH V4 14/31] OvmfPkg: Add IntelTdx.h in OvmfPkg/Include/IndustryStandard

2021-12-15 Thread Min Xu
Hi > > Add pointer to the specs here? > Sure, spec links will be added. Thanks for reminder. Min -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#84963): https://edk2.groups.io/g/devel/message/84963 Mute This Topic: https://groups.io/mt/

Re: [edk2-devel] [PATCH v4 0/5] OvmfPkg: rework TPM configuration.

2021-12-15 Thread Yao, Jiewen
Ah, got it. I am just wondering since I did not see new CI opened for this. Anyway, good enough. Thank you very much to confirm that. Thank you Yao Jiewen > -Original Message- > From: kra...@redhat.com > Sent: Thursday, December 16, 2021 1:58 PM > To: Yao, Jiewen > Cc: devel@edk2.group

Re: [edk2-devel] [PATCH v4 0/5] OvmfPkg: rework TPM configuration.

2021-12-15 Thread Gerd Hoffmann
On Wed, Dec 15, 2021 at 12:09:10PM +, Yao, Jiewen wrote: > Acked-by: Jiewen Yao > > A quick question: Have you run run CI for this patch by yourself? Yep, usually I open a draft pull request for the snake of running CI (this one is #2099). take care, Gerd -=-=-=-=-=-=-=-=-=-=-=- Groups

[edk2-devel] [PATCH] MdeModulePkg: Retry up to 5 times while sending UFS DME request to fix timing problem.

2021-12-15 Thread VincentX Ke
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3775 Refactoring UFS DME request sending function and retry up to 5 times. Cc: Hao A Wu Cc: Ray Ni Cc: Ian Chiu Cc: Maggie Chu Signed-off-by: VincentX Ke --- MdeModulePkg/Bus/Ufs/UfsBlockIoPei/UfsHci.c | 306 +++- 1 file cha

Re: [edk2-devel] [PATCH 02/10] EmbeddedPkg/PrePiLib: Update PrePiLib

2021-12-15 Thread Min Xu
On December 14, 2021 10:01 PM, Ard Biesheuvel wrote: > On Tue, 14 Dec 2021 at 14:42, Min Xu wrote: > > --- a/EmbeddedPkg/Library/PrePiLib/FwVol.c > > +++ b/EmbeddedPkg/Library/PrePiLib/FwVol.c > > @@ -335,7 +335,7 @@ FfsProcessSection ( > > > > Status = UefiDecompressGetInfo ( > >

[edk2-devel] [PATCH v2 3/3] ArmPkg/ProcessorSubClassDxe: Get serial and part number from OemMiscLib

2021-12-15 Thread Nhi Pham via groups.io
Currently, the serial and part number of a processor are filled with fixed PCDs. However, they may be updated dynamically according to the information being passed from a the pre-UEFI firmware during booting. So, this patch is to support updating these string fields from OemMiscLib if the PCDs are

[edk2-devel] [PATCH v2 2/3] ArmPkg/SmbiosMiscDxe: Get full SMBIOS strings from OemMiscLib

2021-12-15 Thread Nhi Pham via groups.io
Typically, the information of the SMBIOS type 1/2/3 is fetched from an FRU device during UEFI booting intead of fixed PCDs. Therefore, this patch is to add more HII string fields in the OemMiscLib and support updating these SMBIOS types with the strings provided by the OemMiscLib if the PCDs are em

[edk2-devel] [PATCH v2 1/3] ArmPkg/SmbiosMiscDxe: Remove duplicate HII string definition

2021-12-15 Thread Nhi Pham via groups.io
This patch removes duplicate HII string definition in the MiscSystemManufacturer.uni. Cc: Leif Lindholm Cc: Ard Biesheuvel Cc: Rebecca Cran Signed-off-by: Nhi Pham Reviewed-by: Sami Mujawar --- ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type01/MiscSystemManufacturer.uni | 1 - 1 file changed, 1 d

[edk2-devel] [PATCH v2 0/3] ArmPkg/SMBIOS: Update HII string settings for SMBIOS

2021-12-15 Thread Nhi Pham via groups.io
This patchset leverages the OemUpdateSmbiosInfo API functions from OemMiscLib for updating some HII string fields in the SMBIOS Type 1/2/4 because they may be updated dynamically during UEFI booting with the data being passed from the pre-UEFI firmware. Cc: Leif Lindholm Cc: Ard Biesheuvel Cc: R

Re: [edk2-devel] [PATCH 0/3] ArmPkg/SMBIOS: Update HII string settings for SMBIOS

2021-12-15 Thread Nhi Pham via groups.io
Hi Sami, On 16/12/2021 00:06, Sami Mujawar wrote: Hi Nhi, These patches do not cleanly apply. I guess you would need to run uncrustify for these patches. Can you check, please? Sure, will fix all coding style issues found by uncrustify and change to use FixedPcdGetPtr() instead of PcdGetP

[edk2-devel] [PATCH v3 4/4] ArmPkg: Update Drivers/CpuDxe to initialize MpInitLib

2021-12-15 Thread Rebecca Cran
Update Drivers/CpuDxe to initialize MpInitLib, which enables EFI_MP_SERVICES_PROTOCOL support on AARCH64. Signed-off-by: Rebecca Cran --- ArmPkg/Drivers/CpuDxe/AArch64/Arch.c | 21 + ArmPkg/Drivers/CpuDxe/Arm/Arch.c | 21 + ArmPkg/Drivers/CpuDxe/CpuDxe.c | 2 + ArmPkg/Drivers/CpuDx

[edk2-devel] [PATCH v3 2/4] ArmPkg: Add Library/MpInitLib to support EFI_MP_SERVICES_PROTOCOL

2021-12-15 Thread Rebecca Cran
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. Minimal setup is done before calling the supplied procedure: for example the MMU and caches

[edk2-devel] [PATCH v3 3/4] ArmVirtPkg: Add MpInitLib, which is dependency for CpuDxe consumers

2021-12-15 Thread Rebecca Cran
ArmPkg/Drivers/CpuDxe consumers now require an instance of MpInitLib. Use ArmPkg/Library/MpInitLib/DxeMpInitLib.inf . Signed-off-by: Rebecca Cran --- ArmVirtPkg/ArmVirt.dsc.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ArmVirtPkg/ArmVirt.dsc.inc b/ArmVirtPkg/ArmVirt.dsc.inc index 5a

[edk2-devel] [PATCH v3 1/4] ArmPkg: Replace CoreId and ClusterId with Mpidr in ARM_CORE_INFO struct

2021-12-15 Thread Rebecca Cran
Remove the ClusterId and CoreId fields in the ARM_CORE_INFO structure in favor of a new Mpidr field. Update code in ArmPlatformPkg/PrePeiCore/MainMPCore and ArmPlatformPkg/PrePi/MainMPCore.c to use the new field and call new macros GET_MPIDR_AFF0 and GET_MPIDR_AFF1 instead. Signed-off-by: Rebecca

[edk2-devel] [PATCH v3 0/4] ArmPkg,ArmVirtPkg: Add support EFI_MP_SERVICES_PROTOCOL on AARCH64

2021-12-15 Thread Rebecca Cran
Patch 1/4 is the start of addressing the issue that the Aff0 field of the MPIDR is no longer guaranteed to be the core, and should be referred to in a more generic way: for example it could be the thread, with Aff1 being the core and Aff2 the cluster. Clearly much more work is needed to fully remo

Re: [edk2-devel] [PATCH 03/10] EmbeddedPkg/MemoryAllocationLib: Add null stub for AllocateCopyPool

2021-12-15 Thread Min Xu
On December 14, 2021 9:59 PM, Ard Biesheuvel wrote: > On Tue, 14 Dec 2021 at 14:42, Min Xu wrote: > > > > RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429 > > > > This function is a null stub to make the build success. > > > > --- > > .../MemoryAllocationLib.c | 28 +++

回复: [edk2-devel] [PATCH v2 0/2] Update brotli to the latest commit

2021-12-15 Thread gaoliming
That’s great. Reviewed-by: Liming Gao 发件人: devel@edk2.groups.io 代表 Pedro Falcato 发送时间: 2021年12月15日 18:18 收件人: edk2-devel-groups-io ; Liming Gao 主题: Re: [edk2-devel] [PATCH v2 0/2] Update brotli to the latest commit Liming, Yes, yes it does. No need to turn off Werror now. Thanks

Re: [edk2-devel] [PATCH v2 2/2] ArmPkg: Add Library/MpInitLib to support EFI_MP_SERVICES_PROTOCOL

2021-12-15 Thread Rebecca Cran
I figured it out: it didn't like the generic wording "Component description file". -- Rebecca Cran On 12/15/21 2:26 PM, Rebecca Cran via groups.io wrote: On 12/15/21 10:46 AM, Rebecca Cran wrote: diff --git a/ArmPkg/Library/MpInitLib/DxeMpInitLib.inf b/ArmPkg/Library/MpInitLib/DxeMpInitLib

Re: [edk2-devel][edk2-platforms][PATCH V2 1/1] Platform/Intel/Readme : Fix platform list

2021-12-15 Thread Nate DeSimone
Reviewed-by: Nate DeSimone -Original Message- From: devel@edk2.groups.io On Behalf Of Oram, Isaac W Sent: Wednesday, December 15, 2021 3:59 PM To: devel@edk2.groups.io Cc: Oram, Isaac W ; Desimone, Nathaniel L ; Chaganty, Rangasai V ; Chiu, Chasel Subject: [edk2-devel][edk2-platforms]

[edk2-devel][edk2-platforms][PATCH V2 1/1] Platform/Intel/Readme : Fix platform list

2021-12-15 Thread Oram, Isaac W
V1: The list of WhiskeyLake and Whitley boards got confused at some earlier merge Untabified V2: Moved JunctionCity, MtOlympus, and TiogaPass into an OCP section which fixed a table format issue Fixed .md format issue where line wasn't made bold because of space Cc: Nate DeSimone Cc: Sai Chagant

Re: [edk2-devel] [edk2-platforms PATCH] Platform/RaspberryPi: Fix miniuart base address and length

2021-12-15 Thread Jeremy Linton
Hi, On 12/14/21 16:49, Adrien Thierry wrote: The Raspberry Pi support in edk2-platforms, including ACPI, is a direct ancestor of the original ms-iot tree (https://github.com/ms-iot/RPi-UEFI, by way of https://github.com/andreiw/RaspberryPiPkg). The way the miniUART is described in ACPI came fr

Re: [edk2-devel] [edk2-wiki][PATCH v1 1/1] Add code formatting to development process instructions

2021-12-15 Thread Michael D Kinney
Pushed 514b20ed9319b66854fbcc43d21d079bf968042f Mike > -Original Message- > From: Kinney, Michael D > Sent: Wednesday, December 15, 2021 2:38 PM > To: michael.kuba...@outlook.com; devel@edk2.groups.io; Kinney, Michael D > > Cc: Andrew Fish ; Leif Lindholm ; Gao, > Liming > Subject: R

Re: [edk2-devel] [edk2-wiki][PATCH v1 1/1] Add code formatting to development process instructions

2021-12-15 Thread Michael D Kinney
Reviewed-by: Michael D Kinney > -Original Message- > From: michael.kuba...@outlook.com > Sent: Tuesday, December 14, 2021 7:47 AM > To: devel@edk2.groups.io > Cc: Andrew Fish ; Leif Lindholm ; Kinney, > Michael D ; Gao, > Liming > Subject: [edk2-wiki][PATCH v1 1/1] Add code formatting

Re: [edk2-devel][edk2-platforms][PATCH V1 1/1] Platform/Intel/Readme : Fix platform list

2021-12-15 Thread Nate DeSimone
Actually... there are still a few things messed up. 1. There are two copies of PurleyOpenBoardPkg in the tree now 2. The table of platforms contains Markdown syntax errors now 3. There is no manufacturer listed for Junction City For these reasons, I rescind my previous reviewed-by. Thanks, Nate

Re: [edk2-devel][edk2-platforms][PATCH V1 1/1] Platform/Intel/Readme : Fix platform list

2021-12-15 Thread Nate DeSimone
Hi Isaac, Please correct the From: field. With that change... Reviewed-by: Nate DeSimone -Original Message- From: Oram, Isaac W Sent: Tuesday, December 14, 2021 1:57 PM To: devel@edk2.groups.io Cc: manickavasakam karpagavinayagam via groups.io ; Desimone, Nathaniel L ; Chaganty, Ran

Re: [edk2-devel] [PATCH v2 2/2] ArmPkg: Add Library/MpInitLib to support EFI_MP_SERVICES_PROTOCOL

2021-12-15 Thread Rebecca Cran
On 12/15/21 10:46 AM, Rebecca Cran wrote: diff --git a/ArmPkg/Library/MpInitLib/DxeMpInitLib.inf b/ArmPkg/Library/MpInitLib/DxeMpInitLib.inf new file mode 100644 index ..2275b6cca33a --- /dev/null +++ b/ArmPkg/Library/MpInitLib/DxeMpInitLib.inf @@ -0,0 +1,53 @@ +#/** @file +# +# Comp

Re: [edk2-devel] [PATCH v2 1/2] ArmPkg: Replace CoreId and ClusterId with Mpidr in ARM_CORE_INFO struct

2021-12-15 Thread Rebecca Cran
On 12/15/21 10:53 AM, Ard Biesheuvel wrote: On Wed, 15 Dec 2021 at 18:46, Rebecca Cran wrote: #define ARM_CORE_MASK ARM_CORE_AFF0 #define ARM_CLUSTER_MASK ARM_CORE_AFF1 -#define GET_CORE_ID(MpId)((MpId) & ARM_CORE_MASK) -#define GET_CLUSTER_ID(MpId) (((MpId) & ARM_C

Re: [edk2-devel] [PATCH 3/3] ArmPkg/ProcessorSubClassDxe: Get serial and part number from OemMiscLib

2021-12-15 Thread Sami Mujawar
Hi Nhi, I have a minor suggestion to use FixedPcdGetPtr(), other than that this patch looks good to me. Reviewed-by: Sami Mujawar Regards, Sami Mujawar On 01/12/2021 04:10 AM, Nhi Pham via groups.io wrote: Currently, the serial and part number of a processor are filled with fixed PCDs. Ho

Re: [edk2-devel] [PATCH v2 2/2] ArmPkg: Add Library/MpInitLib to support EFI_MP_SERVICES_PROTOCOL

2021-12-15 Thread Rebecca Cran
On 12/15/21 10:55 AM, Ard Biesheuvel wrote: Perhaps I misunderstood your question about splitting up this patch, as surely, adding a completely new library can be broken out into a separate one? Oh, of course it can! I just need to also split out the change to CpuDxe.inf. -- Rebecca Cran

Re: [edk2-devel] [PATCH v2 2/2] ArmPkg: Add Library/MpInitLib to support EFI_MP_SERVICES_PROTOCOL

2021-12-15 Thread Ard Biesheuvel
Hi Rebecca, On Wed, 15 Dec 2021 at 18:47, 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. > > Minimal setup

Re: [edk2-devel] [PATCH v2 1/2] ArmPkg: Replace CoreId and ClusterId with Mpidr in ARM_CORE_INFO struct

2021-12-15 Thread Ard Biesheuvel
Hi Rebecca, Some nits below. On Wed, 15 Dec 2021 at 18:46, Rebecca Cran wrote: > > Remove the ClusterId and CoreId fields in the ARM_CORE_INFO structure in > favor of a new Mpidr field. Update code in > ArmPlatformPkg/PrePeiCore/MainMPCore and ArmPlatformPkg/PrePi/MainMPCore.c > to use the new f

[edk2-devel] [PATCH v2 2/2] ArmPkg: Add Library/MpInitLib to support EFI_MP_SERVICES_PROTOCOL

2021-12-15 Thread Rebecca Cran
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. Minimal setup is done before calling the supplied procedure: for example the MMU and caches

[edk2-devel] [PATCH v2 1/2] ArmPkg: Replace CoreId and ClusterId with Mpidr in ARM_CORE_INFO struct

2021-12-15 Thread Rebecca Cran
Remove the ClusterId and CoreId fields in the ARM_CORE_INFO structure in favor of a new Mpidr field. Update code in ArmPlatformPkg/PrePeiCore/MainMPCore and ArmPlatformPkg/PrePi/MainMPCore.c to use the new field and call new macros GET_MPIDR_AFF0 and GET_MPIDR_AFF1 instead. Signed-off-by: Rebecca

[edk2-devel] [PATCH v2 0/2] ArmPkg,ArmVirtPkg: Add support EFI_MP_SERVICES_PROTOCOL on AARCH64

2021-12-15 Thread Rebecca Cran
ArmPkg: Add Library/MpInitLib to support EFI_MP_SERVICES_PROTOCOL Changes from v1 to v2: Mask off the non-affinity bits of the MPIDR, and since cluster 0/core 0 is 0x0 set the end of list value to MAX_UINT32. Other changes based on Sami's feedback. Rebecca Cran (2): ArmPkg: Replace CoreId

Re: [edk2-devel] [PATCH v4 3/3] Silicon/ARM/NeoverseN1Soc: Remove PciExpressLib use PciSegmentLib instead

2021-12-15 Thread PierreGondois
Hi Khasim, Thanks for the new version. I think there is only the 'Change-Id' that should be removed in the commit message. With that change, for this patch: Reviewed-by: Pierre Gondois Regards On 12/14/21 8:43 PM, Khasim Mohammed via groups.io wrote: > The patch removes PciExpressLib impleme

Re: [edk2-devel] [PATCH v4 2/3] Silicon/ARM/NeoverseN1Soc: Add CCIX root complex support

2021-12-15 Thread PierreGondois
Hi Khassim, Thanks for the new serie. I have some comments about the PCDs: On 12/14/21 8:43 PM, Khasim Mohammed via groups.io wrote: > This patch enables CCIX root complex support by updating > the root complex node info in PciHostBridge library. > The corresponding PCDs are updated. > > Change-

Re: [edk2-devel] [PATCH v4 1/3] Silicon/ARM/NeoverseN1Soc: Port PCI Segment Library

2021-12-15 Thread PierreGondois
Hi Khassim, Thanks for the new serie. I have some comments: On 12/14/21 8:43 PM, Khasim Mohammed via groups.io wrote: > The BasePCISegment Library in MdePkg doesn't allow configuring > multiple segments required for PCIe and CCIX root port > enumeration. Therefore, a custom PCI Segment library i

Re: [edk2-devel] [PATCH 2/2] ArmPkg: Add Library/MpInitLib to support EFI_MP_SERVICES_PROTOCOL

2021-12-15 Thread Ard Biesheuvel
On Wed, 15 Dec 2021 at 18:18, Rebecca Cran wrote: > > Hi Sami, > > > I've been looking at this again to make sure I've addressed all the issues > before sending out a v2 patch series. I'm stuck on one point though: I'm not > sure how it can be split into 2-3 patches without breaking bisecting. T

[edk2-devel] [PATCH v1 9/9] ShellPkg: Add validator help string

2021-12-15 Thread Chris Jones
Bugzilla: 3773 (https://bugzilla.tianocore.org/show_bug.cgi?id=3773) Amend the help string to explain the use of the validator option. Signed-off-by: Chris Jones --- ShellPkg/Application/AcpiViewApp/AcpiViewApp.uni | 18 +- ShellPkg/Library/UefiShell

[edk2-devel] [PATCH v1 8/9] ShellPkg: Rewrite SBBR validation

2021-12-15 Thread Chris Jones
Bugzilla: 3773 (https://bugzilla.tianocore.org/show_bug.cgi?id=3773) Rewrite SBBR validation into the validator framework. This decouples the SBBR validations from the internal workings of the Acpiview application. Signed-off-by: Chris Jones --- ShellPkg/Library/UefiShellAcpiViewCommandLib/Arm/

[edk2-devel] [PATCH v1 7/9] ShellPkg: Add installed tables to parser collection

2021-12-15 Thread Chris Jones
Bugzilla: 3773 (https://bugzilla.tianocore.org/show_bug.cgi?id=3773) Add a new META_DATA_TYPE, "MetaDataInstalledTables" to store the signatures from tables that have been successfully installed. This is to allow validation of mandatory ACPI tables that are specified in the Arm SBBR specification.

[edk2-devel] [PATCH v1 6/9] ShellPkg: Add processor ID cross table validation

2021-12-15 Thread Chris Jones
Bugzilla: 3773 (https://bugzilla.tianocore.org/show_bug.cgi?id=3773) Add processor ID cross table validation to the AcpiView global validator. This validation retrieves MADT and PPTT processor data from the ACPI data store and then compares the two to ensure that all PPTT processor ID's are also f

[edk2-devel] [PATCH v1 5/9] ShellPkg: Store MADT and PPTT processor data

2021-12-15 Thread Chris Jones
Bugzilla: 3773 (https://bugzilla.tianocore.org/show_bug.cgi?id=3773) Store processor data from the MADT and PPTT ACPI tables so that it can be used for processor ID validation. Signed-off-by: Chris Jones --- ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Madt/MadtParser.c | 23 ++

Re: [edk2-devel] [PATCH 2/3] ArmPkg/SmbiosMiscDxe: Get full SMBIOS strings from OemMiscLib

2021-12-15 Thread Sami Mujawar
Hi Nhi, Other than the code style issue (which I believe uncrustify will complain about), this patch looks good to me. With that fixed. Reviewed-by: Sami Mujawar Regards, Sami Mujawar On 01/12/2021 04:10 AM, Nhi Pham via groups.io wrote: Typically, the information of the SMBIOS type 1/2

[edk2-devel] [PATCH v1 4/9] ShellPkg: Add ACPI data store

2021-12-15 Thread Chris Jones
Bugzilla: 3773 (https://bugzilla.tianocore.org/show_bug.cgi?id=3773) Add a store for useful ACPI data that can be used in validation. This data will be collected from the parsers, stored in the data store and then can be accessed by validators once all parsing is complete. The data is stored dyna

[edk2-devel] [PATCH v1 3/9] ShellPkg: Add post parsing validation framework

2021-12-15 Thread Chris Jones
Bugzilla: 3773 (https://bugzilla.tianocore.org/show_bug.cgi?id=3773) Add the framework for running generic post parsing validations. Included is an example ACPI validator that will run validations on ACPI tables that are applicable to all platforms. Currently no validations are implemented in this

[edk2-devel] [PATCH v1 2/9] ShellPkg: Replace SBBR validation option with generic one

2021-12-15 Thread Chris Jones
Bugzilla: 3773 (https://bugzilla.tianocore.org/show_bug.cgi?id=3773) To facilitate the change to using generic validators, replace old SBBR mandatory table validation config options with a more generic validator config option. As generic validators have not been implemented yet, simply assert if

[edk2-devel] [PATCH v1 1/9] ShellPkg: Add AcpiView validators readme

2021-12-15 Thread Chris Jones
Bugzilla: 3773 (https://bugzilla.tianocore.org/show_bug.cgi?id=3773) Add readme to explain the function and use of the new AcpiView validator framework. Signed-off-by: Chris Jones --- ShellPkg/Library/UefiShellAcpiViewCommandLib/Validators/Readme.md | 113 1 file changed,

Re: [edk2-devel] [PATCH 2/2] ArmPkg: Add Library/MpInitLib to support EFI_MP_SERVICES_PROTOCOL

2021-12-15 Thread Rebecca Cran
Hi Sami, I've been looking at this again to make sure I've addressed all the issues before sending out a v2 patch series. I'm stuck on one point though: I'm not sure how it can be split into 2-3 patches without breaking bisecting. The CpuDxe and MpInitLib changes introduce a dependency on Mp

Re: [edk2-devel] CMOS needed for Cloud Hypervisor

2021-12-15 Thread Yao, Jiewen
Acked-by: Jiewen Yao Thank you Ard, for the quick response. I will reply on you to do the revert. Appreciate your help. Thank you Yao Jiewen > -Original Message- > From: devel@edk2.groups.io On Behalf Of Ard > Biesheuvel > Sent: Thursday, December 16, 2021 12:50 AM > To: edk2-devel-gr

Re: [edk2-devel] [PATCH 1/3] ArmPkg/SmbiosMiscDxe: Remove duplicate HII string definition

2021-12-15 Thread Sami Mujawar
Hi Nhi, Thank you for this patch. This change looks good to me. Reviewed-by: Sami Mujawar Regards, Sami Mujawar On 01/12/2021 04:10 AM, Nhi Pham via groups.io wrote: This patch removes duplicate HII string definition in the MiscSystemManufacturer.uni. Cc: Leif Lindholm Cc: Ard Biesheuvel

Re: [edk2-devel] [PATCH 0/3] ArmPkg/SMBIOS: Update HII string settings for SMBIOS

2021-12-15 Thread Sami Mujawar
Hi Nhi, These patches do not cleanly apply. I guess you would need to run uncrustify for these patches. Can you check, please? Regards, Sami Mujawar On 01/12/2021 04:10 AM, Nhi Pham via groups.io wrote: This patchset leverages the OemUpdateSmbiosInfo API functions from OemMiscLib for upda

Re: [edk2-devel] CMOS needed for Cloud Hypervisor

2021-12-15 Thread Ard Biesheuvel
On Wed, 15 Dec 2021 at 17:37, Boeuf, Sebastien wrote: > > Hi Gerd, > > Your patch 41d8bb30386ceab55787fc9f5aac6434e2493e27 removing the CMOS > support for getting high mem and low mem is breaking the OVMF support for > Cloud Hypervisor as we are still providing this information through that > mec

Re: [edk2-devel] [PATCH 0/3] ArmPkg/SMBIOS: Update HII string settings for SMBIOS

2021-12-15 Thread Rebecca Cran
For the series: Reviewed-by: Rebecca Cran -- Rebecca Cran On 11/30/21 9:10 PM, Nhi Pham via groups.io wrote: This patchset leverages the OemUpdateSmbiosInfo API functions from OemMiscLib for updating some HII string fields in the SMBIOS Type 1/2/4 because they may be updated dynamically du

[edk2-devel] CMOS needed for Cloud Hypervisor

2021-12-15 Thread Boeuf, Sebastien
Hi Gerd, Your patch 41d8bb30386ceab55787fc9f5aac6434e2493e27 removing the CMOS support for getting high mem and low mem is breaking the OVMF support for Cloud Hypervisor as we are still providing this information through that mechanism. Do you think it would be acceptable to revert it in order t

Re: [edk2-devel] [PATCH v4 1/5] OvmfPkg: remove unused TPM options from MicrovmX64.dsc

2021-12-15 Thread Ard Biesheuvel
On Wed, 15 Dec 2021 at 17:04, Ard Biesheuvel wrote: > > On Wed, 15 Dec 2021 at 17:02, Philippe Mathieu-Daudé > wrote: > > > > On 12/15/21 12:39, Gerd Hoffmann wrote: > > > Signed-off-by: Gerd Hoffmann > > > --- > > > OvmfPkg/Microvm/MicrovmX64.dsc | 2 -- > > > 1 file changed, 2 deletions(-) >

Re: [edk2-devel] [PATCH v4 1/5] OvmfPkg: remove unused TPM options from MicrovmX64.dsc

2021-12-15 Thread Ard Biesheuvel
On Wed, 15 Dec 2021 at 17:02, Philippe Mathieu-Daudé wrote: > > On 12/15/21 12:39, Gerd Hoffmann wrote: > > Signed-off-by: Gerd Hoffmann > > --- > > OvmfPkg/Microvm/MicrovmX64.dsc | 2 -- > > 1 file changed, 2 deletions(-) > > Reviewed-by: Philippe Mathieu-Daude > Thanks for the ack but I alre

Re: [edk2-devel] [PATCH edk2 v1 3/3] StandaloneMmPkg: Fix check buffer address failed issue from TF-A

2021-12-15 Thread Ming Huang
On 12/9/21 1:46 AM, Omkar Anand Kulkarni wrote: > Hi Ming, > > Thanks for this patch. This patch helps to resolve Standalone MM issue while > exercising RAS use case. > Few comments mentioned inline. > > - Omkar > > > On 10/15/21 2:39 PM, Ming Huang via groups.io wrote: >> There are two sc

Re: [edk2-devel] [PATCH v4 0/5] OvmfPkg: rework TPM configuration.

2021-12-15 Thread Yao, Jiewen
Acked-by: Jiewen Yao A quick question: Have you run run CI for this patch by yourself? Thank you Yao Jiewen > -Original Message- > From: devel@edk2.groups.io On Behalf Of Gerd > Hoffmann > Sent: Wednesday, December 15, 2021 7:39 PM > To: devel@edk2.groups.io > Cc: Tom Lendacky ; James

[edk2-devel] [PATCH v4 5/5] OvmfPkg: rework TPM configuration

2021-12-15 Thread Gerd Hoffmann
Rename TPM_ENABLE to TPM2_ENABLE so naming is in line with the ArmVirtPkg config option name. Add separate TPM1_ENABLE option for TPM 1.2 support. Signed-off-by: Gerd Hoffmann Tested-by: Stefan Berger --- OvmfPkg/OvmfTpmComponentsDxe.dsc.inc | 4 +++- OvmfPkg/OvmfTpmComponents

[edk2-devel] [PATCH v4 3/5] OvmfPkg: drop TPM_CONFIG_ENABLE

2021-12-15 Thread Gerd Hoffmann
Drop TPM_CONFIG_ENABLE config option. Including TPM support in the build without also including the TPM configuration menu is not useful. Suggested-by: Stefan Berger Signed-off-by: Gerd Hoffmann Tested-by: Stefan Berger --- OvmfPkg/OvmfTpmComponentsDxe.dsc.inc | 2 -- OvmfPkg

[edk2-devel] [PATCH v4 4/5] OvmfPkg: create Tcg12ConfigPei.inf

2021-12-15 Thread Gerd Hoffmann
Split Tcg2ConfigPei.inf into two variants: Tcg12ConfigPei.inf with TPM 1.2 support included and Tcg2ConfigPei.inf supporting TPM 2.0 only. This allows x86 builds to choose whenever TPM 1.2 support should be included or not by picking the one or the other inf file. Switch x86 builds to Tcg12ConfigP

[edk2-devel] [PATCH v4 2/5] OvmfPkg: move tcg configuration to dsc and fdf include files

2021-12-15 Thread Gerd Hoffmann
With this in place the tpm configuration is not duplicated for each of our four ovmf config variants (ia32, ia32x64, x64, amdsev) and it is easier to keep them all in sync when updating the tpm configuration. No functional change. Signed-off-by: Gerd Hoffmann Reviewed-by: Stefan Berger --- Ovm

[edk2-devel] [PATCH v4 0/5] OvmfPkg: rework TPM configuration.

2021-12-15 Thread Gerd Hoffmann
Allows to enable/disable TPM 1.2 support in OVMF. Allows to enable SHA-1 support for TPM hashing. v4: - rebase to latest master. v3: - drop config menu for tpm 1.2 (needs other fixes first) - update some places missed. - add microvm cleanup. - add review/test tags. v2: - drop TPM_CONFIG_ENAB

[edk2-devel] [PATCH v4 1/5] OvmfPkg: remove unused TPM options from MicrovmX64.dsc

2021-12-15 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- OvmfPkg/Microvm/MicrovmX64.dsc | 2 -- 1 file changed, 2 deletions(-) diff --git a/OvmfPkg/Microvm/MicrovmX64.dsc b/OvmfPkg/Microvm/MicrovmX64.dsc index bb256fd3c640..1c2e600febee 100644 --- a/OvmfPkg/Microvm/MicrovmX64.dsc +++ b/OvmfPkg/Microvm/MicrovmX64.dsc @@

Re: [edk2-devel] [PATCH 00/10] Introduce TDVF Config-B (basic) in OvmfPkg

2021-12-15 Thread Gerd Hoffmann
Hi, > Patch 2/3: > This patch-set leverage the PrePiLib and MemoryAllocationLib in > EmbeddedPkg. Some new funtions are added to meet the Tdvf Config-B > requirement. Care to explain why this is needed? How is tdvf different from other pei-less platforms? Could we just place DXEFV directly in

Re: [edk2-devel] [PATCH 08/10] OvmfPkg: Update Sec to support Tdvf Config-B

2021-12-15 Thread Gerd Hoffmann
On Tue, Dec 14, 2021 at 09:41:24PM +0800, Min Xu wrote: > RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429 > > Tdvf Config-B skip PEI phase to reduce attack surface. So instead of > jumping to SecStartupPhase2 (), TdxStartup () is called. This function > brings up Tdx guest from SEC phase

Re: [edk2-devel] [PATCH v2 0/2] Update brotli to the latest commit

2021-12-15 Thread Pedro Falcato
Liming, Yes, yes it does. No need to turn off Werror now. Thanks, Pedro On Wed, 15 Dec 2021, 05:36 gaoliming, wrote: > Pedro: > Does Brotli fix GCC warning in the latest version? > > Thanks > Liming > > -邮件原件- > > 发件人: devel@edk2.groups.io 代表 Pedro Falcato > > 发送时间: 2021年12月8日 18:27

Re: [edk2-devel] [PATCH 06/10] OvmfPkg: Add TdxStartupLib

2021-12-15 Thread Gerd Hoffmann
Hi, > + PageTables = 0; > + if (FeaturePcdGet (PcdDxeIplBuildPageTables)) { Can this ever be false in a x64 build? > +EFI_STATUS > +FindDxeCore ( > + IN INTN FvInstance, > + IN OUT EFI_PEI_FILE_HANDLE *FileHandle > + ) > +{ > + if (FvInstance != -1) { > +

Re: [edk2-devel] [PATCH 05/10] OvmfPkg: Add SecPlatformLibQemuTdx

2021-12-15 Thread Gerd Hoffmann
Hi, > +#define FW_CFG_NX_STACK_ITEM"opt/ovmf/PcdSetNxForStack" Why this is needed? > +// > +// Values we program into the PM base address registers > +// > +#define PIIX4_PMBA_VALUE 0xB000 > +#define ICH9_PMBASE_VALUE 0x0600 They are in OvmfPkg/Include/OvmfPlatforms.h, no need to c

Re: [edk2-devel] [PATCH 01/10] OvmfPkg: Introduce IntelTdxX64 for TDVF Config-B

2021-12-15 Thread Gerd Hoffmann
Hi, > - Remove unnecessary drivers to reduce attack surface, such as >network stack. > + # > + # Defines for default states. These can be changed on the command line. > + # -D FLAG=VALUE > + # > + DEFINE SECURE_BOOT_ENABLE = FALSE > + DEFINE SMM_REQUIRE = FALSE > +

Re: [edk2-devel] [PATCH V4 31/31] OvmfPkg: Move LocalApicTimerDxe to UefiCpuPkg

2021-12-15 Thread Gerd Hoffmann
On Mon, Dec 13, 2021 at 08:57:02PM +0800, Min Xu wrote: > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3711 > > OvmfPkg.dec is removed from [Packages] because it doesn't depend > on OvmfPkg. LocalApicTimerDxe is moved to UefiCpuPkg. >if (mTimerNotifyFunction != NULL) { > -// > -

Re: [edk2-devel] [PATCH V4 30/31] OvmfPkg: Switch timer in build time for OvmfPkg

2021-12-15 Thread Gerd Hoffmann
On Mon, Dec 13, 2021 at 08:57:01PM +0800, Min Xu wrote: > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3711 > > Discussion in https://bugzilla.tianocore.org/show_bug.cgi?id=1496 shows > that 8254TimerDxe was not written for OVMF. It was moved over from > PcAtChipsetPkg to OvmfPkg in 2019. P

Re: [edk2-devel] [PATCH V4 29/31] UefiCpuPkg: Setting initial-count register as the last step

2021-12-15 Thread Gerd Hoffmann
On Mon, Dec 13, 2021 at 08:57:00PM +0800, Min Xu wrote: > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3711 > > Per SDM, changing the mode of APIC timer (from one-shot to periodic or > vice versa) by writing to the timer LVT entry does not start the timer. > To start the timer, it is necessa

Re: [edk2-devel] [PATCH V4 28/31] OvmfPkg: Rename XenTimerDxe to LocalApicTimerDxe

2021-12-15 Thread Gerd Hoffmann
On Mon, Dec 13, 2021 at 08:56:59PM +0800, Min Xu wrote: > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3711 > > XenTimerDxe is a local Apic timer driver and it has nothing to do > with Xen. So rename it to LocalApicTimerDxe. > > Cc: Ard Biesheuvel > Cc: Jordan Justen > Cc: Brijesh Singh

Re: [edk2-devel] [PATCH V4 27/31] OvmfPkg: Update IoMmuDxe to support TDX

2021-12-15 Thread Gerd Hoffmann
On Mon, Dec 13, 2021 at 08:56:58PM +0800, Min Xu wrote: > RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429 > > The IOMMU protocol driver provides capabilities to set a DMA access > attribute and methods to allocate, free, map and unmap the DMA memory > for the PCI Bus devices. > > The cur

Re: [edk2-devel] [PATCH V4 26/31] OvmfPkg/QemuFwCfgLib: Support Tdx in QemuFwCfgDxe

2021-12-15 Thread Gerd Hoffmann
On Mon, Dec 13, 2021 at 08:56:57PM +0800, Min Xu wrote: > RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429 > > In the previous QemuFwCfgDxe only SEV is supported. This commit > introduce TDX support in QemuFwCfgDxe. > > Cc: Ard Biesheuvel > Cc: Jordan Justen > Cc: Brijesh Singh > Cc: E

Re: [edk2-devel] [PATCH V4 25/31] OvmfPkg/BaseMemEncryptTdxLib: Add TDX helper library

2021-12-15 Thread Gerd Hoffmann
> +++ b/OvmfPkg/Library/BaseMemEncryptTdxLib/BaseMemoryEncryptionNull.c > @@ -0,0 +1,90 @@ > +/** @file > + > + Virtual Memory Management Services to set or clear the memory encryption > + > + Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved. > + Copyright (c) 2017, AMD Incorpor

Re: [edk2-devel] [PATCH V4 24/31] OvmfPkg: Add TdxDxe driver

2021-12-15 Thread Gerd Hoffmann
On Mon, Dec 13, 2021 at 08:56:55PM +0800, Min Xu wrote: > RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429 > > TdxDxe driver is dispatched early in DXE, due to being list in APRIORI. > This module is responsible for below features: > - Sets max logical cpus based on TDINFO > - Sets PCI P

Re: [edk2-devel] [PATCH V4 23/31] OvmfPkg: Update AcpiPlatformDxe to alter MADT table

2021-12-15 Thread Gerd Hoffmann
On Mon, Dec 13, 2021 at 08:56:54PM +0800, Min Xu wrote: > RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429 > > In TDX the guest firmware is designed to publish a multiprocessor-wakeup > structure to let the guest-bootstrap processor wake up guest-application > processors with a mailbox. Th

Re: [edk2-devel] [PATCH V4 22/31] OvmfPkg: Update PlatformPei to support TDX

2021-12-15 Thread Gerd Hoffmann
> +/** > + Check if it is Tdx guest > + > + @retvalTRUE It is Tdx guest > + @retvalFALSE It is not Tdx guest > +**/ > +BOOLEAN > +PlatformPeiIsTdxGuest ( > + VOID > + ) > +{ > + CONFIDENTIAL_COMPUTING_WORK_AREA_HEADER *CcWorkAreaHeader; > + > + CcWorkAreaHeader = (CONFIDENTIAL_CO

Re: [edk2-devel] [PATCH v1 2/2] ArmPkg: MmCommunicationDxe: Update MM communicate input arguments checks

2021-12-15 Thread Ard Biesheuvel
On Tue, 30 Nov 2021 at 01:39, Kun Qin wrote: > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3751 > > Current MM communicate routine from ArmPkg would conduct few steps before > proceeding with SMC calls. However, some inspection steps are different > from PI specification. > > This patch

Re: [edk2-devel] [PATCH edk2 v1 1/3] StandaloneMmPkg: Fix issue about SpPcpuSharedBufSize field

2021-12-15 Thread Ard Biesheuvel
(+ Masahisa, Masami) On Fri, 15 Oct 2021 at 11:07, Ming Huang wrote: > > TF-A: TrustedFirmware-A > SPM: Secure Partition Manager(MM) > > In TF-A, the name of this field is sp_shared_buf_size. This field is > the size of range for transmit data from TF-A to standaloneMM when > SPM enable. > > SpP

Re: [edk2-devel] [PATCH 0/3] ArmPkg/SMBIOS: Update HII string settings for SMBIOS

2021-12-15 Thread Ard Biesheuvel
On Wed, 1 Dec 2021 at 05:12, Nhi Pham via groups.io wrote: > > This patchset leverages the OemUpdateSmbiosInfo API functions from > OemMiscLib for updating some HII string fields in the SMBIOS Type 1/2/4 > because they may be updated dynamically during UEFI booting with the > data being passed fro

Re: [edk2-devel] [PATCH V4 21/31] UefiCpuPkg: Update AddressEncMask in CpuPageTable

2021-12-15 Thread Gerd Hoffmann
> @@ -357,6 +360,7 @@ GetPageTableEntry ( > >// 4k >L1PageTable = (UINT64 *)(UINTN)(L2PageTable[Index2] & ~AddressEncMask & > PAGING_4K_ADDRESS_MASK_64); > + >if ((L1PageTable[Index1] == 0) && (Address != 0)) { Hmm? With that dropped: Acked-by: Gerd Hoffmann take care, Gerd

Re: [edk2-devel] [PATCH V4 20/31] MdeModulePkg: Add PcdTdxSharedBitMask

2021-12-15 Thread Gerd Hoffmann
On Mon, Dec 13, 2021 at 08:56:51PM +0800, Min Xu wrote: > RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429 > > Guest Physical Address (GPA) space in Td guest is divided into private > and shared sub-spaces, determined by the SHARED bit of GPA. This PCD > holds the shared bit mask. Its defa

Re: [edk2-devel] [PATCH V4 18/31] OvmfPkg: Check Tdx in QemuFwCfgPei to avoid DMA operation

2021-12-15 Thread Gerd Hoffmann
On Mon, Dec 13, 2021 at 08:56:49PM +0800, Min Xu wrote: > RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429 > > If TDX is enabled then we do not support DMA operation in PEI phase. > This is mainly because DMA in TDX guest requires using bounce buffer > (which need to allocate dynamic memor

Re: [edk2-devel] [PATCH V4 17/31] OvmfPkg: Update Sec to support Tdx

2021-12-15 Thread Gerd Hoffmann
> +EFI_STATUS > +EFIAPI > +BspAcceptMemoryResourceRange ( > + IN EFI_PHYSICAL_ADDRESS PhysicalAddress, > + IN EFI_PHYSICAL_ADDRESS PhysicalEnd > + ) > +{ > + EFI_STATUS Status; > + UINT32 AcceptPageSize; > + UINT64 StartAddress1; > + UINT64 StartAddress2; > + UINT64 S

Re: [edk2-devel] [edk2-platforms PATCH 0/8] Update Arm platforms following addition of EFI_MP_SERVICES_PROTOCOL support in edk2

2021-12-15 Thread Ard Biesheuvel
On Wed, 15 Dec 2021 at 01:03, Rebecca Cran wrote: > > This patch series depends on the "Add EFI_MP_SERVICES_PROTOCOL support > for AARCH64" series which is in the process of being reviewed (I'm > sending a v2 soon). > > With the addition of EFI_MP_SERVICES_PROTOCOL support for Arm, consumers > of

Re: [edk2-devel] [PATCH] SecurityPkg: Debug trace package integration to enable debug message capture on all targets.

2021-12-15 Thread Yao, Jiewen
Thank you liming. Let’s move discussion to Bugzilla. From: devel@edk2.groups.io On Behalf Of gaoliming Sent: Wednesday, December 15, 2021 1:56 PM To: devel@edk2.groups.io; Yao, Jiewen ; Reji, RencyX Cc: Zhang, Qi1 ; Kumar, Rahul1 ; Wang, Jian J ; H, Krishnaprasad ; Patil, Subhashini ; Krish