[edk2-devel] [Patch v2 4/6] UefiCpuPkg: Add new EDKII_PEI_MP_SERVICES2_PPI

2019-07-22 Thread Dong, Eric
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1973 Add definition for new EDKII_PEI_MP_SERVICES2_PPI. It includes all APIs existed in EFI_PEI_MP_SERVICES_PPI and add new API EDKII_PEI_MP_SERVICES_STARTUP_ALL_CPUS. Cc: Ray Ni Cc: Laszlo Ersek Cc: Chandana Kumar Cc: Star Zeng

[edk2-devel] [Patch v2 3/6] UefiCpuPkg/MpInitLibUp: Add MpInitLibStartupAllCPUs API.

2019-07-22 Thread Dong, Eric
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1973 Add new MpInitLibStartupAllCPUs API uses to start all processors at the same time. Cc: Ray Ni Cc: Laszlo Ersek Cc: Chandana Kumar Cc: Star Zeng Signed-off-by: Eric Dong --- UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.c | 38

[edk2-devel] [Patch v2 6/6] UefiCpuPkg/RegisterCpuFeaturesLib: Start all processors simultaneously.

2019-07-22 Thread Dong, Eric
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1973 For semaphore type register, it required all processors to do the task at the same time. Current logic begins BSP's task after all APs have finished their tasks. This will caused set semaphore task hang if semaphore has package level type.

[edk2-devel] [Patch v2 0/6] UefiCpuPkg: Enable Edkii Mp Services2 Ppi

2019-07-22 Thread Dong, Eric
V2 changes: 1. Enable new API for MpInitLibUp. 2. Remove useless parameter FailedCpuList. 3. Rename StartupAllAPsWorker to StartupAllCpusWorker. V1 Changes: REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1973 CpuFeatures solution introduces a policy which write msr bases on scope info.

Re: [edk2-devel] [PATCH] OvmfPkg: enable multiprocessor builds when using build.sh

2019-07-22 Thread Jordan Justen
Maybe a commit message tweak would be: OvmfPkg/build.sh: enable multithreaded build by default On 2019-07-21 17:58:16, Rebecca Cran wrote: > When building both BaseTools and OvmfPkg, enable multiprocessor builds, > using up to the number of cores available in the system. This can > drastically

[edk2-devel] [PATCH V2] ShellPkg/UefiHandleParsingLib: Fix incorrect reallocate pool

2019-07-22 Thread Gao, Zhichao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1965 For function InsertNewGuidNameMapping, it rellocate the mGuidList with new size "mGuidListCount+1 * sizeof(GUID_INFO_BLOCK)". That isn't its purpose and would cause a overflow operation in "mGuidList[mGuidListCount - 1].xxx = xxx". Its

[edk2-devel] [PATCH V2] ShellPkg/Pci.c: Update supported link speed to PCI4.0

2019-07-22 Thread Gao, Zhichao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1955 Refer PCI express base specification Reversion 4.0, Version 1.0, Table 7-32, Supported Link Speeds Vector bit 3 indicate the speed 16 GT/s. Add it to shell command 'pci ...'. Change the MaxLinkSpeed other values' result from 'Unknown' to

[edk2-devel] [PATCH V2] ShellPkg/UefiShellDriver1CommandsLib: Make array big enough

2019-07-22 Thread Gao, Zhichao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1941 The two CHAR16 array ChildCountStr and DeviceCountStr is defined to hold the decimal string data of UINTN. The max of UINTN is 18446744073709551615 and it contain 20 characters. So make their size to 21 CHAR16s to hold the string data with

[edk2-devel] [PATCH] MdePkg/PciExpress21.h: Fix the PCIe industry standard registers

2019-07-22 Thread Javeed, Ashraf
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2007 The PCIe Device capability register #2 (PCI_REG_PCIE_DEVICE_CAPABILITY2) needs to be upgraded for the PCI features like - LN system CLS, 10b Tag completer/requester register fields, emergency power reduction support and initialization

<    1   2