Re: [edk2-devel] [edk2-platforms][PATCH v2 00/14] Use generic OpenSBI platform

2021-10-06 Thread Abner Chang
The entire series of patches were already reviewed off line with Daniel internally. Reviewed-by: Abner Chang > -Original Message- > From: Schaefer, Daniel > Sent: Wednesday, October 6, 2021 8:03 PM > To: devel@edk2.groups.io; Chang, Abner (HPS SW/FW Technologist) > ; Sunil V L >

Re: [edk2-devel] [edk2-platforms][PATCH v2 00/14] Use generic OpenSBI platform

2021-10-06 Thread Abner Chang
Cover letter should also have signed off and Cc. that's fine for this time. Did you use patchcheck to check all of your patches includeing the cover letter? > -Original Message- > From: Schaefer, Daniel > Sent: Wednesday, October 6, 2021 8:03 PM > To: devel@edk2.groups.io; Chang, Abner

Re: [edk2-devel] [PATCH 2/5] Platform/RaspberryPi: Expand locking to cover return data

2021-10-06 Thread Ard Biesheuvel
On Tue, 5 Oct 2021 at 23:20, Jeremy Linton wrote: > > Hi, > > On 10/5/21 5:12 AM, Ard Biesheuvel wrote: > > On Sat, 2 Oct 2021 at 02:52, Jeremy Linton wrote: > >> > >> While debugging problems with the GET/SET_CLOCK mailbox calls it appeared > >> that the locking in most of the mailbox commands

Re: [edk2-devel] [PATCH v1 6/7] DynamicTablesPkg: Add Pci related objects

2021-10-06 Thread Sami Mujawar
Hi Pierre, This patch looks good to me. Reviewed-by: Sami Mujawar Regards, Sami Mujawar On 23/06/2021 12:58 PM, pierre.gond...@arm.com wrote: From: Pierre Gondois Introduce the following CmObj in the ArmNameSpaceObjects: - CM_ARM_PCI_ADDRESS_MAP_INFO - CM_ARM_PCI_INTERRUPT_MAP_INFO

Re: [edk2-devel] [PATCH v1 5/7] DynamicTablesPkg: Add AmlAttachNode()

2021-10-06 Thread Sami Mujawar
Hi Pierre, Thank you for this patch. Reviewed-by: Sami Mujawar Regards, Sami Mujawar On 23/06/2021 12:58 PM, pierre.gond...@arm.com wrote: From: Pierre Gondois This function allows to add a node as the last node of a parent node in an AML tree. For instance, ASL code corresponding to

Re: [edk2-devel] [PATCH v1 4/7] DynamicTablesPkg: AML Code generation to add _PRT entries

2021-10-06 Thread Sami Mujawar
Hi Pierre, Thank you for this patch. Reviewed-by: Sami Mujawar Regards, Sami Mujawar On 23/06/2021 12:58 PM, pierre.gond...@arm.com wrote: From: Pierre Gondois _PRT entries can describe interrupt mapping for Pci devices. The object is described in ACPI 6.4 s6.2.13 "_PRT (PCI Routing

Re: [edk2-devel] [PATCH v1 3/7] DynamicTablesPkg: AML Code generation to create a named ResourceTemplate()

2021-10-06 Thread Sami Mujawar
Hi Pierre, This patch looks good to me. Reviewed-by: Sami Mujawar Regards, Sami Mujawar On 23/06/2021 12:58 PM, pierre.gond...@arm.com wrote: From: Pierre Gondois Add AmlCodeGenNameResourceTemplate() to generate code for a ResourceTemplate(). AmlCodeGenNameResourceTemplate ("REST",

Re: [edk2-devel] [PATCH v1 2/7] DynamicTablesPkg: AML Code generation to create a named Package()

2021-10-06 Thread Sami Mujawar
Hi Pierre, Thank you for this patch. These changes look good to me. Reviewed-by: Sami Mujawar Regards, Sami Mujawar On 23/06/2021 12:58 PM, pierre.gond...@arm.com wrote: From: Pierre Gondois Add AmlCodeGenNamePackage() to generate code for a Package(). AmlCodeGenNamePackage ("PACK",

Re: [edk2-devel] [PATCH v1 1/7] DynamicTablesPkg: AML Code generation for memory ranges

2021-10-06 Thread Sami Mujawar
Hi Pierre, Please find my feedback marked inline as [SAMI]. Regards, Sami Mujawar On 23/06/2021 12:58 PM, pierre.gond...@arm.com wrote: From: Pierre Gondois Add helper functions to generate AML Resource Data describing memory ranges. Memory ranges can be one, double or four words long.

Re: [edk2-devel] [PATCH v1 09/13] DynamicTablesPkg: AML code generation for a Method returning a NS

2021-10-06 Thread PierreGondois
Hi Sami, Thanks for the review, please find my answer as [Pierre] On 10/1/21 4:23 PM, Sami Mujawar wrote: > Hi Pierre, > > Please find my response inline marked [SAMI]. > > Regards, > > Sami Mujawar > > > On 23/06/2021 12:40 PM, pierre.gond...@arm.com wrote: >> From: Pierre Gondois >> >> Add

Re: [edk2-devel] [PATCH v1] ShellPkg: Update Acpiview HMAT parser to ACPI spec version 6.4

2021-10-06 Thread Sami Mujawar
On Wed, Sep 8, 2021 at 07:08 PM, Gao, Zhichao wrote: > > Reviewed-by: Zhichao Gao > > Thanks, > Zhichao Hi Zhichao, I was about to merge this patch when I noticed there is possibly a typo in your r-b. Can you confirm, please? Regards, Sami Mujawar -=-=-=-=-=-=-=-=-=-=-=- Groups.io

Re: [edk2-devel] [PATCH v3 12/28] AmpereAltraPkg: Add Ac01PcieLib library instance

2021-10-06 Thread Nhi Pham via groups.io
Hi Leif, On 06/10/2021 02:59, Leif Lindholm via groups.io wrote: On Mon, Oct 04, 2021 at 19:03:40 +0700, Nhi Pham wrote: Hi Leif, There are two comments that I would like to clarify with you. On 23/09/2021 20:49, Leif Lindholm wrote: +VOID +Ac01PcieMmioWr ( + UINT64 Addr, + UINT32 Val +

[edk2-devel] [PATCH v1] SecurityPkg: Improve initialization of default key variables.

2021-10-06 Thread Grzegorz Bernacki
This commit allows to use data in EFI_VARIABLE_AUTHENTICATION_2 structure format to initialize default secure boot variables. It allows to use revocation list published by UEFI. Signed-off-by: Grzegorz Bernacki --- SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.c | 90

Re: [edk2-devel] [edk2-platforms][PATCH v2 00/14] Use generic OpenSBI platform

2021-10-06 Thread Daniel Schaefer
Title says v2 but this is the first time I sent it. Sorry. If there's a next one, it'll be v3, just to be consistent. On 10/6/21 19:56, Daniel Schaefer wrote: > OpenSBI can now use a generic platform implementation. The platform > specific behavior is derived from the device tree. > > This

[edk2-devel] [edk2-platforms][PATCH v2 14/14] Move OpenSbiPlatformLib to RISC-V/PlatformPkg

2021-10-06 Thread Daniel Schaefer
It's a generic platform file. Only the device tree decides what happens. Cc: Daniel Schaefer Cc: Abner Chang Cc: Sunil V L Signed-off-by: Daniel Schaefer --- Platform/{SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard =>

[edk2-devel] [[edk2-platforms] PATCH v2 12/14] RISC-V: Switch to latest OpenSBI

2021-10-06 Thread Daniel Schaefer
Cc: Daniel Schaefer Cc: Abner Chang Cc: Sunil V L Signed-off-by: Daniel Schaefer --- Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLibNull/Platform.c | 27 --- Platform/RISC-V/PlatformPkg/Universal/Sec/Riscv64/SecEntry.S

[edk2-devel] [edk2-platforms][PATCH v2 10/14] RISC-V/PlatformPkg: Fixup FDT from HOB and install into config table

2021-10-06 Thread Daniel Schaefer
The Linux EFISTUB reads the FDT from the EFI system configuration table. Before installing the FDT needs to be patched with the booting hartid, because the kernel in S-Mode cannot determine it. Cc: Daniel Schaefer Cc: Abner Chang Cc: Sunil V L Signed-off-by: Daniel Schaefer ---

[edk2-devel] [edk2-platforms][PATCH v2 13/14] RISC-V: Implement ResetSystem RT call

2021-10-06 Thread Daniel Schaefer
Cc: Daniel Schaefer Cc: Abner Chang Cc: Sunil V L Signed-off-by: Daniel Schaefer --- Platform/RISC-V/PlatformPkg/Library/ResetSystemLib/ResetSystemLib.c | 128 Platform/RISC-V/PlatformPkg/Library/ResetSystemLib/ResetSystemLib.inf | 33 +

[edk2-devel] [edk2-platforms][PATCH v2 11/14] U5SeriesPkg: Switch to generic OpenSBI platform

2021-10-06 Thread Daniel Schaefer
New platform files require more space in SEC. Behavior is determined not by source code but by device tree. Cc: Daniel Schaefer Cc: Abner Chang Cc: Sunil V L Signed-off-by: Daniel Schaefer --- Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.fdf.inc

[edk2-devel] [edk2-platforms][PATCH v2 09/14] RISC-V/PlatformPkg: Add FdtPeim to pass DTB from PEI to DXE via HOB

2021-10-06 Thread Daniel Schaefer
From: Abner Chang Cc: Daniel Schaefer Cc: Abner Chang Cc: Sunil V L Signed-off-by: Daniel Schaefer --- Platform/RISC-V/PlatformPkg/Universal/FdtPeim/FdtPeim.c | 70 Platform/RISC-V/PlatformPkg/Universal/FdtPeim/FdtPeim.inf| 49 ++

[edk2-devel] [edk2-platforms][PATCH v2 08/14] RISC-V/PlatformPkg: Build DeviceTree and use that in SEC

2021-10-06 Thread Daniel Schaefer
OpenSBI uses the device tree for platform specific initialization, so we need to have it already in SEC. Cc: Daniel Schaefer Cc: Abner Chang Cc: Sunil V L Signed-off-by: Daniel Schaefer --- Platform/RISC-V/PlatformPkg/RiscVPlatformPkg.dec| 4 ++

[edk2-devel] [edk2-platforms][PATCH v2 07/14] U540: Add and build device tree

2021-10-06 Thread Daniel Schaefer
Device Tree is taken from Uboot. Cc: Daniel Schaefer Cc: Abner Chang Cc: Sunil V L Signed-off-by: Daniel Schaefer --- Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/DeviceTree.fdf.inc | 35 +++

[edk2-devel] [edk2-platforms][PATCH v2 08/14] RISC-V/PlatformPkg: Build DeviceTree and use that in SEC

2021-10-06 Thread Daniel Schaefer
OpenSBI uses the device tree for platform specific initialization, so we need to have it already in SEC. Cc: Daniel Schaefer Cc: Abner Chang Cc: Sunil V L Signed-off-by: Daniel Schaefer --- Platform/RISC-V/PlatformPkg/RiscVPlatformPkg.dec| 4 ++

[edk2-devel] [edk2-platforms][PATCH v2 06/14] SiFive/U5SeriesPkg: Use FirmwareContext library

2021-10-06 Thread Daniel Schaefer
From: Abner Chang Use RISC-V FirmwareContext library to set and get the pointer of PeiService on SiFive U5 series platforms. Cc: Sunil V L Cc: Daniel Schaefer Signed-off-by: Abner Chang --- Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.dsc | 2 ++ 1 file changed, 2

[edk2-devel] [edk2-platforms][PATCH v2 01/14] U5SeriesPkg: Deduplicate PlatformPei

2021-10-06 Thread Daniel Schaefer
The current (and future) RISC-V platforms share a lot of PlatformPei code that does not need to be duplicated. If we see that they need to have different behavior in the future, we can add platform specific libraires for that specific code. The upcoming RiscvVirt is only 1205 lines with this

[edk2-devel] [edk2-platforms][PATCH v2 04/14] Silicon/RISC-V: Introduce FirmwareContext library

2021-10-06 Thread Daniel Schaefer
From: Abner Chang Add RISC-V FirmwareContext library for different FirmwareContext implementations. This instance uses SBI firmware extension to get the pointer to FirmwareContext. Cc: Sunil V L Cc: Daniel Schaefer Signed-off-by: Abner Chang ---

[edk2-devel] [edk2-platforms][PATCH v2 05/14] Silicon/RISC-V: PeiServiceTableLib uses RiscVFirmwareContextLib

2021-10-06 Thread Daniel Schaefer
From: Abner Chang Use RISC-V FirmwareContext library to set and get the pointer of PeiService. Cc: Sunil V L Cc: Daniel Schaefer Signed-off-by: Abner Chang --- Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLibOpenSbi/PeiServicesTablePointerLibOpenSbi.inf | 4 ++--

[edk2-devel] [edk2-platforms][PATCH v2 03/14] RISC-V: Use U5 SMBIOS library only for those platforms

2021-10-06 Thread Daniel Schaefer
Cc: Abner Chang Cc: Sunil V L Signed-off-by: Daniel Schaefer --- Platform/RISC-V/PlatformPkg/Library/PeiCoreInfoHobLibNull/CoreInfoHob.c | 37 + Platform/RISC-V/PlatformPkg/Library/PeiCoreInfoHobLibNull/PeiCoreInfoHobLib.inf | 43

[edk2-devel] [edk2-platforms][PATCH v2 02/14] RISC-V: Split SMBIOS out of PlatformPei

2021-10-06 Thread Daniel Schaefer
Cc: Abner Chang Cc: Sunil V L Signed-off-by: Daniel Schaefer --- Platform/RISC-V/PlatformPkg/Universal/Pei/PlatformPei/Platform.c| 17 +- Platform/SiFive/U5SeriesPkg/Include/SiFiveU5MCCoreplex.h| 33

[edk2-devel] [edk2-platforms][PATCH v2 00/14] Use generic OpenSBI platform

2021-10-06 Thread Daniel Schaefer
OpenSBI can now use a generic platform implementation. The platform specific behavior is derived from the device tree. This patchset updates OpenSBI, adds and builds the device tree and does a lot of deduplication as a result. Because OpenSBI has done quite a few other changes, Abner will send

[edk2-devel] [PATCH v1 1/1] MdePkg: Fix ACPI memory aggregator/device type mismatch

2021-10-06 Thread Chris Jones
Bugzilla: 3578 (https://bugzilla.tianocore.org/show_bug.cgi?id=3579) Since the Common Memory Device (formerly Memory Aggregator Device) was introduced in ACPI 5.0, the edk2 type values have not matched the values defined in the ACPI specification. Fix this discrepancy by aligning the code to

Re: [edk2-devel] [PATCH V3 00/12] Migrate ArmVirtPkg modules to OvmfPkg

2021-10-06 Thread Abner Chang
Hi Ard, I realized there is a problem if we duplicate ArmPkg defined PCD to under OvmfPkg (e.g. PcdPciIoTranslate PCD) when I was duplicating this PCD to OvmfPkg. FdtPciProducerLib is relocated to OvmfPkg/Fdt and uses PcdPciIoTranslate PCD declared with OvmfPkg namespace. FdtPciProducerLib is