Re: [edk2-devel] [PATCH 3/6] OvmfPkg/PlatformPei: unfix PcdPciExpressBaseAddress

2021-12-16 Thread Gerd Hoffmann
On Thu, Dec 16, 2021 at 01:50:18PM +0100, Ard Biesheuvel wrote: > On Thu, 16 Dec 2021 at 10:50, Gerd Hoffmann wrote: > > > > Will be set by FdtPciHostBridgeLib, so it can't be an fixed when we > > want use that library. > > > > Signed-off-by: Gerd Hoffmann > > What guarantees that these accesses

Re: [edk2-devel] [PATCH 0/5] OvmfPkg/QemuVideoDxe: pick up display resolution settings from the host

2021-12-16 Thread Gerd Hoffmann
Hi, > I don't think this is very idiomatic for EDK2, and I wonder if it > would be better to use [fixed] PCDs for build time configuration, and > perhaps expose the other width/height data (and the associated policy > of what takes precedence over what) via a protocol instead. Well, yes. Ideal

Re: [edk2-devel] [PATCH v3] OvmfPkg: Call PlatformInitializeConsole for GPU passthrough case

2021-12-16 Thread Gerd Hoffmann
On Thu, Dec 16, 2021 at 09:41:40PM -0500, Stefan Berger wrote: > For GPU passthrough support we have to initialize the console after > EfiBootManagerDispatchDeferredImages() has loaded ROMs, so call it after > this. This was the calling order before the TCG physical presence support > had to be mov

Re: [edk2-devel] [PATCH] OvmfPkg: Call PlatformInitializeConsole for GPU passthrough case

2021-12-16 Thread Gerd Hoffmann
Hi, > + // > + // GPU passthrough only allows console enablement after ROM image load > + // > + PlatformInitializeConsole ( > +XenDetected() ? gXenPlatformConsole : gPlatformConsole); > + AmdSev build breaks: /home/kraxel/projects/edk2/OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPla

Re: [edk2-devel] [PATCH] SecurityPkg: TPM must go to Idle state on CRB command completion

2021-12-16 Thread Rodrigo Gonzalez del Cueto
Ran CI on this version of the patch using a draft pull request: SecurityPkg: TPM must go to Idle state on CRB command completion by rodrigog-intel · Pull Request #2320 · tianocore/edk2 (github.com) ( https://github.com/tianocore/edk2/pull/2320 ) -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You rec

Re: [edk2-devel] [PATCH] SecurityPkg: Reallocate TPM Active PCRs based on platform support

2021-12-16 Thread Rodrigo Gonzalez del Cueto
Ran CI on this version of the patch using a draft pull request: SecurityPkg: Reallocate TPM Active PCRs based on platform support by rodrigog-intel · Pull Request #2322 · tianocore/edk2 (github.com) ( https://github.com/tianocore/edk2/pull/2322 ) -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You re

Re: [edk2-devel] [PATCH] SecurityPkg: Debug code to audit BIOS TPM extend operations

2021-12-16 Thread Rodrigo Gonzalez del Cueto
Ran CI on this version of the patch using a draft pull request: SecurityPkg: Debug code to audit BIOS TPM extend operations by rodrigog-intel · Pull Request #2321 · tianocore/edk2 (github.com) ( https://github.com/tianocore/edk2/pull/2321 ) -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive

Re: [edk2-devel] [PATCH] MdeModulePkg/ScsiDisk: Change TPL to NOTIFY

2021-12-16 Thread Zeng, Star
Jeff's statement about the TPLs in variable and PCD drivers seems correct, not sure the impact to change them. No good idea from me about the TPL change in ScsiDisk. 😊 Side question: Variable service is an arch service which should be ready at DXE phase, ScsiDisk is a driver model driver which

Re: [edk2-devel] [PATCH v8] IntelFsp2WrapperPkg : FSPM/S UPD data address based on Build Type

2021-12-16 Thread Zeng, Star
How about adding the minor comments like below? 😊 # # Non-0 means PcdFspmUpdDataAddress will be ignored, otherwise PcdFspmUpdDataAddress will be used. # gIntelFsp2WrapperTokenSpaceGuid.PcdFspmUpdDataAddress64|0x|UINT64|0x5002 # # Non-0 means PcdFspsUpdDataAddress will be ignored, othe

Re: [edk2-devel] [PATCH v8] IntelFsp2WrapperPkg : FSPM/S UPD data address based on Build Type

2021-12-16 Thread Chiu, Chasel
Thanks Ashraf! Reviewed-by: Chasel Chiu > -Original Message- > From: S, Ashraf Ali > Sent: Thursday, December 16, 2021 4:10 PM > To: devel@edk2.groups.io > Cc: S, Ashraf Ali ; Chiu, Chasel > ; > Desimone, Nathaniel L ; Zeng, Star > ; Kuo, Ted ; Duggapu, Chinni B > ; Chaganty, Rangas

[edk2-devel] [PATCH] SecurityPkg: Reallocate TPM Active PCRs based on platform support

2021-12-16 Thread Rodrigo Gonzalez del Cueto
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3515 In V4: Fixed patch format and uncrustify cleanup In V3: Cleaned up comments, debug prints and updated patch to use the new debug ENUM definitions. - Replaced EFI_D_INFO with DEBUG_INFO. - Replaced EFI_D_VERBOSE with DEBUG_VERBOSE. In V2:

[edk2-devel] [PATCH] SecurityPkg: TPM must go to Idle state on CRB command completion

2021-12-16 Thread Rodrigo Gonzalez del Cueto
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3463 In V2: Fixed patch format and uncrustify cleanup In V1: To follow the TCG CRB protocol specification, on every CRB TPM command completion the TPM should return to Idle state, regardless of the CRB Idle Bypass capability reported by the TPM

[edk2-devel] [PATCH] SecurityPkg: Debug code to audit BIOS TPM extend operations

2021-12-16 Thread Rodrigo Gonzalez del Cueto
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2858 In V2: Fixed patch format and uncrustify cleanup In V1: Add debug functionality to examine TPM extend operations performed by BIOS and inspect the PCR 00 value prior to any BIOS measurements. Signed-off-by: Rodrigo Gonzalez del Cueto Cc:

Re: [edk2-devel] [PATCH v3] OvmfPkg: Call PlatformInitializeConsole for GPU passthrough case

2021-12-16 Thread Yao, Jiewen
Thank you Stefan to fix this. Acked-by: Jiewen Yao > -Original Message- > From: devel@edk2.groups.io On Behalf Of Stefan > Berger > Sent: Friday, December 17, 2021 10:42 AM > To: devel@edk2.groups.io > Cc: marcandre.lur...@redhat.com; shivans...@gmail.com; Stefan Berger > ; Ard Biesheuv

Re: [edk2-devel] [PATCH v3] OvmfPkg: Call PlatformInitializeConsole for GPU passthrough case

2021-12-16 Thread Stefan Berger
v2 had lost the cc: list for some reason. I opened this PR: https://github.com/tianocore/edk2/pull/2319   Stefan On 12/16/21 21:41, Stefan Berger wrote: For GPU passthrough support we have to initialize the console after EfiBootManagerDispatchDeferredImages() has loaded ROMs, so call it after

[edk2-devel] [PATCH v3] OvmfPkg: Call PlatformInitializeConsole for GPU passthrough case

2021-12-16 Thread Stefan Berger
For GPU passthrough support we have to initialize the console after EfiBootManagerDispatchDeferredImages() has loaded ROMs, so call it after this. This was the calling order before the TCG physical presence support had to be moved and the console initialized earlier so user interaction could be sup

[edk2-devel] [PATCH v2] OvmfPkg: Call PlatformInitializeConsole for GPU passthrough case

2021-12-16 Thread Stefan Berger
For GPU passthrough support we have to initialize the console after EfiBootManagerDispatchDeferredImages() has loaded ROMs, so call it after this. This was the calling order before the TCG physical presence support had to be moved and the console initialized earlier so user interaction could be sup

Re: [edk2-devel] [PATCH v8] IntelFsp2WrapperPkg : FSPM/S UPD data address based on Build Type

2021-12-16 Thread Chiu, Chasel
Hi Ted, Some bootloaders may choose to always use PcdFspmUpdDataAddress64 regardless 32bit or 64bit builds, we do not need to block such usage cases by checking UINTN size. Thanks, Chasel > -Original Message- > From: Kuo, Ted > Sent: Thursday, December 16, 2021 6:47 PM > To: S, Ash

Re: [edk2-devel] [PATCH] OvmfPkg: Call PlatformInitializeConsole for GPU passthrough case

2021-12-16 Thread Shivanshu Goyal
Thank you for making this change Stefan. I tested your patch locally on my GPU passthrough Windows 10 VM and it successfully fixes it. I added a "Tested-by:" note inline in your patch. Thank you, Shivanshu Goyal On Wed, Dec 15, 2021 at 7:44 AM Stefan Berger wrote: > For GPU passthrough support

Re: [edk2-devel] [PATCH v8] IntelFsp2WrapperPkg : FSPM/S UPD data address based on Build Type

2021-12-16 Thread Kuo, Ted
Can we use the size of UINTN instead of the value of PcdFspmUpdDataAddress64 to decide which PCD should be returned in GetFspmUpdDataAddress and GetFspsUpdDataAddress? Thanks, Ted -Original Message- From: S, Ashraf Ali Sent: Thursday, December 16, 2021 4:10 PM To: devel@edk2.groups.io

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

2021-12-16 Thread Rebecca Cran
On 12/16/21 6:16 AM, Ard Biesheuvel wrote: There were some changes a while ago to support standalone MM in 32-bit mode, but I don't think any of the Platform/ARM platforms implement that. So the best fix here is to simply stop lying about ARM support. As for RdkQemu - I think it is time we just

[edk2-devel] [PATCH v2 17/17] Silicon/Hisilicon: Add instance of MpInitLib to Hisilicon.dsc.inc

2021-12-16 Thread Rebecca Cran
MpInitLib is now required for all users of ArmPkg/Drivers/CpuDxe. Add ArmPkg/Library/MpInitLib/DxeMpInitLib.inf . Signed-off-by: Rebecca Cran --- Silicon/Hisilicon/Hisilicon.dsc.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/Silicon/Hisilicon/Hisilicon.dsc.inc b/Silicon/Hisilicon/Hisil

[edk2-devel] [PATCH v2 16/17] Silicon/Phytium: Update FT2000-4Pkg PlatformLib for ARM_CORE_INFO change

2021-12-16 Thread Rebecca Cran
The ARM_CORE_INFO struct has been updated so the MPIDR is now a single field instead of separate cluster/core fields. Update FT2000-4Pkg PlatformLib. Signed-off-by: Rebecca Cran --- Silicon/Phytium/FT2000-4Pkg/Library/PlatformLib/PlatformLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

[edk2-devel] [PATCH v2 15/17] Silicon/Phytium: Add instance of MpInitLib to PhytiumCommonPkg.dsc.inf

2021-12-16 Thread Rebecca Cran
MpInitLib is now required for all users of ArmPkg/Drivers/CpuDxe. Add ArmPkg/Library/MpInitLib/DxeMpInitLib.inf . Signed-off-by: Rebecca Cran --- Silicon/Phytium/PhytiumCommonPkg/PhytiumCommonPkg.dsc.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/Silicon/Phytium/PhytiumCommonPkg/Phytium

[edk2-devel] [PATCH v2 14/17] Silicon/Ampere: Update ArmPlatformLib to work with changed ARM_CORE_INFO

2021-12-16 Thread Rebecca Cran
The ARM_CORE_INFO struct has been updated so the MPIDR is now a single field instead of separate cluster/core fields. Update ArmPlatformLib. Signed-off-by: Rebecca Cran --- Silicon/Ampere/AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletio

[edk2-devel] [PATCH v2 13/17] Silicon/Ampere: Add instance of MpInitLib to AmpereAltraPkg.dsc

2021-12-16 Thread Rebecca Cran
MpInitLib is now required for all users of ArmPkg/Drivers/CpuDxe. Add ArmPkg/Library/MpInitLib/DxeMpInitLib.inf . Signed-off-by: Rebecca Cran --- Silicon/Ampere/AmpereAltraPkg/AmpereAltraPkg.dsc.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/Silicon/Ampere/AmpereAltraPkg/AmpereAltraPkg.

[edk2-devel] [PATCH v2 12/17] Silicon/AMD: Update Styx code to work with changes ARM_CORE_INFO struct

2021-12-16 Thread Rebecca Cran
The ARM_CORE_INFO struct has been updated so the MPIDR is now a single field instead of separate cluster/core fields. Update the Styx code in AcpiPlatformDxe, PlatInitPei and StyxDtbLoaderLib. Signed-off-by: Rebecca Cran --- Silicon/AMD/Styx/Drivers/AcpiPlatformDxe/AcpiPlatform.c | 3 +--

[edk2-devel] [PATCH v2 11/17] Platform/RaspberryPi: Add instance of MpInitLib to RPi3.dsc and RPi4.dsc

2021-12-16 Thread Rebecca Cran
MpInitLib is now required for all users of ArmPkg/Drivers/CpuDxe. Add ArmPkg/Library/MpInitLib/DxeMpInitLib.inf . Signed-off-by: Rebecca Cran --- Platform/RaspberryPi/RPi3/RPi3.dsc | 1 + Platform/RaspberryPi/RPi4/RPi4.dsc | 1 + 2 files changed, 2 insertions(+) diff --git a/Platform/RaspberryP

[edk2-devel] [PATCH v2 10/17] Platform/SoftIron: Add instance of MpInitLib to Overdrive1000Board.dsc

2021-12-16 Thread Rebecca Cran
MpInitLib is now required for all users of ArmPkg/Drivers/CpuDxe. Add ArmPkg/Library/MpInitLib/DxeMpInitLib.inf . Signed-off-by: Rebecca Cran --- Platform/SoftIron/Overdrive1000Board/Overdrive1000Board.dsc | 1 + 1 file changed, 1 insertion(+) diff --git a/Platform/SoftIron/Overdrive1000Board/O

[edk2-devel] [PATCH v2 09/17] Platform/AMD: Add instance of MpInitLib to OverdriveBoard.dsc

2021-12-16 Thread Rebecca Cran
MpInitLib is now required for all users of ArmPkg/Drivers/CpuDxe. Add ArmPkg/Library/MpInitLib/DxeMpInitLib.inf . Signed-off-by: Rebecca Cran --- Platform/AMD/OverdriveBoard/OverdriveBoard.dsc | 1 + 1 file changed, 1 insertion(+) diff --git a/Platform/AMD/OverdriveBoard/OverdriveBoard.dsc b/P

[edk2-devel] [PATCH v2 08/17] Silicon/Qemu: Update ARM_CORE_INFO initializer for MPIDR field change

2021-12-16 Thread Rebecca Cran
The ARM_CORE_INFO struct has been updated so the MPIDR is now a single field instead of separate cluster/core fields. Update the initializer. Signed-off-by: Rebecca Cran --- Silicon/Qemu/SbsaQemu/Library/SbsaQemuLib/SbsaQemuLib.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) dif

[edk2-devel] [PATCH v2 07/17] Silicon/Socionext: Update ARM_CORE_INFO initializer for MPIDR field change

2021-12-16 Thread Rebecca Cran
The ARM_CORE_INFO struct has been updated so the MPIDR is now a single field instead of separate cluster/core fields. Update the initializer. Signed-off-by: Rebecca Cran --- Silicon/Socionext/SynQuacer/Library/SynQuacerLib/SynQuacer.c | 48 ++-- 1 file changed, 24 insertions(+),

[edk2-devel] [PATCH v2 02/17] Platform/Socionext: Add instance of MpInitLib

2021-12-16 Thread Rebecca Cran
MpInitLib is now required for all users of ArmPkg/Drivers/CpuDxe. Add ArmPkg/Library/MpInitLib/DxeMpInitLib.inf . Signed-off-by: Rebecca Cran --- Platform/Socionext/DeveloperBox/DeveloperBox.dsc | 1 + Platform/Socionext/SynQuacerEvalBoard/SynQuacerEvalBoard.dsc | 1 + 2 files change

[edk2-devel] [PATCH v2 06/17] Silicon/Marvell: Update ARM_CORE_INFO initializer for MPIDR field change

2021-12-16 Thread Rebecca Cran
The ARM_CORE_INFO struct has been updated so the MPIDR is now a single field instead of separate cluster/core fields. Update the initializer. Signed-off-by: Rebecca Cran --- Silicon/Marvell/Armada7k8k/Library/Armada7k8kLib/Armada7k8kLib.c | 8 1 file changed, 4 insertions(+), 4 deletion

[edk2-devel] [PATCH v2 05/17] Platform/ARM: Update ARM_CORE_INFO initializer for MPIDR field change

2021-12-16 Thread Rebecca Cran
The ARM_CORE_INFO struct has been updated so the MPIDR is now a single field instead of separate cluster/core fields. Update the initializer. Signed-off-by: Rebecca Cran --- Platform/ARM/JunoPkg/Library/ArmJunoLib/ArmJuno.c | 12 ++-- Platform/ARM/VExpressPkg/Library/Ar

[edk2-devel] [PATCH v2 03/17] Silicon/Marvell: Add instance of MpInitLib

2021-12-16 Thread Rebecca Cran
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(+) diff --git a/Silicon/Marvell/Armada7k8k/Armada7k8k.dsc.inc b/Sil

[edk2-devel] [PATCH v2 04/17] Platform/Qemu: Add instance of MpInitLib

2021-12-16 Thread Rebecca Cran
MpInitLib is now required for all users of ArmPkg/Drivers/CpuDxe. Add ArmPkg/Library/MpInitLib/DxeMpInitLib.inf . Signed-off-by: Rebecca Cran --- Platform/Qemu/SbsaQemu/SbsaQemu.dsc | 1 + 1 file changed, 1 insertion(+) diff --git a/Platform/Qemu/SbsaQemu/SbsaQemu.dsc b/Platform/Qemu/SbsaQemu/

[edk2-devel] [PATCH v2 01/17] Platform/ARM: Add MpInitLib instance

2021-12-16 Thread Rebecca Cran
MpInitLib is now required for all users of ArmPkg/Drivers/CpuDxe. Add ArmPkg/Library/MpInitLib/DxeMpInitLib.inf . Signed-off-by: Rebecca Cran --- Platform/ARM/JunoPkg/ArmJuno.dsc | 1 + Platform/ARM/Morello/MorelloPlatform.dsc.inc | 1 + Platform/ARM/N1Sdp/N1SdpPlatform.dsc |

[edk2-devel] [PATCH v2 00/17] Update Arm platforms following addition of EFI_MP_SERVICES_PROTOCOL support in edk2

2021-12-16 Thread Rebecca Cran
Changes from v1: Fixed Platform/SoftIron, Platform/RaspberryPi, Silicon/AMD, Silicon/Ampere, Silicon/Phytium, Silicon/Hisilicon. Patches 1/17 through 8/17 are the same as v1. The following platforms are already broken: o Drivers/OptionRomPkg/OptionRomPkg.dsc for AARCH64 and ARM: due t

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

2021-12-16 Thread Boeuf, Sebastien
Thank you! I really appreciate your responsiveness! Sebastien From: Yao, Jiewen Sent: Wednesday, December 15, 2021 6:14:07 PM To: devel@edk2.groups.io ; a...@kernel.org ; Boeuf, Sebastien Cc: kra...@redhat.com Subject: RE: [edk2-devel] CMOS needed for Cloud Hyp

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

2021-12-16 Thread Ard Biesheuvel
On Thu, 16 Dec 2021 at 04:57, Nhi Pham 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 from the pre-UEF

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

2021-12-16 Thread Ard Biesheuvel
On Thu, 16 Dec 2021 at 19:55, Sami Mujawar wrote: > > Hi Ard, > > Please find my response inline marked [SAMI]. > > Regards, > > Sami Mujawar > On 16/12/2021, 15:07, "Ard Biesheuvel via groups.io" > wrote: > > On Thu, 16 Dec 2021 at 14:38, Marcin Juszkiewicz > wrote: > > > > W

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

2021-12-16 Thread Sami Mujawar
Hi Ard, Please find my response inline marked [SAMI]. Regards, Sami Mujawar On 16/12/2021, 15:07, "Ard Biesheuvel via groups.io" wrote: On Thu, 16 Dec 2021 at 14:38, Marcin Juszkiewicz wrote: > > W dniu 16.12.2021 o 14:16, Ard Biesheuvel pisze: > > >>> Platform/L

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

2021-12-16 Thread Rebecca Cran
On 12/16/21 8:26 AM, Pierre Gondois wrote: The following patchset should enable a CI in edk2-platforms for the Juno platorm, but it was tested before uncrustify was enabled. The patch-set is also relying on a modification in edk2-pytool-extensions: https://edk2.groups.io/g/devel/message/83803

Re: [edk2-devel] [EXTERNAL] RE: [edk2-platforms] [PATCH V1] WhitleyOpenBoardPkg : Support for Junction City Platform.

2021-12-16 Thread manickavasakam karpagavinayagam via groups.io
Thank you Nate and Isaac for all your help. -Manic -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#85006): https://edk2.groups.io/g/devel/message/85006 Mute This Topic: https://groups.io/mt/87722713/21656 Group Owner: devel+ow...@edk2.gro

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

2021-12-16 Thread Rebecca Cran
On 12/16/21 6:26 AM, Sami Mujawar wrote: [SAMI] I posted the following patches to fix some of the issues you mention above: Platform/Socionext: Fix build break for SynQuacerEvalBoard (https://edk2.groups.io/g/devel/message/83553) Platform/LeMaker: Fix build break for CelloBoard (https://edk2.g

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

2021-12-16 Thread PierreGondois
Hi Rebecca, On 12/16/21 3:59 PM, Rebecca Cran wrote: > On 12/16/21 6:26 AM, Sami Mujawar wrote: > >> [SAMI] I posted the following patches to fix some of the issues you mention >> above: >> Platform/Socionext: Fix build break for SynQuacerEvalBoard >> (https://edk2.groups.io/g/devel/message/8355

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

2021-12-16 Thread Ard Biesheuvel
On Thu, 16 Dec 2021 at 14:38, Marcin Juszkiewicz wrote: > > W dniu 16.12.2021 o 14:16, Ard Biesheuvel pisze: > > >>> Platform/LeMaker/CelloBoard/CelloBoard.dsc > > > As for RdkQemu - I think it is time we just remove that. > > I would vote for removal of CelloBoard as well. It never went into any

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

2021-12-16 Thread Rebecca Cran
On 12/16/21 6:26 AM, Sami Mujawar wrote: [SAMI] I posted the following patches to fix some of the issues you mention above: Platform/Socionext: Fix build break for SynQuacerEvalBoard (https://edk2.groups.io/g/devel/message/83553) Platform/LeMaker: Fix build break for CelloBoard (https://edk2.

Re: [edk2-devel] [PATCH 0/5] OvmfPkg/QemuVideoDxe: pick up display resolution settings from the host

2021-12-16 Thread Ard Biesheuvel
On Thu, 16 Dec 2021 at 15:30, Gerd Hoffmann wrote: > > See last patch in the series for details. > > Gerd Hoffmann (5): > OvmfPkg: add PcdVideoResolutionSource > OvmfPkg/QemuVideoDxe: simplify InitializeBochsGraphicsMode > OvmfPkg/QemuVideoDxe: drop QEMU_VIDEO_BOCHS_MODES->ColorDepth > Ovm

[edk2-devel] [PATCH 1/5] OvmfPkg: add PcdVideoResolutionSource

2021-12-16 Thread Gerd Hoffmann
It's a UINT8 (enum) PCD telling where the PcdVideoHorizontalResolution and PcdVideoVerticalResolution values are coming from. It can be: 0 (unset aka default from dsc file), or 1 (from PlatformConfig), or 2 (set by Video Driver). It will be used by video drivers to avoid overriding PlatformCo

[edk2-devel] [PATCH 5/5] OvmfPkg/QemuVideoDxe: parse edid blob, detect display resolution

2021-12-16 Thread Gerd Hoffmann
Check whenever an EDID blob is present. In case it is get the display resolution from it. Unless PcdVideoResolutionSource indicates the display resolution has been set already update PcdVideoHorizontalResolution and PcdVideoVerticalResolution accordingly. Also add the resolution to the mode list.

[edk2-devel] [PATCH 4/5] OvmfPkg/QemuVideoDxe: factor out QemuVideoBochsAddMode

2021-12-16 Thread Gerd Hoffmann
Add helper function to add a video mode to the list of modes. Move code. Minor debug logging tweaks, no other functional change. Signed-off-by: Gerd Hoffmann --- OvmfPkg/QemuVideoDxe/Initialize.c | 77 +++ 1 file changed, 47 insertions(+), 30 deletions(-) diff --git

[edk2-devel] [PATCH 2/5] OvmfPkg/QemuVideoDxe: simplify InitializeBochsGraphicsMode

2021-12-16 Thread Gerd Hoffmann
struct QEMU_VIDEO_MODE_DATA has all the data needed to set the video mode, there is no need to take the extra indirection and use struct QEMU_VIDEO_BOCHS_MODES. Signed-off-by: Gerd Hoffmann --- OvmfPkg/QemuVideoDxe/Qemu.h | 3 +-- OvmfPkg/QemuVideoDxe/Driver.c | 14 +++--- Ovm

[edk2-devel] [PATCH 3/5] OvmfPkg/QemuVideoDxe: drop QEMU_VIDEO_BOCHS_MODES->ColorDepth

2021-12-16 Thread Gerd Hoffmann
All video modes in the list are 32-bit, so drop the useless ColorDepth field. Signed-off-by: Gerd Hoffmann --- OvmfPkg/QemuVideoDxe/Qemu.h | 1 - OvmfPkg/QemuVideoDxe/Initialize.c | 80 +++ 2 files changed, 39 insertions(+), 42 deletions(-) diff --git a/OvmfPk

[edk2-devel] [PATCH 0/5] OvmfPkg/QemuVideoDxe: pick up display resolution settings from the host

2021-12-16 Thread Gerd Hoffmann
See last patch in the series for details. Gerd Hoffmann (5): OvmfPkg: add PcdVideoResolutionSource OvmfPkg/QemuVideoDxe: simplify InitializeBochsGraphicsMode OvmfPkg/QemuVideoDxe: drop QEMU_VIDEO_BOCHS_MODES->ColorDepth OvmfPkg/QemuVideoDxe: factor out QemuVideoBochsAddMode OvmfPkg/QemuV

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

2021-12-16 Thread Gerd Hoffmann
Hi, > > Oh, wow. So you compile in PEI, then decide at runtime whenever you use it > > or not? > Yes. > In OvmfPkgX64.dsc above code will not be built into the image. So it follows > the SEC->PEI->DXE flow. > In IntelTdxX64.dsc, it if is Tdx guest, it jumps from SEC to DXE (see > TdxStartup (

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

2021-12-16 Thread Marcin Juszkiewicz
W dniu 16.12.2021 o 14:16, Ard Biesheuvel pisze: Platform/LeMaker/CelloBoard/CelloBoard.dsc As for RdkQemu - I think it is time we just remove that. I would vote for removal of CelloBoard as well. It never went into any serious mass production and nowadays you probably count working ones

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

2021-12-16 Thread Sami Mujawar
Hi Rebecca, Please find my response inline marked [SAMI]. Regards, Sami Mujawar On 16/12/2021, 13:14, "Rebecca Cran" wrote: On 12/16/21 2:32 AM, Ard Biesheuvel wrote: > You appear to have missed a few instances: > > Platform/AMD/OverdriveBoard/OverdriveBoard.dsc > Platfo

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

2021-12-16 Thread Ard Biesheuvel
On Thu, 16 Dec 2021 at 14:13, Rebecca Cran wrote: > > On 12/16/21 2:32 AM, Ard Biesheuvel wrote: > > > You appear to have missed a few instances: > > > > Platform/AMD/OverdriveBoard/OverdriveBoard.dsc > > Platform/BeagleBoard/BeagleBoardPkg/BeagleBoardPkg.dsc > > Platform/Hisilicon/D03/D03.dsc > >

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

2021-12-16 Thread Rebecca Cran
On 12/16/21 2:32 AM, Ard Biesheuvel wrote: You appear to have missed a few instances: Platform/AMD/OverdriveBoard/OverdriveBoard.dsc Platform/BeagleBoard/BeagleBoardPkg/BeagleBoardPkg.dsc Platform/Hisilicon/D03/D03.dsc Platform/Hisilicon/D05/D05.dsc Platform/Hisilicon/D06/D06.dsc Platform/Hisil

Re: [edk2-devel] [PATCH 3/6] OvmfPkg/PlatformPei: unfix PcdPciExpressBaseAddress

2021-12-16 Thread Ard Biesheuvel
On Thu, 16 Dec 2021 at 10:50, Gerd Hoffmann wrote: > > Will be set by FdtPciHostBridgeLib, so it can't be an fixed when we > want use that library. > > Signed-off-by: Gerd Hoffmann What guarantees that these accesses only ever see the correct, updated value? > --- > OvmfPkg/PlatformPei/Platfor

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

2021-12-16 Thread Min Xu
On December 15, 2021 6:42 PM, Gerd Hoffmann wrote: > > 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 pe

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

2021-12-16 Thread Min Xu
On December 15, 2021 6:28 PM, Gerd Hoffmann wrote: > 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

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

2021-12-16 Thread Min Xu
On December 15, 2021 6:09 PM, Gerd Hoffmann wrote: > > + PageTables = 0; > > + if (FeaturePcdGet (PcdDxeIplBuildPageTables)) { > > Can this ever be false in a x64 build? You're right. This cannot be false in X64 build. I will refactor it in the next version. > > > +EFI_STATUS > > +FindDxeCore

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

2021-12-16 Thread Ard Biesheuvel
On Thu, 16 Dec 2021 at 09:07, Masahisa Kojima wrote: > > Hi Ard, > > On Wed, 15 Dec 2021 at 17:45, Ard Biesheuvel wrote: > > > > (+ Masahisa, Masami) > > > > > > On Fri, 15 Oct 2021 at 11:07, Ming Huang > > wrote: > > > > > > TF-A: TrustedFirmware-A > > > SPM: Secure Partition Manager(MM) > > >

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

2021-12-16 Thread Jeff Fan
You may try to enlarger stmm_ns_comm_buf_size in Optee to check if it could solve ASSERT issue. fanjianf...@byosoft.com.cn From: Masahisa Kojima Date: 2021-12-16 16:07 To: Ard Biesheuvel CC: Ming Huang; Masami Hiramatsu; edk2-devel-groups-io; Sami Mujawar; Ard Biesheuvel; Jiewen Yao; Supreet

Re: [edk2-devel] [PATCH 1/6] PciHostBridge: io range is not mandatory

2021-12-16 Thread Ard Biesheuvel
On Thu, 16 Dec 2021 at 10:50, Gerd Hoffmann wrote: > > io range is not mandatory according to pcie spec, > so allow bridge configurations without io address > space assigned. > > Signed-off-by: Gerd Hoffmann Reviewed-by: Ard Biesheuvel > --- > MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBrid

[edk2-devel] [PATCH 2/6] FdtPciHostBridgeLib: io range is not mandatory

2021-12-16 Thread Gerd Hoffmann
io range is not mandatory according to pcie spec, so allow host bridges without io address space. Signed-off-by: Gerd Hoffmann --- .../FdtPciHostBridgeLib/FdtPciHostBridgeLib.c | 45 ++- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/OvmfPkg/Fdt/FdtPciHostBridgeL

[edk2-devel] [PATCH 6/6] OvmfPkg/Microvm/pcie: add pcie support

2021-12-16 Thread Gerd Hoffmann
Link in pcie and host bridge bits. Enables support for PCIe in microvm (qemu-system-x86_64 -M microvm,pcie=on). Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3777 Signed-off-by: Gerd Hoffmann --- OvmfPkg/Microvm/MicrovmX64.dsc | 40 +- OvmfPkg/Microvm/READM

[edk2-devel] [PATCH 5/6] OvmfPkg/Microvm/pcie: mPhysMemAddressWidth tweak

2021-12-16 Thread Gerd Hoffmann
microvm places the 64bit mmio space at the end of the physical address space. So mPhysMemAddressWidth must be correct, otherwise the pci host bridge setup throws an error because it thinks the 64bit mmio window is not addressable. On microvm we can simply use standard cpuid to figure the address

[edk2-devel] [PATCH 4/6] OvmfPkg/Microvm/pcie: no vbeshim please

2021-12-16 Thread Gerd Hoffmann
Those old windows versions which need the vbeshim hack will not run on microvm anyway. Signed-off-by: Gerd Hoffmann --- OvmfPkg/QemuVideoDxe/VbeShim.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OvmfPkg/QemuVideoDxe/VbeShim.c b/OvmfPkg/QemuVideoDxe/VbeShim.c index 8faa146b6cce..2a04821

[edk2-devel] [PATCH 0/6] OvmfPkg/Microvm/pcie: add pcie support

2021-12-16 Thread Gerd Hoffmann
Needs two little tweaks in PCI code because microvm supports mmio only. Other than that just wire up the existing code (the PCIe host adapter used by microvm is the same (virtual) hardware used by the arm/aarch64 virtual machines). Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3777 Gerd Hof

[edk2-devel] [PATCH 3/6] OvmfPkg/PlatformPei: unfix PcdPciExpressBaseAddress

2021-12-16 Thread Gerd Hoffmann
Will be set by FdtPciHostBridgeLib, so it can't be an fixed when we want use that library. Signed-off-by: Gerd Hoffmann --- OvmfPkg/PlatformPei/PlatformPei.inf | 2 +- OvmfPkg/PlatformPei/MemDetect.c | 4 ++-- OvmfPkg/PlatformPei/Platform.c | 4 ++-- 3 files changed, 5 insertions(+), 5

[edk2-devel] [PATCH 1/6] PciHostBridge: io range is not mandatory

2021-12-16 Thread Gerd Hoffmann
io range is not mandatory according to pcie spec, so allow bridge configurations without io address space assigned. Signed-off-by: Gerd Hoffmann --- MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/

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

2021-12-16 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

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

2021-12-16 Thread Marvin Häuser
Hey all, > On 15. Dec 2021, at 16:02, Ming Huang wrote: > >  > >> 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/

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

2021-12-16 Thread Min Xu
Hi > > 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 21/31] UefiCpuPkg: Update AddressEncMask in CpuPageTable

2021-12-16 Thread Min Xu
Hi > > @@ -357,6 +360,7 @@ GetPageTableEntry ( > > > >// 4k > >L1PageTable = (UINT64 *)(UINTN)(L2PageTable[Index2] & ~AddressEncMask > & PAGING_4K_ADDRESS_MASK_64); > > + > >if ((L1PageTable[Index1] == 0) && (Address != 0)) { > > Hmm? The blank line will be dropped. > > With that drop

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

2021-12-16 Thread Min Xu
Hi > > +EFI_STATUS > > +EFIAPI > > +BspAcceptMemoryResourceRange ( > > + IN EFI_PHYSICAL_ADDRESS PhysicalAddress, > > + IN EFI_PHYSICAL_ADDRESS PhysicalEnd > > + ) > > +{ > > + EFI_STATUS Status; > > + UINT32 AcceptPageSize; > > + UINT64 StartAddress1; > > + UINT64 StartAdd

[edk2-devel] [PATCH v8] IntelFsp2WrapperPkg : FSPM/S UPD data address based on Build Type

2021-12-16 Thread Ashraf Ali S
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3642 when the module is not building in IA32 mode which will lead to building error. when a module built-in X64 function pointer will be the size of 64bit width which cannot be fit in 32bit address which will lead to error. to overcome this issue i

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

2021-12-16 Thread Masahisa Kojima
Hi Ard, On Wed, 15 Dec 2021 at 17:45, Ard Biesheuvel wrote: > > (+ 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 si