[edk2] [Patch V2 0/3] StartAllAPs should not use disabled APs

2018-07-24 Thread Eric Dong
This patch series include changes: 1. StartAllAPs should not use disabled APs, this is required by UEFI spec. 2. Refine the code to remove the redundant definitions. V2 changes: Use CpuStateReady to distinguish the AP state from CpuStateIdle. Eric Dong (3): UefiCpuPkg/MpInitLib: Remove

[edk2] [Patch 2/3] UefiCpuPkg/MpInitLib: Remove StartCount and volatile definition.

2018-07-24 Thread Eric Dong
The StartCount is duplicated with RunningCount, replace it with RunningCount. Also the volatile for RunningCount is not needed. Cc: Laszlo Ersek Cc: Ruiyu Ni Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Eric Dong --- UefiCpuPkg/Library/MpInitLib/MpLib.c | 11

[edk2] [Patch 1/3] UefiCpuPkg/MpInitLib: Remove redundant CpuStateFinished State.

2018-07-24 Thread Eric Dong
Current CPU state definition include CpuStateIdle and CpuStateFinished. After investigation, current code can use CpuStateIdle to replace the CpuStateFinished. It will reduce the state number and easy for maintenance. Cc: Laszlo Ersek Cc: Ruiyu Ni Contributed-under: TianoCore Contribution

[edk2] [Patch 3/3] UefiCpuPkg/MpInitLib: Not use disabled AP when call StartAllAPs.

2018-07-24 Thread Eric Dong
Base on UEFI spec requirement, StartAllAPs function should not use the APs which has been disabled before. This patch just change current code to follow this rule. Cc: Laszlo Ersek Cc: Ruiyu Ni Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Eric Dong ---

Re: [edk2] [Patch V2] UefiCpuPkg/MpInitLib: Remove redundant parameter.

2018-07-24 Thread Dong, Eric
Hi Laszlo, I have root cause this issue, the AP hangs in the procedure when PiSmmCpuDxeSmm driver start up trigged this issue. When PiSmmCpuDxeSmm driver start up, it will call StartAllAps to set memory attribute. In StartAllAps function, after call WakeUpAp to start Aps, it calls

[edk2] [PATCH] BaseTools: Parse decimal format INF_VERSION incorrect

2018-07-24 Thread Yonghong Zhu
From: Yunhua Feng hex number 0x00010019, the major number is 0001, the minor number is 0019. the decimal number 1.25, the major number is 1, and the minor number is 25 Fix https://bugzilla.tianocore.org/show_bug.cgi?id=921 Cc: Liming Gao Cc: Yonghong Zhu Contributed-under: TianoCore

Re: [edk2] [PATCH] BaseTools: Fix build report for *P and *M flag incorrectly

2018-07-24 Thread Zhu, Yonghong
Reviewed-by: Yonghong Zhu Best Regards, Zhu Yonghong -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Yonghong Zhu Sent: Monday, July 23, 2018 4:49 PM To: edk2-devel@lists.01.org Cc: Gao, Liming Subject: [edk2] [PATCH] BaseTools: Fix build

[edk2] [Patch] BaseTools: Fix bug about *M value not display decimal and hexadecimal

2018-07-24 Thread Yonghong Zhu
From: Yunhua Feng V2: Add the check for Pcd DatumType report format like as below: *M Shell.inf = 0xFF (255) Cc: Liming Gao Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yunhua Feng --- BaseTools/Source/Python/build/BuildReport.py | 8

Re: [edk2] [PATCH] ArmVirtPkg: remove wrong and superfluous ResourcePublicationLib resolution

2018-07-24 Thread Gao, Liming
Jaben: Yes. BaseTools can generate the error message for it. But, more checker in BaseTools parser phase will also increase the build performance. This is the balance here. Thanks Liming > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of >

Re: [edk2] [PATCH 3/6] NetworkPkg/TlsAuthConfigDxe: replace OpenFileByDevicePath() with UefiLib API

2018-07-24 Thread Wu, Jiaxin
Looks good with me. Reviewed-by: Jiaxin Wu Thanks, Jiaxin > -Original Message- > From: Laszlo Ersek [mailto:ler...@redhat.com] > Sent: Thursday, July 19, 2018 4:51 AM > To: edk2-devel-01 > Cc: Wu, Jiaxin ; Fu, Siyuan > Subject: [PATCH 3/6] NetworkPkg/TlsAuthConfigDxe: replace >

Re: [edk2] [PATCH] ArmVirtPkg: remove wrong and superfluous ResourcePublicationLib resolution

2018-07-24 Thread Carsey, Jaben
Laszlo, Do you think that using the incorrect name for a library instance should generate an error? I would have thought it would have... -Jaben > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of > Laszlo Ersek > Sent: Tuesday, July 24, 2018

Re: [edk2] [PATCH] ArmVirtPkg: remove wrong and superfluous ResourcePublicationLib resolution

2018-07-24 Thread Laszlo Ersek
On 07/24/18 15:22, Ard Biesheuvel wrote: > On 24 July 2018 at 15:21, Laszlo Ersek wrote: >> The class name for the "PeiResourcePublicationLib" instance is just >> "ResourcePublicationLib", not "PeiResourcePublicationLib". However, no >> module included in the ArmVirtPkg platforms depends on this

Re: [edk2] [PATCH 3/6] NetworkPkg/TlsAuthConfigDxe: replace OpenFileByDevicePath() with UefiLib API

2018-07-24 Thread Laszlo Ersek
On 07/18/18 22:50, Laszlo Ersek wrote: > Replace the OpenFileByDevicePath() function with EfiOpenFileByDevicePath() > from UefiLib, correcting the following issues: > > - imprecise comments on OpenFileByDevicePath(), > - code duplication between this module and other modules, > - local variable

Re: [edk2] [PATCH 1/6] MdePkg/UefiLib: introduce EfiOpenFileByDevicePath()

2018-07-24 Thread Laszlo Ersek
On 07/18/18 22:50, Laszlo Ersek wrote: > The EfiOpenFileByDevicePath() function centralizes functionality from > > - MdeModulePkg/Universal/Disk/RamDiskDxe > - NetworkPkg/TlsAuthConfigDxe > - SecurityPkg/VariableAuthenticated/SecureBootConfigDxe > - ShellPkg/Library/UefiShellLib > > unifying the

[edk2] [Patch] BaseTools: Fix bug about *M value not display decimal and hexadecimal

2018-07-24 Thread Yonghong Zhu
From: Yunhua Feng report format like as below: *M Shell.inf = 0xFF (255) Cc: Liming Gao Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yunhua Feng --- BaseTools/Source/Python/build/BuildReport.py | 7 ++- 1 file changed, 6

Re: [edk2] [PATCH] ArmVirtPkg: remove wrong and superfluous ResourcePublicationLib resolution

2018-07-24 Thread Ard Biesheuvel
On 24 July 2018 at 15:21, Laszlo Ersek wrote: > The class name for the "PeiResourcePublicationLib" instance is just > "ResourcePublicationLib", not "PeiResourcePublicationLib". However, no > module included in the ArmVirtPkg platforms depends on this lib class; > remove its resolution. > > Cc:

[edk2] [PATCH] ArmVirtPkg: remove wrong and superfluous ResourcePublicationLib resolution

2018-07-24 Thread Laszlo Ersek
The class name for the "PeiResourcePublicationLib" instance is just "ResourcePublicationLib", not "PeiResourcePublicationLib". However, no module included in the ArmVirtPkg platforms depends on this lib class; remove its resolution. Cc: Ard Biesheuvel Cc: Julien Grall Contributed-under:

Re: [edk2] [PATCH v2] OvmfPkg: Correct ResourcePublicationLib class name in DSC/INF files

2018-07-24 Thread Laszlo Ersek
On 07/24/18 04:23, Liming Gao wrote: > ResourcePublicationLib class name is ResourcePublicationLib. > INF and DSC files are updated to use the correct one. > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Liming Gao > Signed-off-by: Dongao Guo > --- >

Re: [edk2] reg: HTTP Request Failure over Internet

2018-07-24 Thread Laszlo Ersek
On 07/24/18 14:05, Sivaraman Nainar wrote: > Hello all, > > When an application tried to download the remote file over internet with the > HTTP Get Request it getting failed. If we try via the Intranet then > application downloads the target file. > > The remote file is available in the Apache

Re: [edk2] [PATCH 7/8] OvmfPkg/SmmAccessPei: Update MM PPI usages.

2018-07-24 Thread Laszlo Ersek
On 07/24/18 14:16, Marvin Häuser wrote: > Hey Laszlo, > >> -Original Message- >> (1) Please post patch sets using a cover letter message: >> >> git config format.coverletter true >> git config format.numberedtrue >> git config sendemail.chainreplyto false >> git config

Re: [edk2] [PATCH 7/8] OvmfPkg/SmmAccessPei: Update MM PPI usages.

2018-07-24 Thread Marvin Häuser
Hey Laszlo, > -Original Message- > From: Laszlo Ersek > Sent: Tuesday, July 24, 2018 11:20 AM > To: Marvin Häuser ; edk2- > de...@lists.01.org > Cc: michael.d.kin...@intel.com; liming@intel.com; > star.z...@intel.com; eric.d...@intel.com; ruiyu...@intel.com; > kelly.ste...@intel.com;

[edk2] [PATCH v2 2/2] MdeModulePkg: Change SMM PPIs to shim MM PPIs.

2018-07-24 Thread Marvin Häuser
The new PI MM PPIs deprecate MdeModulePkg's SMM PPIs entirely. Shim the MM headers onto the previous SMM definitions. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marvin Haeuser --- MdeModulePkg/Include/Ppi/SmmAccess.h| 114 +---

[edk2] [PATCH v2 0/2] Introduce UEFI PI 1.5 MM PPI.

2018-07-24 Thread Marvin Häuser
This patch series adds the MM PPIs introduced with the UEFI PI 1.5 specification and in consequence changes the previous MdeModulePkg SMM PPIs to shim these. Marvin Haeuser (2): MdePkg: Add PI 1.5 MM PPI declarations. MdeModulePkg: Change SMM PPIs to shim MM PPIs.

[edk2] [PATCH v2 1/2] MdePkg: Add PI 1.5 MM PPI declarations.

2018-07-24 Thread Marvin Häuser
Add the declarations for the MM PPIs introduced in PI 1.5. MmAccess, MmCommunication and MmControl are directly derieved from their Smm* counterparts in MdeModulePkg. MmConfiguration is directly derieved from the MmConfiguration Protocol declaration. Contributed-under: TianoCore Contribution

[edk2] reg: HTTP Request Failure over Internet

2018-07-24 Thread Sivaraman Nainar
Hello all, When an application tried to download the remote file over internet with the HTTP Get Request it getting failed. If we try via the Intranet then application downloads the target file. The remote file is available in the Apache server. With the attached patch the download works fine

Re: [edk2] [PATCH 8/8] MdeModulePkg: Deprecate Smm* PPIs.

2018-07-24 Thread Laszlo Ersek
On 07/24/18 08:38, Gao, Liming wrote: > To keep compatibility, I suggest to update MdeModulePkg PPI definition to > include MdePkg one, then typedef structure name and define macro name for SMM > one. MdePkg SMM protocol uses this way to refer to MM protocol. I agree this is a better approach

Re: [edk2] [PATCH 8/8] MdeModulePkg: Deprecate Smm* PPIs.

2018-07-24 Thread Zeng, Star
I do not think we prefer to deprecate the definitions in MdeModulePkg. The definitions are also referred by platforms. And I do not think we prefer to update the consumer code at this moment. The SMM driver refers the SMM_ prefix definitions, that definitely makes sense. I agree Liming's

Re: [edk2] [PATCH 7/8] OvmfPkg/SmmAccessPei: Update MM PPI usages.

2018-07-24 Thread Laszlo Ersek
Hi Marvin, On 07/24/18 03:40, Marvin Häuser wrote: > Update all references to the SMM PPIs from MdeModulePkg to rather use > MdePkg's MM PPI declarations. > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Marvin Haeuser > --- > OvmfPkg/SmmAccess/SmmAccessPei.c | 90

[edk2] [PATCH edk2-non-osi v1 1/1] Hisilicon/D06: Add binary modules

2018-07-24 Thread Ming Huang
Add initial binary for D06. Build commit infomation: edk2: e73f499 edk2-platforms: 7f223e6 HwPkg: e0bf35e TrusedFirmware: 4eda1d1 Tools: 6b286b1 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang ---

[edk2] [PATCH edk2-non-osi v1 0/1] Upload D06 binary modules

2018-07-24 Thread Ming Huang
Code can also be found in github: https://github.com/hisilicon/OpenPlatformPkg.git branch: d06-non-osi-v1 Ming Huang (1): Hisilicon/D06: Add binary modules .../GetInfoFromBmc/GetInfoFromBmc.depex | 1 + .../Drivers/GetInfoFromBmc/GetInfoFromBmc.efi | Bin 0 -> 20384 bytes

[edk2] [PATCH edk2-platforms v1 38/38] Platform/Hisilicon/D0x: Update version string to 18.08

2018-07-24 Thread Ming Huang
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang --- Platform/Hisilicon/D03/D03.dsc | 2 +- Platform/Hisilicon/D05/D05.dsc | 2 +- Platform/Hisilicon/D06/D06.dsc | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git

[edk2] [PATCH edk2-platforms v1 37/38] Hisilicon/D06: Add PciPlatformLib

2018-07-24 Thread Ming Huang
Add a Null PciPlatformLib for build D06. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- Platform/Hisilicon/D06/D06.dsc | 1 +

[edk2] [PATCH edk2-platforms v1 34/38] Silicon/Hisilicon/D06: Add I2C Bus Exception deal function

2018-07-24 Thread Ming Huang
From: shaochangliang During the period of I2c accessing, if the board is reset unexpectedly, and because the I2c client can not reset, the SDA will be always pull down, then it cause I2C bus Exception. Follow the Hi1620 I2C FS chapter 1.8.2 design, add I2C Bus Exception deal function. It will

[edk2] [PATCH edk2-platforms v1 35/38] Silicon/Hisilicon/Setup: Support SPCR table switch

2018-07-24 Thread Ming Huang
If install SPCR table, KVM will not output while install or boot some OS, like ubuntu, so add SPCR switch setup item and set it disable by default. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang Signed-off-by: Heyi Guo ---

Re: [edk2] [PATCH v1 1/1] BaseTools: AutoGen - change class variable to funciton variable

2018-07-24 Thread Zhu, Yonghong
Reviewed-by: Yonghong Zhu Best Regards, Zhu Yonghong -Original Message- From: Carsey, Jaben Sent: Friday, July 20, 2018 1:58 AM To: edk2-devel@lists.01.org Cc: Gao, Liming ; Zhu, Yonghong Subject: [PATCH v1 1/1] BaseTools: AutoGen - change class variable to funciton variable This

[edk2] [PATCH edk2-platforms v1 36/38] Silicon/Hisilicon/setup: Support SMMU switch

2018-07-24 Thread Ming Huang
Select without SMMU iort while SMMU item is disable, Select with SMMU iort while SMMU item is enable. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- Silicon/Hisilicon/Drivers/HisiAcpiPlatformDxe/UpdateAcpiTable.c | 81

[edk2] [PATCH edk2-platforms v1 32/38] Platform/Hisilicon/D06: Add capsule upgrade support

2018-07-24 Thread Ming Huang
From: xulinwei This module support updating the boot CPU firmware only. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- Platform/Hisilicon/D06/Capsule/SystemFirmwareUpdateConfig/SystemFirmwareUpdateConfig.ini | 46 +++

[edk2] [PATCH edk2-platforms v1 33/38] Silicon/Hisilicon/D06: Modify for close slave core clock.

2018-07-24 Thread Ming Huang
From: ZhenYao When BIOS booting, the power consumption is too high, so need close some clusters clock that don't work to reduce power consumption. The implementation of functions is in edk2-non-osi. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: ZhenYao Signed-off-by:

[edk2] [PATCH edk2-platforms v1 31/38] Silicon/Hisilicon/D06: Add some Lpc macro to LpcLib.h

2018-07-24 Thread Ming Huang
Add soem Lpc macro to LpcLib.h for D06. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- Silicon/Hisilicon/Include/Library/LpcLib.h | 51 +++- 1 file changed, 49 insertions(+), 2 deletions(-) diff --git

[edk2] [PATCH edk2-platforms v1 30/38] Hisilicon/D06: add apei driver

2018-07-24 Thread Ming Huang
From: Luqi Jiang This driver provide a means for the platform to convey error information to OSPM. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Luqi Jiang Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- Platform/Hisilicon/D06/D06.dsc

[edk2] [PATCH edk2-platforms v1 29/38] Platform/Hisilicon/D06: Add PciHostBridgeLib

2018-07-24 Thread Ming Huang
PciHostBridgeLib which is need by PciHostBridgeDxe,provide root bridges and deal with resource conflict. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- Platform/Hisilicon/D06/D06.dsc | 2 +-

[edk2] [PATCH edk2-platforms v1 28/38] Hisilicon/D0x: Unify FlashFvbDxe driver

2018-07-24 Thread Ming Huang
From: shaochangliang Add PcdSFCMEM0BaseAddress to D06 and switch three 32-bit macro PcdFlashNvStorage to 64-bit for D05/D03. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: shaochangliang Signed-off-by: Ming Huang Signed-off-by: Heyi Guo ---

[edk2] [PATCH edk2-platforms v1 27/38] Platform/Hisilicon/D06: Add EarlyConfigPeim peim

2018-07-24 Thread Ming Huang
This peim configuare SMMU,AP,MN. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- Platform/Hisilicon/D06/D06.dsc| 1 + Platform/Hisilicon/D06/D06.fdf| 1 +

[edk2] [PATCH edk2-platforms v1 26/38] Silicon/Hisilicon/D0x: Move macro definition to PlatformArch.h

2018-07-24 Thread Ming Huang
From: Sun Yuanchen Move some RAS macros definition to PlatformArch.h for unifying D0x Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Sun Yuanchen Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- Silicon/Hisilicon/Hi1610/Include/PlatformArch.h | 7 +--

[edk2] [PATCH edk2-platforms v1 25/38] Hisilicon/D0x: Update SMBIOS type9 info

2018-07-24 Thread Ming Huang
From: Sun Yuanchen Move board level code to OemMiscLibD0x for unifying D0x. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Sun Yuanchen Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.c | 24

[edk2] [PATCH edk2-platforms v1 24/38] Platform/Hisilicon/D06: Add OemNicConfig2P Driver

2018-07-24 Thread Ming Huang
From: shaochangliang This Driver provide Get/Set Mac function. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: shaochangliang Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- Platform/Hisilicon/D06/D06.dsc | 2 +-

[edk2] [PATCH edk2-platforms v1 23/38] Hisilicon/D0X: Rename the global variable gDS3231RtcDevice

2018-07-24 Thread Ming Huang
The global variable gDS3231RtcDevice is used by several modules included common module in other Pkg. Renaming it with a general name is proper. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang Signed-off-by: Heyi Guo ---

[edk2] [PATCH edk2-platforms v1 22/38] Platform/Hisilicon/D06: Add OemNicLib

2018-07-24 Thread Ming Huang
OemNicLib provide nic related api like GetMac,SetMac. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- Platform/Hisilicon/D06/D06.dsc | 1 + Platform/Hisilicon/D06/Library/OemNicLib/OemNicLib.c | 571

[edk2] [PATCH edk2-platforms v1 21/38] Silicon/Hisilicon/D0x: Move macro definition to PlatformArch.h

2018-07-24 Thread Ming Huang
From: Sun Yuanchen Unify MemorySubClassDxe by Moving macro definition to PlatformArch.h Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Sun Yuanchen Signed-off-by: Ming Huang Signed-off-by: Heyi Guo ---

[edk2] [PATCH edk2-platforms v1 20/38] Platform/Hisilicon/D06: Enable ACPI PPTT

2018-07-24 Thread Ming Huang
From: Heyi Guo Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo Signed-off-by: Ming Huang --- Platform/Hisilicon/D06/D06.dsc | 1 + Platform/Hisilicon/D06/D06.fdf | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Platform/Hisilicon/D06/D06.dsc

[edk2] [PATCH edk2-platforms v1 19/38] Hisilicon/Hi1620: Add ACPI PPTT table

2018-07-24 Thread Ming Huang
From: Heyi Guo This driver fetches information from MADT, so it is adaptable for partial good and 1P/2P, since MADT is updated for different configurations by certain mechanism. Since L2 cache is also private resource of core, so we need to set the next level of cache for L1I and L1D, which is

[edk2] [PATCH edk2-platforms v1 18/38] Silicon/Hisilicon/Setup: Add Setup Item "EnableGOP"

2018-07-24 Thread Ming Huang
From: Yang XinYi Add Setup Item "EnableGOP" for D06, This Item only takes effect on SM750 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yang XinYi Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/MiscConfig.hfr | 7

[edk2] [PATCH edk2-platforms v1 17/38] Silicon/Hisilicon/D06: Optimize HNS config CDR post time

2018-07-24 Thread Ming Huang
From: shaochangliang Use I2C 400KB speed for config CDR Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: shaochangliang Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- Silicon/Hisilicon/Library/I2CLib/I2CLib.c | 12 +++- 1 file changed, 11 insertions(+),

[edk2] [PATCH edk2-platforms v1 16/38] Silicon/Hisilicon/D06: Add I2C delay for HNS auto config

2018-07-24 Thread Ming Huang
From: shaochangliang Because I2C Port5 salve device connect under 95545 device, it will cost more time to access I2C slave device, so add delay time for HNS auto config. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: shaochangliang Signed-off-by: Ming Huang

[edk2] [PATCH edk2-platforms v1 15/38] Silicon/Hisilicon/I2C: Optimize I2C library

2018-07-24 Thread Ming Huang
The hunt of waiting TX/TX finish is used by ten times, so move there hunts to a function CheckI2CTimeOut. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- Silicon/Hisilicon/Library/I2CLib/I2CHw.h | 4 +

[edk2] [PATCH edk2-platforms v1 14/38] Silicon/Hisilicon/D06: Fix I2C enable fail issue for D06

2018-07-24 Thread Ming Huang
From: shaochangliang I2C may enable failed in D06, so retry I2C enable while enable failed. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: shaochangliang Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- Silicon/Hisilicon/Library/I2CLib/I2CLib.c | 22

[edk2] [PATCH edk2-platforms v1 13/38] Silicon/Hisilicon/Acpi: Move some macro to PlatformArch.h

2018-07-24 Thread Ming Huang
From: Sun Yuanchen ARM_ACPI_HEADER is used by a unify module in other Pkg, so move some macro to PlatformArch.h for unify D0x. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Sun Yuanchen Signed-off-by: Ming Huang Signed-off-by: Heyi Guo ---

[edk2] [PATCH edk2-platforms v1 12/38] Silicon/Hisilicon/D06: Stop watchdog

2018-07-24 Thread Ming Huang
From: Sun Yuanchen according as watchdog design on D06, watchdog should be stoped befor boot a option. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Wang Yue Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- Silicon/Hisilicon/Include/Library/IpmiCmdLib.h

[edk2] [PATCH edk2-platforms v1 09/38] Hisilicon/D06: Add Debug Serial Port Init Driver

2018-07-24 Thread Ming Huang
From: Yan Zhang Debug serial port init driver is added to initilize debug serial port. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yan Zhang Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- Platform/Hisilicon/D06/D06.dsc

[edk2] [PATCH edk2-platforms v1 08/38] Silicon/Hisilicon/Acpi: Unify HisiAcipPlatformDxe

2018-07-24 Thread Ming Huang
The EFI_ACPI_STATIC_RESOURCE_AFFINITY_TABLE struct is used by UpdateAcpiTable.c and Srat aslc. The struct may be different according to chips, so move some macro to PlatformArch.h. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang Signed-off-by: Heyi Guo ---

[edk2] [PATCH edk2-platforms v1 07/38] Silicon/Hisilicon/D06: Wait for all disk ready

2018-07-24 Thread Ming Huang
This patch is relative to D06 SasDxe driver. The SasDxe set a variable to notice this libray. Here Wait for all disk ready for 30S at most. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- Silicon/Hisilicon/HisiPkg.dec

[edk2] [PATCH edk2-platforms v1 06/38] Hisilicon/D06: Add OemMiscLibD06

2018-07-24 Thread Ming Huang
This library include BoardFeatureD06.c and OemMiscLibD06.c c file, use for several modules like PciHostBridgeLib and Smbios. Enlarge macro PCIEDEVICE_REPORT_MAX for D06. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang Signed-off-by: Heyi Guo ---

[edk2] [PATCH edk2-platforms v1 05/38] Platform/Hisilicon/D06: Add binary file for D06

2018-07-24 Thread Ming Huang
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- Platform/Hisilicon/D06/D06.dsc | 7 +++ Platform/Hisilicon/D06/D06.fdf | 17 + 2 files changed, 24 insertions(+) diff --git a/Platform/Hisilicon/D06/D06.dsc

[edk2] [PATCH edk2-platforms v1 04/38] Platform/Hisilicon/D06: Add M41T83RealTimeClockLib

2018-07-24 Thread Ming Huang
Add M41T83RealTimeClockLib for RTC. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- Platform/Hisilicon/D06/D06.dsc | 1 +

[edk2] [PATCH edk2-platforms v1 02/38] Silicon/Hisilicon: Separate PlatformArch.h

2018-07-24 Thread Ming Huang
As the mocro of PlatformArch.h is platform special, so Separate PlatformArch.h to Hi1610,Hi1616,Hi1620 for unifying D0x. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhou You Signed-off-by: Ming Huang --- Silicon/Hisilicon/{ => Hi1610}/Include/PlatformArch.h | 0

[edk2] [PATCH edk2-platforms v1 03/38] Hisilicon/D06: Add several basal file for D06

2018-07-24 Thread Ming Huang
Add several basal head file and add several build configuration for D06. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- Platform/Hisilicon/D06/D06.dec | 29 ++ Platform/Hisilicon/D06/D06.dsc

[edk2] [PATCH edk2-platforms v1 00/38] Upload for D06 platform

2018-07-24 Thread Ming Huang
The major features of this patchset include: 1 D06 source code; 2 Unify some D0x modules; This patch set is base on pcihostbridage-v2. For compiling D06, add below hunk to edk2-platforms.config [d06] LONGNAME=HiSilicon D06 DSC=Platform/Hisilicon/D06/D06.dsc ARCH=AARCH64 Code can also be found in

[edk2] [PATCH edk2-platforms v1 01/38] Silicon/Hisilicon: Modify the MRC interface for other module

2018-07-24 Thread Ming Huang
This patch is to unify D0x. Add pGBL_INTERFACE struct define and remove useless interfece. Replace DMRC pGblData with pGblInterface; Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhou You Signed-off-by: Ming Huang ---

Re: [edk2] [PATCH 8/8] MdeModulePkg: Deprecate Smm* PPIs.

2018-07-24 Thread Gao, Liming
To keep compatibility, I suggest to update MdeModulePkg PPI definition to include MdePkg one, then typedef structure name and define macro name for SMM one. MdePkg SMM protocol uses this way to refer to MM protocol. Thanks Liming >-Original Message- >From: Marvin Häuser

[edk2] [PATCH edk2-platforms v2 12/12] Hisilicon/PlatformPciLib: clear redundant felds in RESOURCE_APPETURE

2018-07-24 Thread Ming Huang
From: Heyi Guo In structure PCI_ROOT_BRIDGE_RESOURCE_APPETURE, MemBase is redundant with CpuMemRegionBase, and MemLimit can be calculated by CpuMemRegionBase + PciRegionLimit - PciRegionBase so it is also redundant. Remove these two fields to make things simple and clear. Contributed-under:

[edk2] [PATCH edk2-platforms v2 08/12] Hisilicon: add PciHostBridgeLib

2018-07-24 Thread Ming Huang
From: Heyi Guo This is to prepare for switching to generic PciHostBridge, and PciHostBridgeLib is needed by PciHostBridge driver. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Michael D Kinney ---

[edk2] [PATCH edk2-platforms v2 10/12] Hisilicon/D0x: Switch to generic PciHostBridge driver

2018-07-24 Thread Ming Huang
From: Heyi Guo Address translation support is added to generic PciHostBridge driver in edk2 by commit 74d0a33, so we can switch to it for Hisilicon D03 and D05 which are using address translation between device address and host address for resource BAR. Contributed-under: TianoCore Contribution

[edk2] [PATCH edk2-platforms v2 09/12] Hisilicon: add PciSegmentLib for Hi161x

2018-07-24 Thread Ming Huang
From: Heyi Guo This is to prepare for switching to generic PciHostBridge, and PciSegmentLib is needed by generic PciHostBridge driver. This module copied from edk2-platforms/Silicon/Socionext/SynQuacer/Library/SynQuacerPciSegmentLib. Contributed-under: TianoCore Contribution Agreement 1.1

[edk2] [PATCH edk2-platforms v2 05/12] Hisilicon/Pci: move ATU configuration to PciPlatformLib

2018-07-24 Thread Ming Huang
we move all platform specific code to platform specific module, not in PciHostBridge driver. This is to prepare for switching to generic PciHostBridge driver, so This patch add Hi161xPciPlatformLib and moves ATU initialization to Hi161xPciPlatformLib and add api PciInitPlatform for PciPlatform

[edk2] [PATCH edk2-platforms v2 01/12] Hisilicon: Enable WARN and INFO debug message

2018-07-24 Thread Ming Huang
From: Heyi Guo INFO and WARN messages are useful when we are debugging, something like PCI enumeration process, and more debug messages should not impact much for they will only be displayed in DEBUG version, not RELEASE one. Contributed-under: TianoCore Contribution Agreement 1.1

[edk2] [PATCH edk2-platforms v2 03/12] Hisilicon/Pci: Move PciPlatform to common directory

2018-07-24 Thread Ming Huang
From: Heyi Guo This is to prepare for switching to generic PciHostBridge driver, so we move all platform specific code to platform specific drivers, not in PciHostBridge driver. The PciPlatform driver is design a common driver in Hisilicon,so move this driver to Hisilion/Drvers. Remove the

[edk2] [PATCH edk2-platforms v2 04/12] Hisilicon/Pci: Add two api for PciPlatform driver

2018-07-24 Thread Ming Huang
PciPlatform may add some features platform special, like InitAtu and EnlargeAtu for Hi161x, MaxPlayload for Hi1620. So Add two api for expansibility. This patch is to prepare moving EnlargeAtuConfig0() out of PciHostBridge. Since the function was originally called in NotifyPhase() of phase

[edk2] [PATCH edk2-platforms v2 07/12] Hisilicon/PlatformPciLib: add segment for each root bridge

2018-07-24 Thread Ming Huang
From: Heyi Guo This is to prepare for switching to generic PciHostBridge driver. We are going to create a PciHostBridgeLib instance for D0x and fetch PCI root bridge informance from PlatformPciLib, so we add Segment to PCI_ROOT_BRIDGE_RESOURCE_APPETURE along with other PCI resource information.

[edk2] [PATCH edk2-platforms v2 00/12] Switching to generic PciHostBridge driver

2018-07-24 Thread Ming Huang
The major features of this patchset include: 1 switching to generic PciHostBridge driver; 2 Change DEBUG log level; Code can also be found in github: https://github.com/hisilicon/OpenPlatformPkg.git branch: pcihostbridge-v2 Heyi Guo (9): Hisilicon: Enable WARN and INFO debug message

[edk2] [PATCH edk2-platforms v2 02/12] Hisilicon/D05/PlatformPciLib: fix misuse of macro

2018-07-24 Thread Ming Huang
From: Heyi Guo Each PCI root bridge has its own macro definitions for its resource aperture, so that one root bridge should not use macro definitions of other root bridges. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo Cc: Ard Biesheuvel Cc: Leif Lindholm

[edk2] [PATCH edk2-platforms v2 06/12] Hisilicon/Pci: move EnlargeAtuConfig0() to PciPlatformLib

2018-07-24 Thread Ming Huang
we move all platform specific code to platform specific module, not in PciHostBridge driver. This is to prepare for switching to generic PciHostBridge driver, so This patch is to move EnlargeAtuConfig0() into PcieInitDxe, in PlatformNotify() of EFI_PCI_PLATFORM_PROTOCOL and implement api