[edk2] [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] Blue tooth device.

2017-10-12 Thread lushifex
Use Pcd to select blue tooth device. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lushifex --- .../Board/MinnowBoard3/BoardInitPostMem/BoardInit.c| 7 +++ .../Board/MinnowBoard3/BoardInitPostMem/BoardInitMiscs.h | 7

Re: [edk2] [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] Blue tooth device.

2017-10-12 Thread Wei, David
Reviewed-by: zwei4 Thanks, David Wei Intel SSG/STO/UEFI BIOS > -Original Message- > From: Lu, ShifeiX A > Sent: Friday, October 13, 2017 1:38 PM > To: edk2-devel@lists.01.org > Cc: Wei, David > Subject:

Re: [edk2] [Patch v3 2/3] UefiCpuPkg/S3Resume2Pei: Send S3 resume finished event to SmmCore.

2017-10-12 Thread Laszlo Ersek
Hi, I'm sorry that I couldn't comment on this patch in time. However, I must observe that version 1 of the patch, 1507688554-10264-3-git-send-email-eric.dong@intel.com">http://mid.mail-archive.com/1507688554-10264-3-git-send-email-eric.dong@intel.com was sent out at 04:22 AM on 11 Oct, in my

[edk2] [Patch] UefiCpuPkg/S3Resume2Pei: Handle Communicate Ppi not exist issue.

2017-10-12 Thread Eric Dong
Current code assume Communicate Ppi always existed, so it adds ASSERT to confirm it. Ovmf platform happened not has this Ppi, so the ASSERT been trig. This patch handle Ppi not existed case. Cc: Ruiyu Ni Cc: Jiewen Yao Cc: Laszlo Ersek

[edk2] [PATCH 3/4] UefiCpuPkg/MtrrLib: Update algorithm to calculate optimal settings

2017-10-12 Thread Ruiyu Ni
The new algorithm converts the problem calculating optimal MTRR settings (using least MTRR registers) to the problem finding the shortest path in a graph. The memory required in extreme but rare case can be up to 256KB, so using local stack buffer is impossible considering current DxeIpl only

[edk2] [PATCH 2/4] UefiCpuPkg/MtrrLib: Optimize MtrrLibLeastAlignment()

2017-10-12 Thread Ruiyu Ni
The patch changes MtrrLibLeastAlignment() to MtrrLibBiggestAlignment() and optimizes the implementation to be more efficient. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Cc: Michael D Kinney Cc: Eric Dong

[edk2] [PATCH 1/4] UefiCpuPkg/MtrrLib: refine MtrrLibProgramFixedMtrr()

2017-10-12 Thread Ruiyu Ni
The patch replaces some if-checks with assertions because they are impossible to happen. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Cc: Michael D Kinney Cc: Eric Dong ---

[edk2] [PATCH 4/4] UefiCpuPkg/MtrrLib: Skip Base MSR access when the pair is invalid

2017-10-12 Thread Ruiyu Ni
The patch optimized the MTRR access code to skip the Base MSR access when the Mask MSR indicates the pair is invalid. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Cc: Michael D Kinney ---

Re: [edk2] [PATCH] UefiCpuPkg/PiSmmCpuDxeSmm: Fix bitwise size issue (K11)

2017-10-12 Thread Wu, Hao A
Reviewed-by: Hao Wu Best Regards, Hao Wu > -Original Message- > From: Wang, Jian J > Sent: Thursday, October 12, 2017 2:00 PM > To: edk2-devel@lists.01.org > Cc: Dong, Eric; Wu, Hao A > Subject: [PATCH] UefiCpuPkg/PiSmmCpuDxeSmm: Fix bitwise size issue (K11) > >

[edk2] [Patch] UefiCpuPkg/S3Resume2Pei: Handle Communicate Ppi not exist issue.

2017-10-12 Thread Eric Dong
Current code assume Communicate Ppi always existed, so it adds ASSERT to confirm it. Ovmf platform happened not has this Ppi, so the ASSERT been trig. This patch handle Ppi not existed case. Cc: Ruiyu Ni Cc: Jiewen Yao Cc: Laszlo Ersek

Re: [edk2] [Patch] UefiCpuPkg/S3Resume2Pei: Handle Communicate Ppi not exist issue.

2017-10-12 Thread Dong, Eric
Hi Laszlo, > -Original Message- > From: Laszlo Ersek [mailto:ler...@redhat.com] > Sent: Thursday, October 12, 2017 5:43 PM > To: Dong, Eric ; edk2-devel@lists.01.org > Cc: Ni, Ruiyu ; Yao, Jiewen > Subject: Re: [edk2] [Patch]

Re: [edk2] [Patch] UefiCpuPkg/S3Resume2Pei: Handle Communicate Ppi not exist issue.

2017-10-12 Thread Dong, Eric
Hi all, please ignore this patch, please this is not a full fix. Will send a new one soon. -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Eric Dong Sent: Thursday, October 12, 2017 4:33 PM To: edk2-devel@lists.01.org Cc: Ni, Ruiyu

Re: [edk2] [Patch v3 2/3] UefiCpuPkg/S3Resume2Pei: Send S3 resume finished event to SmmCore.

2017-10-12 Thread Dong, Eric
Hi Laszlo, Sorry for this patch break OVMF. Platform without this Ppi is not what we expected before. So we just add ASSERT here. I will send a patch ASAP to fix this ASSERT case. Also we will provide another patch later to handle the platform without this Ppi case. Thanks, Eric

[edk2] [PATCH] SecurityPkg:AuthVariableLib:Implement ECR1707 for Private Auth Variable

2017-10-12 Thread Zhang, Chao B
ECR1707 for UEFI2.7 clarified certificate management rule for private time-based AuthVariable.Trusted cert rule changed from whole signer's certificate stack to top-level issuer cert tbscertificate + SignerCert CN for better management compatibility. Hash is used to reduce storage overhead. Cc:

Re: [edk2] [Patch] UefiCpuPkg/S3Resume2Pei: Handle Communicate Ppi not exist issue.

2017-10-12 Thread Laszlo Ersek
Hi Eric, On 10/12/17 10:37, Eric Dong wrote: > Current code assume Communicate Ppi always existed, so it adds > ASSERT to confirm it. Ovmf platform happened not has this Ppi, so > the ASSERT been trig. This patch handle Ppi not existed case. > > Cc: Ruiyu Ni > Cc: Jiewen Yao

Re: [edk2] [platforms: PATCH 1/8] Marvell/Armada: Implement EFI_RNG_PROTOCOL driver for EIP76 TRNG

2017-10-12 Thread Leif Lindholm
On Thu, Oct 12, 2017 at 06:39:46AM +0200, Marcin Wojtas wrote: > 2017-10-11 20:15 GMT+02:00 Ard Biesheuvel : > > On 11 October 2017 at 17:47, Leif Lindholm wrote: > >> On Wed, Oct 11, 2017 at 05:40:42PM +0200, Marcin Wojtas wrote: > >>> From:

Re: [edk2] [platforms: PATCH 6/8] Marvell/Armada: Enable dynamic DRAM size detection

2017-10-12 Thread Marcin Wojtas
2017-10-12 12:50 GMT+02:00 Leif Lindholm : > > On Thu, Oct 12, 2017 at 07:47:52AM +0200, Marcin Wojtas wrote: > > 2017-10-11 19:56 GMT+02:00 Leif Lindholm : > > > On Wed, Oct 11, 2017 at 05:40:47PM +0200, Marcin Wojtas wrote: > > >> Instead of

Re: [edk2] [platforms: PATCH 6/8] Marvell/Armada: Enable dynamic DRAM size detection

2017-10-12 Thread Leif Lindholm
On Thu, Oct 12, 2017 at 07:47:52AM +0200, Marcin Wojtas wrote: > 2017-10-11 19:56 GMT+02:00 Leif Lindholm : > > On Wed, Oct 11, 2017 at 05:40:47PM +0200, Marcin Wojtas wrote: > >> Instead of using hardcoded value in PcdSystemMemorySize PCD, > >> obtain DRAM size directly

[edk2] [PATCH] UefiCpuPkg/PiSmmCpuDxeSmm: Fix bitwise size issue (K11)

2017-10-12 Thread Jian J Wang
Cc: Eric Dong Cc: Hao A Wu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jian J Wang --- UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[edk2] [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] QR code display under EFI Shell

2017-10-12 Thread xianhu2x
Showing QR code and website link to screen under EFI shell for MinnowBoard. Output website link to serial port too. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: xianhu2x --- .../MinnowBoard3/BoardInitPostMem/BoardInit.c | 5 +

[edk2] [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] Minor BIOS ID.

2017-10-12 Thread lushifex
Update Minor version of BIOS ID. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lushifex --- Platform/BroxtonPlatformPkg/BiosId.env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Platform/BroxtonPlatformPkg/BiosId.env

Re: [edk2] [PATCH] IntelFrameworkModulePkg/LegacyBiosDxe: Fix GCC5 build warning

2017-10-12 Thread Laszlo Ersek
On 10/12/17 04:00, Bi, Dandan wrote: > Reviewed-by: Dandan Bi > > -Original Message- > From: Wang, Jian J > Sent: Thursday, October 12, 2017 9:04 AM > To: edk2-devel@lists.01.org > Cc: Laszlo Ersek ; Gao, Liming ; Bi, >

Re: [edk2] [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] QR code display under EFI Shell

2017-10-12 Thread Wei, David
Reviewed-by: zwei4 Thanks, David Wei Intel SSG/STO/UEFI BIOS > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of > xianhu2x > Sent: Thursday, October 12, 2017 2:53 PM > To:

Re: [edk2] [PATCH 1/1] ArmPkg/Include: Update MM interface return codes to match specification.

2017-10-12 Thread Achin Gupta
On Thu, Oct 12, 2017 at 01:30:43AM +0100, Supreeth Venkatesh wrote: > This patch corrects the Management Mode(MM) return codes as specified in > http://infocenter.arm.com/help/topic/com.arm.doc.den0060a/DEN0060A_ARM_MM_Interface_Specification.pdf. > > Contributed-under: TianoCore Contribution

Re: [edk2] [PATCH 0/2] Dynamic Tables

2017-10-12 Thread Leif Lindholm
On Tue, Oct 10, 2017 at 06:52:02PM +, Evan Lloyd wrote: > > I notice you only defined ARM namespace in this patch, and implemented > > ARM library instance. > > Also most consumers of ConfigurationManager are from ARM platform > > package. So if it urgent from ARM platform, you may consider to

Re: [edk2] [PATCH 0/2] Dynamic Tables

2017-10-12 Thread Ard Biesheuvel
On 12 October 2017 at 16:43, Leif Lindholm wrote: > On Tue, Oct 10, 2017 at 06:52:02PM +, Evan Lloyd wrote: >> > I notice you only defined ARM namespace in this patch, and implemented >> > ARM library instance. >> > Also most consumers of ConfigurationManager are

[edk2] [PATCH v1 0/3] *** EFI_MM_COMMUNICATION_PROTOCOL ***

2017-10-12 Thread Supreeth Venkatesh
*** PI v1.5 Specification Volume 4 defines Management Mode Core Interface and defines EFI_MM_COMMUNICATION_PROTOCOL. This protocol provides a means of communicating between drivers outside of MM and MMI handlers inside of MM. EFI_MM_COMMUNICATION_PROTOCOL Summary This protocol provides a means

[edk2] [PATCH v1 1/3] ArmPkg/Drivers: Add EFI_MM_COMMUNICATION_PROTOCOL DXE driver.

2017-10-12 Thread Supreeth Venkatesh
PI v1.5 Specification Volume 4 defines Management Mode Core Interface and defines EFI_MM_COMMUNICATION_PROTOCOL. This protocol provides a means of communicating between drivers outside of MM and MMI handlers inside of MM. This patch implements the EFI_MM_COMMUNICATION_PROTOCOL DXE runtime driver

[edk2] [PATCH v1 2/3] ArmPkg/Drivers: Add ArmMmCommunication Driver information file.

2017-10-12 Thread Supreeth Venkatesh
This patch adds the MM Communication driver (.inf) file to define entry point for this driver and other compile related information the driver needs. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Supreeth Venkatesh ---

[edk2] [PATCH v1 3/3] ArmPkg: Add PCDs needed for MM communication driver.

2017-10-12 Thread Supreeth Venkatesh
This patch defines PCDs to describe the base address and size of communication buffer between normal world (uefi) and standalone MM environment in the secure world. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Supreeth Venkatesh ---

[edk2] [[edk2-platforms] PATCH v1 1/1] Platform/VExpressPkg: Enable MM communication driver.

2017-10-12 Thread Supreeth Venkatesh
This patch enables MmCommunicationDxe on AArch64 Fixed Virtual Platform (FVP) by defining required PCDs and driver inf file. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Supreeth Venkatesh ---

Re: [edk2] [PATCH v1 3/3] ArmPkg: Add PCDs needed for MM communication driver.

2017-10-12 Thread Ard Biesheuvel
Hi Supreeth, On 12 October 2017 at 18:13, Supreeth Venkatesh wrote: > This patch defines PCDs to describe the base address and size of > communication buffer between normal world (uefi) and standalone MM > environment in the secure world. > > Contributed-under:

Re: [edk2] [PATCH v1 3/3] ArmPkg: Add PCDs needed for MM communication driver.

2017-10-12 Thread Supreeth Venkatesh
On Thu, 2017-10-12 at 18:18 +0100, Ard Biesheuvel wrote: > Hi Supreeth, > > On 12 October 2017 at 18:13, Supreeth Venkatesh > wrote: > > > > This patch defines PCDs to describe the base address and size of > > communication buffer between normal world (uefi) and

Re: [edk2] [PATCH v1 1/3] ArmPkg/Drivers: Add EFI_MM_COMMUNICATION_PROTOCOL DXE driver.

2017-10-12 Thread Ard Biesheuvel
Hi Supreeth, On 12 October 2017 at 18:13, Supreeth Venkatesh wrote: > PI v1.5 Specification Volume 4 defines Management Mode Core Interface > and defines EFI_MM_COMMUNICATION_PROTOCOL. This protocol provides a > means of communicating between drivers outside of MM

Re: [edk2] [PATCH v1 0/3] *** EFI_MM_COMMUNICATION_PROTOCOL ***

2017-10-12 Thread Achin Gupta
Hi Supreeth, Could you acknowledge me as a contributor in the relevant patches and repost? cheers, Achin On Thu, Oct 12, 2017 at 06:13:49PM +0100, Supreeth Venkatesh wrote: > *** > PI v1.5 Specification Volume 4 defines Management Mode Core Interface > and defines EFI_MM_COMMUNICATION_PROTOCOL.

Re: [edk2] [PATCH v1 0/3] *** EFI_MM_COMMUNICATION_PROTOCOL ***

2017-10-12 Thread Supreeth Venkatesh
On Thu, 2017-10-12 at 18:38 +0100, Achin Gupta wrote: > Hi Supreeth, > > Could you acknowledge me as a contributor in the relevant patches and > repost? Can sure do as done in previous patches. However, Since I wanted you to review as well the latest changes, I was not sure whether co-author can

Re: [edk2] [PATCH v1 0/3] *** EFI_MM_COMMUNICATION_PROTOCOL ***

2017-10-12 Thread Achin Gupta
On Thu, Oct 12, 2017 at 12:43:13PM -0500, Supreeth Venkatesh wrote: > On Thu, 2017-10-12 at 18:38 +0100, Achin Gupta wrote: > > Hi Supreeth, > > > > Could you acknowledge me as a contributor in the relevant patches and > > repost? > Can sure do as done in previous patches. However, Since I wanted

Re: [edk2] [PATCH 01/19] ArmPlatformPkg: Tidy LcdGraphicsOutputDxe code: Coding standard

2017-10-12 Thread Leif Lindholm
On Tue, Sep 26, 2017 at 09:15:11PM +0100, evan.ll...@arm.com wrote: > From: Girish Pathak > > There is no functional modification in this change > As preparation for further work, the formatting is corrected to meet > the EDKII coding standard. > Of specific note, some

Re: [edk2] [PATCH 02/19] ArmPlatformPkg: Tidy LcdGraphicsOutputDxe code: Added comments

2017-10-12 Thread Leif Lindholm
Given that all changes to the first file _remove_ comments, it may be better with a subject line saying "updating comments". On Tue, Sep 26, 2017 at 09:15:12PM +0100, evan.ll...@arm.com wrote: > From: Girish Pathak > > There is no functional modification in this change >

Re: [edk2] [PATCH 03/19] ArmPlatformPkg: PL111 and HDLCD: add const qualifier

2017-10-12 Thread Leif Lindholm
On Tue, Sep 26, 2017 at 09:15:13PM +0100, evan.ll...@arm.com wrote: > From: Girish Pathak > > This change adds some STATIC and CONST qualifiers (mainly to arguments > of functions) in PL111 and HdLcd modules. > > It doesn't add or modify any functionality. If you delete

Re: [edk2] [PATCH 04/19] ArmPlatformPkg: LcdGraphicsOurputDxe: Add debug asserts

2017-10-12 Thread Leif Lindholm
On Tue, Sep 26, 2017 at 09:15:14PM +0100, evan.ll...@arm.com wrote: > From: Girish Pathak > > This change adds some debug assertions e.g to catch NULL pointer errors > missing in PL11Lcd and HdLcd modules. > > This change also improves related error handling code. > >

Re: [edk2] [PATCH 05/19] ArmPlatformPkg: PL111LcdArmVExpressLib: Minor code cleanup

2017-10-12 Thread Leif Lindholm
On Tue, Sep 26, 2017 at 09:15:15PM +0100, evan.ll...@arm.com wrote: > From: Girish Pathak > > This minor change removes some unecessary initializations and variables > in PL111LcdArmVExpress.c > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by:

Re: [edk2] [PATCH 07/19] ArmPlatformPkg: PL111LcdArmVExpressLib: Use FixedPcdGet32

2017-10-12 Thread Leif Lindholm
On Tue, Sep 26, 2017 at 09:15:17PM +0100, evan.ll...@arm.com wrote: > From: Girish Pathak > > PcdPL111LcdVideoModeOscId and PcdPL111LcdMaxMode are declared as fixed > PCDs. However code uses PcdGet32 call to get these values. > This change replaces PcdGet32 with

Re: [edk2] [PATCH 09/19] ArmPlatformPkg: HdLcdArmVExpressLib: Use FixedPcdGet32

2017-10-12 Thread Leif Lindholm
On Tue, Sep 26, 2017 at 09:15:19PM +0100, evan.ll...@arm.com wrote: > From: Girish Pathak > > PcdHdLcdVideoModeOscId is declared as a fixed PCD. However code > uses the PcdGet32 call to get this value. > This change replaces PcdGet32 with FixedPcdGet32. > >

Re: [edk2] [PATCH 11/19] ArmPlatformPkg: Implement LcdIdentify function for HDLCD GOP

2017-10-12 Thread Leif Lindholm
On Tue, Sep 26, 2017 at 09:15:21PM +0100, evan.ll...@arm.com wrote: > From: Girish Pathak > > LcdIdentify function does not currently check presence of HDLCD > controller. > > Implement this functionality by reading HDLCD_REG_VERSION and checking > against the PRODUCT_ID

Re: [edk2] [PATCH 03/19] ArmPlatformPkg: PL111 and HDLCD: add const qualifier

2017-10-12 Thread Ard Biesheuvel
On 26 September 2017 at 21:15, wrote: > From: Girish Pathak > > This change adds some STATIC and CONST qualifiers (mainly to arguments > of functions) in PL111 and HdLcd modules. > > It doesn't add or modify any functionality. > > Contributed-under:

Re: [edk2] [PATCH v5 1/2] UefiCpuPkg/SmmCpuFeaturesLib: Use global variables to replace macros

2017-10-12 Thread Paolo Bonzini
On 11/10/2017 21:45, Leo Duran wrote: > + // Override PSD offset for AMD > + // > + if (SmmStandardSignatureIsAuthenticAMD ()) { > +gStmPsdOffset = AMD_SMM_PSD_OFFSET; > + } > + I think the right thing to do here would be to use the SMM state save map revision; in the case of AMD, the low

Re: [edk2] [PATCH 5/5] UefiCpuPkg/PiSmmCpuDxeSmm: Disable page table protection

2017-10-12 Thread Dong, Eric
Hi Jian, > + if (!mCpuSmmStaticPageTable || (PcdGet8 (PcdHeapGuardPropertyMask) > & > + BIT3 | BIT2) != 0) { I think above code logic is not correct, the "&" will be handled before the "|" which is not an expected order, right? Thanks, Eric > -Original Message- > From: Wang, Jian J >

Re: [edk2] [PATCH 2/5] MdeModulePkg/PiSmmCore: Implement heap guard feature for SMM mode

2017-10-12 Thread Dong, Eric
Hi Jian, I think below code not follow EDKII coding style, EDKII requires definition and assignment in different code. + UINTN LevelShift[GUARDED_HEAP_MAP_TABLE_DEPTH] += GUARDED_HEAP_MAP_TABLE_DEPTH_SHIFTS; + UINTN

Re: [edk2] [PATCH v5 0/2] Enhanced SMM support for AMD-based x86 systems.

2017-10-12 Thread Yao, Jiewen
HI Leo Thank you very much. This patch looks good to me in general. Some minor comment: 1) For AMD smm save state. I saw Paolo gave the comment on how to detect AMD save state. I do not have strong opinion on that. I think you and Paolo can make decision. I recommend we move

Re: [edk2] [PATCH v5 0/2] Enhanced SMM support for AMD-based x86 systems.

2017-10-12 Thread Yao, Jiewen
Hi Leo I just have another thought, when I review code again. Do we *have to* make AMD SMM PSD offset to 0xfc00? SMM PSD is just a *software* concept. Not hardware requirement. What is broken, if we design AMD SMM PSD offset to be 0xfb00, (same as existing code)? Thank you Yao Jiewen From: