Re: [edk2-devel] [PATCH v0] Platform/NXP: Add Dynamic Acpi for layerscape platforms

2021-01-26 Thread Vikas Singh via groups.io
On Tue, Jan 26, 2021 at 4:49 PM Leif Lindholm wrote: > > Hi Vikas, > > On Tue, Jan 19, 2021 at 10:11:43 +0530, Vikas Singh wrote: > > > > > > +/** A helper macro for returning configuration manager objects > > > > > > +*/ > > > > > > +#define HANDLE_CM_OBJECT(ObjId, CmObjectId, Object, ObjectCount

[edk2-devel] [PATCH v2 2/2] Platform/NXP: Add OEM specific DSDT generator

2021-01-26 Thread Vikas Singh via groups.io
These changes add platform specific DSDT generator and Clk dsdt properties for LX2160ARDB. Signed-off-by: Vikas Singh --- .../ConfigurationManagerDxe/ConfigurationManager.c | 9 ++ .../ConfigurationManagerDxe/ConfigurationManager.h | 4 +- .../ConfigurationManagerDxe.inf|

[edk2-devel] [PATCH v2 1/2] Platform/NXP: Add Dynamic Acpi for layerscape platforms

2021-01-26 Thread Vikas Singh via groups.io
These changes intend to add Common Configuration Manager (CM) for all fsl platforms and Platform headers consumed by CM for LX2160ARDB. Signed-off-by: Vikas Singh --- .../ConfigurationManagerDxe/ConfigurationManager.c | 834 + .../ConfigurationManagerDxe/ConfigurationManager.

[edk2-devel] [PATCH v2 0/2] Dynamic ACPI framework for fsl layerscape platforms

2021-01-26 Thread Vikas Singh via groups.io
This patch series sets the foundation of Dynamic ACPI framework for all fsl layerscape platforms. In order to achieve: - Configurable firmware builds. - Unify firmware build for similar platforms. - Minimize/eliminate human induced errors. - Validate and generate firmware that complies with

[edk2-devel] [Wiki] Add update notes for incomaptible patches that fix typos in SmBios.h

2021-01-26 Thread Zhiguang Liu
Cc: Liming Gao Signed-off-by: Zhiguang Liu --- EDK-II-Release-Planning.md | 1 + 1 file changed, 1 insertion(+) diff --git a/EDK-II-Release-Planning.md b/EDK-II-Release-Planning.md index 336d8d2..bbb5f18 100644 --- a/EDK-II-Release-Planning.md +++ b/EDK-II-Release-Planning.md @@ -32,6 +32,7 @@

Re: [edk2-devel] Questions/doubts about UFS device on UEFI

2021-01-26 Thread Nate DeSimone
Hi Renan, The UEFI driver model uses a stack of several modular DXE drivers to translate from lower level to higher level interfaces. As a baseline reference, this is what the driver stack would look like for a UFS device on an Intel SoC: +--+ | EFI_BL

Re: [edk2-devel] [PATCH v4 11/20] MdeModulePkg: SmmSmiHandlerProfileLib: Support StandaloneMm Instance

2021-01-26 Thread Wu, Hao A
> -Original Message- > From: Kun Qin > Sent: Wednesday, January 27, 2021 3:47 AM > To: devel@edk2.groups.io > Cc: Wang, Jian J ; Wu, Hao A ; > Dong, Eric ; Ni, Ray > Subject: [PATCH v4 11/20] MdeModulePkg: SmmSmiHandlerProfileLib: > Support StandaloneMm Instance > > REF: https://bugzilla

Re: [edk2-devel] Questions/doubts about UFS device on UEFI

2021-01-26 Thread Andrew Fish via groups.io
> On Jan 26, 2021, at 9:23 AM, renan.moraes2 via groups.io > wrote: > > Good afternoon, > > We are studying how to communicate with Universal Flash Storage (UFS) device > on UEFI environment. The first step is identify the UFS device, we are using > the system Lenovo Flex 5G (It has Snapdrago

[edk2-devel] Spell check corrections, package by package

2021-01-26 Thread brbarkel via groups.io
When we added the SpellCheck to CI, we intended to move through package by package and turn on the PR gate checks (right now they're all in "audit only"). To do this, we must first fix all the existing spelling errors and/or update the ignore lists and dictionaries with expected terms. I would

Re: [edk2-devel] [PATCH v5 1/9] OvmfPkg/CpuHotplugSmm: refactor hotplug logic

2021-01-26 Thread Ankur Arora
On 2021-01-26 1:32 p.m., Laszlo Ersek wrote: On 01/26/21 22:17, Ankur Arora wrote: On 2021-01-26 1:07 p.m., Laszlo Ersek wrote: On 01/26/21 20:15, Ankur Arora wrote: On 2021-01-26 11:01 a.m., Laszlo Ersek wrote: I'll continue the review later this week. Acking the comments above. Thank

Re: [edk2-devel] [PATCH v5 1/9] OvmfPkg/CpuHotplugSmm: refactor hotplug logic

2021-01-26 Thread Laszlo Ersek
On 01/26/21 22:17, Ankur Arora wrote: > On 2021-01-26 1:07 p.m., Laszlo Ersek wrote: >> On 01/26/21 20:15, Ankur Arora wrote: >>> On 2021-01-26 11:01 a.m., Laszlo Ersek wrote: >> I'll continue the review later this week. >>> >>> Acking the comments above. >> >> Thank you! >> >>> Meanwhile let

Re: [edk2-devel] [PATCH v5 1/9] OvmfPkg/CpuHotplugSmm: refactor hotplug logic

2021-01-26 Thread Ankur Arora
On 2021-01-26 1:07 p.m., Laszlo Ersek wrote: On 01/26/21 20:15, Ankur Arora wrote: On 2021-01-26 11:01 a.m., Laszlo Ersek wrote: I'll continue the review later this week. Acking the comments above. Thank you! Meanwhile let me reprocess the series in light of the comments above. I'm at

Re: [edk2-devel] [PATCH v5 1/9] OvmfPkg/CpuHotplugSmm: refactor hotplug logic

2021-01-26 Thread Laszlo Ersek
On 01/26/21 20:15, Ankur Arora wrote: > On 2021-01-26 11:01 a.m., Laszlo Ersek wrote: >> I'll continue the review later this week. > > Acking the comments above. Thank you! > Meanwhile let me reprocess the series in light of the comments above. I'm at such a point now, during the v5 review, th

Re: [edk2-devel] [PATCH v4 00/20] Extends Support of MM_STANDALONE Type Modules to X64

2021-01-26 Thread Laszlo Ersek
On 01/26/21 20:44, Kun Qin wrote: > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3129 > > This patch series is a follow up of previous submission: > https://edk2.groups.io/g/devel/message/70329 > > These module changes are validated on two different physical platforms. > Standalone and tra

[edk2-devel] Questions/doubts about UFS device on UEFI

2021-01-26 Thread renan.moraes2 via groups.io
Good afternoon, We are studying how to communicate with Universal Flash Storage (UFS) device on UEFI environment. The first step is identify the UFS device, we are using the system Lenovo Flex 5G (It has Snapdragon processor + UFS device). We tried to identify the UFS device in three ways: 1 -

Re: [edk2-devel] [PATCH v5 0/9] support CPU hot-unplug

2021-01-26 Thread Ankur Arora
On 2021-01-26 10:03 a.m., Laszlo Ersek wrote: Hi Ankur, On 01/26/21 07:44, Ankur Arora wrote: Hi, This series adds support for CPU hot-unplug with OVMF. Please see this in conjunction with the QEMU secureboot hot-unplug v2 series posted here (now upstreamed): https://lore.kernel.org/qemu-

[edk2-devel] [PATCH v4 20/20] UefiCpuPkg: SmmCpuExceptionHandlerLib: Added StandaloneMm module support

2021-01-26 Thread Kun Qin
This change of SmmCpuExceptionHandlerLib adds support for StandaloneMm components to allow x64 StandaloneMm environment setting up exception handlers. Cc: Eric Dong Cc: Ray Ni Cc: Laszlo Ersek Cc: Rahul Kumar Signed-off-by: Kun Qin Reviewed-by: Laszlo Ersek Reviewed-by: Ray Ni --- Notes:

[edk2-devel] [PATCH v4 19/20] UefiCpuPkg: CpuIo2Smm: Support of CpuIo driver under StandaloneMm

2021-01-26 Thread Kun Qin
This change adds a new CpuIo driver instance for MM_STANDALONE type. The new driver entrypoint is implemented in a separate file to match the interface definition of MM_STANDALONE modules. Cc: Eric Dong Cc: Ray Ni Cc: Laszlo Ersek Cc: Rahul Kumar Signed-off-by: Kun Qin --- Notes: v4:

[edk2-devel] [PATCH v4 12/20] MdePkg: UefiDevicePathLib: Support UefiDevicePathLib under StandaloneMm

2021-01-26 Thread Kun Qin
This change added an instance of UefiDevicePathLib for StandaloneMm. It abstracts DevicePathFromHandle function into different files for Standalone MM and other instances to avoid linking gBS into MM_STANDALONE drivers. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Signed-off-by: Kun Qi

[edk2-devel] [PATCH v4 16/20] SecurityPkg: Tpm2DeviceLibDTpm: Introduce StandaloneMm instance

2021-01-26 Thread Kun Qin
This change added a new instance of Tpm2DeviceLibDTpm to support drivers of type MM_STANDALONE. It abstracts dynamic Pcd access into separate file for different instances to avoid dynamic usage for StandaloneMm modules. Cc: Jiewen Yao Cc: Jian J Wang Cc: Qi Zhang Cc: Rahul Kumar Signed-off-by

[edk2-devel] [PATCH v4 10/20] MdeModulePkg: ReportStatusCodeRouter: Support StandaloneMm RSC Router

2021-01-26 Thread Kun Qin
This change added support of RSC router under StandaloneMm. It replaces SMM version ReportStatusCode protocol definitions with MM version. This patch also switched to use gMmst instead of gSmst. Lastly, it abstracts standalone and traditional MM driver entrypoints into separate files to allow maxim

[edk2-devel] [PATCH v4 18/20] UefiCpuPkg: CpuIo2Smm: Abstract SMM specific functions into separate file

2021-01-26 Thread Kun Qin
This change abstracts CpuIo2Smm driver entrypoint into separate file and moves functions/definitions that are not substantially specific to Traditional MM (SMM) into CpuIo2Mm.* in order to set ways for Standalone MM support in the future. Cc: Eric Dong Cc: Ray Ni Cc: Laszlo Ersek Cc: Rahul Kuma

[edk2-devel] [PATCH v4 11/20] MdeModulePkg: SmmSmiHandlerProfileLib: Support StandaloneMm Instance

2021-01-26 Thread Kun Qin
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3185 This change added support of SMI handler profile library router under StandaloneMm. This change replaces gSmst with gMmst. It also abstracts standalone and traditional MM driver entrypoints into separate files to allow maximal common impleme

[edk2-devel] [PATCH v4 17/20] UefiCpuPkg: CpuIo2Smm: Move CpuIo2Smm driver to consume gMmst

2021-01-26 Thread Kun Qin
This change replaced gSmst with gMmst to support broader compatibility under MM environment for CpuIo2Smm driver. Cc: Eric Dong Cc: Ray Ni Cc: Laszlo Ersek Cc: Rahul Kumar Signed-off-by: Kun Qin Reviewed-by: Laszlo Ersek Reviewed-by: Ray Ni --- Notes: v4: - Added reviewed-by tag [

[edk2-devel] [PATCH v4 08/20] MdeModulePkg: StatusCodeHandler: StatusCodeHandler driver in StandaloneMm

2021-01-26 Thread Kun Qin
This change added support of StandaloneMm for StatusCodeHandler. It adds a new instance of StatusCodeHandler of MM_STANDALONE type, and abstracts the driver entrypoint into separate files, replaced gSmst with gMmst, and switched to MM version of RscHandlerProtocol. Cc: Jian J Wang Cc: Hao A Wu C

[edk2-devel] [PATCH v4 15/20] SecurityPkg: Tcg2PpVendorLibNull: Added support for MM_STANDALONE type

2021-01-26 Thread Kun Qin
This change extends this null instance of Tcg2PpVendorLib to support MM_STANDALONE drivers. Cc: Jiewen Yao Cc: Jian J Wang Cc: Qi Zhang Cc: Rahul Kumar Signed-off-by: Kun Qin Reviewed-by: Jiewen Yao --- Notes: v4: - Previously reviewed. No change. v3: - Previously reviewed

[edk2-devel] [PATCH v4 07/20] MdeModulePkg: SmmReportStatusCodeLib: ReportStatusCodeLib in StandaloneMm

2021-01-26 Thread Kun Qin
This change added support of StandaloneMm for ReportStatusCodeLib. It adds a new instance of ReportStatusCodeLib for MM_STANDALONE type, and abstracts the references of gMmst and gSmst functionalities into separate files in order to link in proper Service Table for SMM core/drivers. Cc: Jian J Wan

[edk2-devel] [PATCH v4 14/20] SecurityPkg: Tcg2PhysicalPresenceLib: Introduce StandaloneMm instance

2021-01-26 Thread Kun Qin
This change added a new instance of Tcg2PhysicalPresenceLib to support MM_STANDALONE type drivers. It centralizes the common routines into shared files and abstract the library constructor into corresponding files to implement each constructor function prototypes. Cc: Jiewen Yao Cc: Jian J Wang

[edk2-devel] [PATCH v4 06/20] MdeModulePkg: SmmLockBoxSmmLib: Support StandaloneMm for SmmLockBoxLib

2021-01-26 Thread Kun Qin
This change added support of StandaloneMm for SmmLockBoxLib. It replaces gSmst with gMmst to support both traditional MM and standalone MM. The contructor and desctructor functions are abstracted to support different function prototype definitions. Cc: Jian J Wang Cc: Hao A Wu Cc: Eric Dong Si

[edk2-devel] [PATCH v4 05/20] StandaloneMmPkg: StandaloneMmMemLib: Extends support for X64 architecture

2021-01-26 Thread Kun Qin
This change extends StandaloneMmMemLib library to support X64 architecture. The implementation is ported from MdePkg/Library/SmmMemLib. Cc: Ard Biesheuvel Cc: Sami Mujawar Cc: Jiewen Yao Cc: Supreeth Venkatesh Signed-off-by: Kun Qin Reviewed-by: Jiewen Yao --- Notes: v4: - Added re

[edk2-devel] [PATCH v4 13/20] PcAtChipsetPkg: AcpiTimerLib: Added StandaloneMm instance of AcpiTimerLib

2021-01-26 Thread Kun Qin
This change added a new instance of AcpiTimerLib for StandaloneMm core and drivers. It centralizes the common routines into shared files and abstract the library constructor into corresponding files to accommodate each constructor function prototypes. Cc: Ray Ni Signed-off-by: Kun Qin Reviewed-

[edk2-devel] [PATCH v4 04/20] StandaloneMmPkg: StandaloneMmCoreMemoryAllocationLib: Fix compiler warning

2021-01-26 Thread Kun Qin
Assigning MmramRangeCount from MmCorePrivate (UINT64) to local variable MmramRangeCount (UINT32) will cause compilation failure due to "warning C4244: '=': conversion from 'UINT64' to 'UINT32', possible loss of data". This changes defines local MmramRangeCount as UINTN type and adds type cast befor

[edk2-devel] [PATCH v4 09/20] MdeModulePkg: FirmwarePerformanceDataTable: Added StandaloneMm support

2021-01-26 Thread Kun Qin
This change added support of FPDT driver under StandaloneMm. It replaces SMM version ReportStatusCode protocol with MM version. This patch also abstracts standalone and traditional MM interfaces into separate files to support each corresponding function prototypes and implementations. Cc: Jian J W

[edk2-devel] [PATCH v4 03/20] StandaloneMmPkg: StandaloneMmCoreHobLib: Extend support for x64 Mm Core

2021-01-26 Thread Kun Qin
This change adds support of x64 version of StandaloneMmCoreHobLib. It brings in global variable "gHobList" through StandaloneMmCoreEntryPoint, imports implementation from DxeCoreHobLib.inf to support x64 Mm Core and moved shared functional plementations into a common file. Cc: Ard Biesheuvel Cc:

[edk2-devel] [PATCH v4 02/20] StandaloneMmPkg: StandaloneMmCoreEntryPoint: Extends support for X64

2021-01-26 Thread Kun Qin
This change extends StandaloneMmCoreEntryPoint library to support X64 architecture. Cc: Ard Biesheuvel Cc: Sami Mujawar Cc: Jiewen Yao Cc: Supreeth Venkatesh Signed-off-by: Kun Qin Reviewed-by: Jiewen Yao --- Notes: v4: - Reviewed previously. No change. v3: - Reviewed prev

[edk2-devel] [PATCH v4 00/20] Extends Support of MM_STANDALONE Type Modules to X64

2021-01-26 Thread Kun Qin
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3129 This patch series is a follow up of previous submission: https://edk2.groups.io/g/devel/message/70329 These module changes are validated on two different physical platforms. Standalone and traditional MM are both tested to be functional on

[edk2-devel] [PATCH v4 01/20] BaseTools: Ecc/exception: Added _ModuleEntryPoint into exception list

2021-01-26 Thread Kun Qin
Function '_ModuleEntryPoint' is a pre-defined interface for various EFI module types and should not be caught violating EFI coding style. This change added '_ModuleEntryPoint' into exception list to fix EFI coding style error 8006 during CI build. Cc: Bob Feng Cc: Liming Gao Cc: Yuwei Chen Sig

Re: [edk2-devel] [PATCH v5 1/9] OvmfPkg/CpuHotplugSmm: refactor hotplug logic

2021-01-26 Thread Ankur Arora
On 2021-01-26 11:01 a.m., Laszlo Ersek wrote: On 01/26/21 07:44, Ankur Arora wrote: Refactor CpuHotplugMmi() to pull out the CPU hotplug logic into PlugCpus(). This is in preparation for supporting CPU hot-unplug. Cc: Laszlo Ersek Cc: Jordan Justen Cc: Ard Biesheuvel Cc: Igor Mammedov Cc: B

Re: [edk2-devel] [PATCH v5 1/9] OvmfPkg/CpuHotplugSmm: refactor hotplug logic

2021-01-26 Thread Laszlo Ersek
On 01/26/21 20:01, Laszlo Ersek wrote: > On 01/26/21 07:44, Ankur Arora wrote: >> + if (EFI_ERROR(Status)) { >> +goto Fatal; >>} > > (13) Without having seen the rest of the patches, I think this error > check should be nested under the same (PluggedCount > 0) condition; in > other words

Re: [edk2-devel] [PATCH v5 1/9] OvmfPkg/CpuHotplugSmm: refactor hotplug logic

2021-01-26 Thread Laszlo Ersek
On 01/26/21 20:01, Laszlo Ersek wrote: > (1b) Similarly, in the parameter comments, "to be plugged" is wrong. I > suggest copying the parameter descriptions from > QemuCpuhpCollectApicIds(): > > @param[out] PluggedApicIds The APIC IDs of the CPUs that have been >

Re: [edk2-devel] [PATCH v5 1/9] OvmfPkg/CpuHotplugSmm: refactor hotplug logic

2021-01-26 Thread Laszlo Ersek
On 01/26/21 07:44, Ankur Arora wrote: > Refactor CpuHotplugMmi() to pull out the CPU hotplug logic into > PlugCpus(). This is in preparation for supporting CPU hot-unplug. > > Cc: Laszlo Ersek > Cc: Jordan Justen > Cc: Ard Biesheuvel > Cc: Igor Mammedov > Cc: Boris Ostrovsky > Cc: Aaron Young

Re: [edk2-devel] [PATCH v5 0/9] support CPU hot-unplug

2021-01-26 Thread Laszlo Ersek
On 01/26/21 07:44, Ankur Arora wrote: > Hi, > > This series adds support for CPU hot-unplug with OVMF. > > Please see this in conjunction with the QEMU secureboot hot-unplug v2 > series posted here (now upstreamed): > > https://lore.kernel.org/qemu-devel/20201207140739.3829993-1-imamm...@redha

Re: [edk2-devel] [PATCH v5 0/9] support CPU hot-unplug

2021-01-26 Thread Laszlo Ersek
Hi Ankur, On 01/26/21 07:44, Ankur Arora wrote: > Hi, > > This series adds support for CPU hot-unplug with OVMF. > > Please see this in conjunction with the QEMU secureboot hot-unplug v2 > series posted here (now upstreamed): > > https://lore.kernel.org/qemu-devel/20201207140739.3829993-1-ima

Re: [edk2-devel] [edk2-platforms][PATCH V1 00/11] Add SMBIOS tables for SGI/RD platforms

2021-01-26 Thread Thomas Abraham
On Friday, January 15, 2021 11:57 PM, Pranav Madhu wrote: > SMBIOS provides basic hardware and firmware configuration information > through table-driven data structure. This patch series adds SMBIOS > support for Arm's SGI/RD platforms. > > The first patch in this series defines platform-id valu

Re: [edk2-devel] [PATCH EDK2-non-osi v1 0/1] Silicon/Hisilicon: fix compile issues triggered by VariablePolicy

2021-01-26 Thread Leif Lindholm
Many thanks. Reviewed-by: Leif Lindholm Pushed as 04744d2432ba. On Tue, Jan 12, 2021 at 15:06:21 +0800, wenyi,xie via groups.io wrote: > Hi Leif, > > I have pushed my patch to github, here's the link: > https://github.com/leadsama/edk2-non-osi/tree/compile_issue_fix_v1 > > Thanks > Wenyi > >

Re: [edk2-devel] [PATCH v3 03/18] StandaloneMmPkg: StandaloneMmCoreHobLib: Extend support for x64 Mm Core

2021-01-26 Thread Yao, Jiewen
Reviewed-by: Jiewen Yao From: devel@edk2.groups.io On Behalf Of Kun Qin Sent: Thursday, January 21, 2021 9:35 AM To: devel@edk2.groups.io; Ard Biesheuvel ; Sami Mujawar ; Yao, Jiewen ; Supreeth Venkatesh Subject: Re: [edk2-devel] [PATCH v3 03/18] StandaloneMmPkg: StandaloneMmCoreHobLib: Exte

Re: [edk2-devel] [PATCH v3 05/18] StandaloneMmPkg: StandaloneMmMemLib: Extends support for X64 architecture

2021-01-26 Thread Yao, Jiewen
Thanks. Looks good to me. Reviewed-by: Jiewen Yao From: Kun Qin Sent: Thursday, January 21, 2021 9:44 AM To: devel@edk2.groups.io; Yao, Jiewen Cc: Ard Biesheuvel ; Sami Mujawar ; Supreeth Venkatesh Subject: RE: [edk2-devel] [PATCH v3 05/18] StandaloneMmPkg: StandaloneMmMemLib: Extends suppo

Re: [edk2-devel] [PATCH] RedfishPkg/RedfishCrtLib: Add more CRT functions

2021-01-26 Thread Leif Lindholm
On Mon, Jan 25, 2021 at 12:36:53 +0800, Abner Chang wrote: > Add more functions which were missed in the first time commit, > that causes the build error with EDK2 Redfish feature driver. > > strerror - We don't support this on edk2 environment. > strpbrk - Cloned this function from edk2-LibC > F

Re: [edk2-devel] [PATCH] RedfishPkg/JsonLib: Fix build errors

2021-01-26 Thread Leif Lindholm
Hi Abner, On Mon, Jan 25, 2021 at 12:31:54 +0800, Abner Chang wrote: > This patch fixes the build errors when build JsonLib with EDK2 > Redfish feature driver. > > - Add JsonLoadString function to load a NULL terminated-string JSON > - json_string_value() in JsonValueGetAsciiString () is removed

Re: [edk2-devel] [PATCH v0] Platform/NXP: Add Dynamic Acpi for layerscape platforms

2021-01-26 Thread Leif Lindholm
Hi Vikas, On Tue, Jan 19, 2021 at 10:11:43 +0530, Vikas Singh wrote: > > > > > +/** A helper macro for returning configuration manager objects > > > > > +*/ > > > > > +#define HANDLE_CM_OBJECT(ObjId, CmObjectId, Object, ObjectCount) > > > > > \ > > > > > + case ObjId: {

Re: [edk2-devel] 回复: [PATCH v1 1/1] BaseTools: Align include guards policy

2021-01-26 Thread Leif Lindholm
Hi Liming, If it was purely a question of style, I would agree that whatever is 70% used should be the norm. But this is not really an issue under our control. Macros starting with leading _ are reserved for toolchain use. Some toolchains, i.e. clang, have dedicated warnings for this. Whether we

Re: [edk2-devel] [PATCH] UefiCpuPkg/MpInitLib: Don't increase CpuCount in ApWakeupFunction

2021-01-26 Thread Laszlo Ersek
On 01/26/21 06:50, Ni, Ray wrote: > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3179 > > When BSP first time wakes all APs, each AP atomically increases > CpuMpData->CpuCount and CpuMpData->FinishedCount. > Each AP atomically increases CpuMpData->NumApsExecuting > in early assembly code an

Re: [edk2-devel] [PATCH v6 05/22] ArmPkg: Add helper to read the Memory Model Features Register 2

2021-01-26 Thread Philippe Mathieu-Daudé
On 1/14/21 5:36 PM, Rebecca Cran wrote: > Add helper function to read the MMFR2 register. We will need this to > determine CCIDX support. > > Signed-off-by: Rebecca Cran > Reviewed-by: Leif Lindholm > Reviewed-by: Sami Mujawar > --- > ArmPkg/Library/ArmLib/AArch64/AArch64Lib.h | 11 +++