[edk2] about I2C support in MinnowBoard MAX

2015-04-29 Thread Yao, Jiewen
Hi I found in I2C library in MinnowMax. Vlv2DeviceRefCodePkg\ValleyView2Soc\SouthCluster\Include\Library\I2CLib.h In DSC file, it used a NULL Instance. I2cLib|Vlv2TbltDevicePkg/Library/I2CLib/I2CLibNull.inf The implementation in I2CLib seems return nothing. Vlv2TbltDevicePkg\Library\I2CLib\I

[edk2] [Patch 0/2] Enhance the check for numeric opcode.

2015-04-29 Thread Eric Dong
Base on UEFI spec 2.5 description, enhance the check for numeric opcode with EFI_IFR_DISPLAY_INT_DEC attribute. Eric Dong (2): BaseTools: Enhance the check for numeric opcode with EFI_IFR_DISPLAY_INT_DEC attribute. MdeModulePkg: Enhance the check for numeric opcode with EFI_IFR_DISPLAY

[edk2] [Patch 1/2] BaseTools: Enhance the check for numeric opcode with EFI_IFR_DISPLAY_INT_DEC attribute.

2015-04-29 Thread Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong --- BaseTools/Source/C/VfrCompile/VfrFormPkg.h | 8 ++ BaseTools/Source/C/VfrCompile/VfrSyntax.g | 170 + 2 files changed, 156 insertions(+), 22 deletions(-) diff --git a/BaseTools/Sou

[edk2] [Patch 2/2] MdeModulePkg: Enhance the check for numeric opcode with EFI_IFR_DISPLAY_INT_DEC attribute.

2015-04-29 Thread Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong --- MdeModulePkg/Library/UefiHiiLib/HiiLib.c | 100 ++ .../Universal/DisplayEngineDxe/InputHandler.c | 202 + MdeModulePkg/Universal/SetupBrowserDxe/Setup.c | 40 +++-

[edk2] [Patch 3/3] MdeModulePkg: Add match2 opcode support in SetupBrowserDxe and sample code in DriverSampleDxe.vfr

2015-04-29 Thread Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong --- .../Universal/DriverSampleDxe/NVDataStruc.h| 1 + MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr | 13 ++ .../Universal/DriverSampleDxe/VfrStrings.uni | Bin 61414 -> 62662 bytes .../Universa

[edk2] [Patch 0/3] Enable Match2 opcode support. Also add definition

2015-04-29 Thread Eric Dong
Base on UEFI spec 2.5 request, add match2 opcode support. Also add regular expression protocol definition. Eric Dong (3): BaseTools: Enable Match2 Opcode. MdePkg: Add Regular Expression Protocol and match2 opcode definition. MdeModulePkg: Add match2 opcode support in SetupBrowserDxe and samp

[edk2] [Patch 2/3] MdePkg: Add Regular Expression Protocol and match2 opcode definition.

2015-04-29 Thread Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong --- .../Include/Protocol/RegularExpressionProtocol.h | 178 + .../Include/Uefi/UefiInternalFormRepresentation.h | 6 + MdePkg/MdePkg.dec | 14 +- 3 files cha

[edk2] [Patch 1/3] BaseTools: Enable Match2 Opcode.

2015-04-29 Thread Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong --- .../C/Include/Common/UefiInternalFormRepresentation.h | 6 ++ BaseTools/Source/C/VfrCompile/VfrFormPkg.cpp| 3 ++- BaseTools/Source/C/VfrCompile/VfrFormPkg.h | 17

Re: [edk2] [Patch 0/2] Enable refresh opcode to refresh entire form.

2015-04-29 Thread Gao, Liming
Eric: The patch serials are good to me. Reviewed-by: Liming Gao Thanks Liming -Original Message- From: Dong, Eric Sent: Thursday, April 30, 2015 12:44 PM To: edk2-devel@lists.sourceforge.net; Gao, Liming Subject: [Patch 0/2] Enable refresh opcode to refresh entire form. Base on UEFI

Re: [edk2] [Patch 0/2] Enable buffer type value for default/oneofoption

2015-04-29 Thread Gao, Liming
Eric: The patch serials are good to me. Reviewed-by: Liming Gao Thanks Liming -Original Message- From: Dong, Eric Sent: Thursday, April 30, 2015 1:02 PM To: edk2-devel@lists.sourceforge.net; Gao, Liming Subject: [Patch 0/2] Enable buffer type value for default/oneofoption In order

[edk2] [Patch 1/2] BaseTools: Enable buffer type value for default and oneofoption opcode.

2015-04-29 Thread Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong --- BaseTools/Source/C/VfrCompile/VfrFormPkg.h | 4 +- BaseTools/Source/C/VfrCompile/VfrSyntax.g | 234 +++- BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp | 6 +- 3 files changed,

[edk2] [Patch 2/2] MdeModulePkg: Enable buffer type value for default and oneofoption opcode.

2015-04-29 Thread Eric Dong
In order to support default value for orderedlist opcode, support buffer type value for default/oneofoption opcode. If oneofoption used as a default value, it will not be added to normal option list. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong --- MdeModuleP

[edk2] [Patch 0/2] Enable buffer type value for default/oneofoption

2015-04-29 Thread Eric Dong
In order to support default value for ordered list opcode, enable buffer type value for default/OneOfOption opcode. Eric Dong (2): BaseTools: Enable buffer type value for default and oneofoption opcode. MdeModulePkg: Enable buffer type value for default and oneofoption opcode. BaseTo

[edk2] [Patch 2/2] MdeModluePkg: Enable refresh opcode to refresh the entire form.

2015-04-29 Thread Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong --- MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c | 20 ++- .../Universal/SetupBrowserDxe/Presentation.c | 68 -- MdeModulePkg/Universal/SetupBrowserDxe/Setup.h | 1 + 3 files

[edk2] [Patch 0/2] Enable refresh opcode to refresh entire form.

2015-04-29 Thread Eric Dong
Base on UEFI spec 2.5 request, enhance refresh opcode to refresh entire form. Eric Dong (2): BaseTool: Add refresh form opcode in vfrcompiler. MdeModluePkg: Enable refresh opcode to refresh the entire form. BaseTools/Source/C/VfrCompile/VfrSyntax.g | 10 ++-- MdeModulePkg/Universal/

[edk2] [Patch 1/2] BaseTool: Add refresh form opcode in vfrcompiler.

2015-04-29 Thread Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong --- BaseTools/Source/C/VfrCompile/VfrSyntax.g | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/BaseTools/Source/C/VfrCompile/VfrSyntax.g b/BaseTools/Source/C/VfrCompile/VfrSyntax.g inde

Re: [edk2] [Patch]: AsmFlushCacheLine() bug fixes: MdePkg/BaseLib

2015-04-29 Thread Tian, Feng
Looks good to me. Reviewed-by: Feng Tian From: Kinney, Michael D Sent: Thursday, April 30, 2015 10:29 To: edk2-devel@lists.sourceforge.net; Justen, Jordan L; Tian, Feng Subject: [edk2] [Patch]: AsmFlushCacheLine() bug fixes: MdePkg/BaseLib MdePkg/BaseLib: Preserve EBX register and fix stack off

[edk2] [Patch]: AsmFlushCacheLine() bug fixes: MdePkg/BaseLib

2015-04-29 Thread Kinney, Michael D
MdePkg/BaseLib: Preserve EBX register and fix stack offset to LinearAddress in AsmFlushCacheLine() The value of EBX must be preserved to follow IA32 cdecl calling convention in the assembly implementation of AsmFlushCacheLine(). The CPUID instruction modifies the EBX register. The EBX register

Re: [edk2] how to produce COD file for library files?

2015-04-29 Thread TigerLiu
Hi, Jie: You are right! Thanks a lot! Best wishes, 发件人: Lin, Jie [mailto:jie@intel.com] 发送时间: 2015年4月29日 20:09 收件人: edk2-devel@lists.sourceforge.net 主题: Re: [edk2] how to produce COD file for library files? You looked at a wrong location. The cod file for library locates in the output dire

Re: [edk2] [PATCH 1/3] SecurityPkg: remove unused variables

2015-04-29 Thread Zhang, Chao B
Laszlo: Thanks for you clarification. I am OK with Option 1 since this issue is not a logic bug. I will wait for Olivier to check in whole patch. Thanks & Best regards Chao Zhang -Original Message- From: Laszlo Ersek [mailto:ler...@redhat.com] Sent: Wednesday, April 29, 2015 11

[edk2] [patch] clean up FSP

2015-04-29 Thread Yao, Jiewen
IntelFpsPkg: clean update API name for ASM. Also add FSP_INFO_HEADER_SIGNATURE and FSP_INFO_EXTENDED_HEADER_SIGNATURE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" mailto:jiewen@intel.com>> Reviewed-by: "Ma, Maurice" mailto:maurice...@intel.com>>

[edk2] [PATCH 0/3] Fix poweroff crash on arm64 FVP Foundation model

2015-04-29 Thread Ard Biesheuvel
As it turns out, the poweroff crash on the Foundation model was caused by the fact that the default VExpress EfiResetSystemLib expects to find the syscfg MMIO register block at its boot time ID mapped offset. However, at runtime, it is only accessible if it is runtime remapped, which is cumbersome

[edk2] [PATCH 2/3] ArmVExpressPkg: use PSCI for system reset at runtime

2015-04-29 Thread Ard Biesheuvel
Since the default EfiResetSystemLib for VExpress cannot be used at runtime (due to the fact that its MMIO registers need to be owned by the OS and so cannot be runtime remapped), instead use PSCI calls into EL3 at runtime. At boot time, the original EfiResetSystemLib is retained. Contributed-under

[edk2] [PATCH 3/3] ArmVExpressPkg: disallow the use of ArmVExpressSysConfigLib at runtime

2015-04-29 Thread Ard Biesheuvel
The ArmVExpressSysConfigLib library does not (and cannot) runtime remap its MMIO registers, so we should prevent it from being used by runtime drivers. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel --- .../Library/ArmVExpressSysConfigLib/ArmVExpressSysConf

[edk2] [PATCH 1/3] ArmPlatformPkg: remove VExpress system clock from PL031 driver

2015-04-29 Thread Ard Biesheuvel
The PL031 RTC driver library is used by the implementation of the GetTime/SetTime Runtime Services. This is why it registers its MMIO registers as requiring runtime remapping. However, in some cases, it calls into the VExpress sysconfig library to access a platform specific battery backed clock, a

[edk2] Find LBA of the HDD.

2015-04-29 Thread S . Vieira
Hi everyone... So, i done a code to issue command to ATA device. The command is B0/DAh to verify the result of the SHORT SELF TEST. Packet.Protocol = EFI_ATA_PASS_THRU_PROTOCOL_ATA_NON_DATA; Packet.Length = EF

Re: [edk2] [PATCH 1/3] SecurityPkg: remove unused variables

2015-04-29 Thread Laszlo Ersek
On 04/29/15 16:08, Zhang, Chao B wrote: > Laszlo: > Can you provide more info about the environment on which build failure > exposes. Ard answered that; then: > When do you plan to check in this patch? I don't (unless asked specifically). The patchset is mainly for ArmPlatformPkg. In such ca

Re: [edk2] [PATCH 1/3] SecurityPkg: remove unused variables

2015-04-29 Thread Ard Biesheuvel
On 29 April 2015 at 16:08, Zhang, Chao B wrote: > Laszlo: > Can you provide more info about the environment on which build failure > exposes. > When do you plan to check in this patch? > Hi Chao, Let me reply to that since I am the author of the patch. When building with optimization enabled

Re: [edk2] [PATCH 1/3] SecurityPkg: remove unused variables

2015-04-29 Thread Zhang, Chao B
Laszlo: Can you provide more info about the environment on which build failure exposes. When do you plan to check in this patch? Thanks & Best regards Chao Zhang -Original Message- From: Zhang, Chao B Sent: Tuesday, April 28, 2015 10:37 AM To: 'edk2-devel@lists.sourceforge.net' Cc:

Re: [edk2] how to produce COD file for library files?

2015-04-29 Thread Lin, Jie
You looked at a wrong location. The cod file for library locates in the output directory of the module that use these libraries. From: Tian, Feng [mailto:feng.t...@intel.com] Sent: Wednesday, April 29, 2015 8:00 PM To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] how to produce COD file f

Re: [edk2] how to produce COD file for library files?

2015-04-29 Thread Tian, Feng
use /GL- /Od rather than /O1ib2s and /GL From: tiger...@zhaoxin.com [mailto:tiger...@zhaoxin.com] Sent: Wednesday, April 29, 2015 7:29 PM To: edk2-devel@lists.sourceforge.net Subject: [edk2] how to produce COD file for library files? Hi, experts: I revised Conf/tools.def.txt : DEBUG_VS2008x86_X64

[edk2] how to produce COD file for library files?

2015-04-29 Thread TigerLiu
Hi, experts: I revised Conf/tools.def.txt : DEBUG_VS2008x86_X64_CC_FLAGS = /nologo /c /WX /GS- /X /W4 /Gs32768 /D UNICODE /O1ib2s /GL /Gy /FIAutoGen.h /EHs-c- /GR- /GF /Zi /Gm /FAcs Added /FAcs options. So, drivers could produce *.COD file . But library could not produce corresponding *.COD

Re: [edk2] [Patch] MdePkg, MdeModulePkg: Remove EFI_NOT_FOUND from I2C IO protocol

2015-04-29 Thread Lin, Jie
Reviewed-by: Auber Lin -Original Message- From: Ni, Ruiyu Sent: Tuesday, April 28, 2015 4:34 PM To: edk2-devel@lists.sourceforge.net Cc: Ni, Ruiyu; Lin, Jie Subject: [Patch] MdePkg, MdeModulePkg: Remove EFI_NOT_FOUND from I2C IO protocol It's to follow the PI spec 1.4. Contributed-unde

Re: [edk2] [Patch 2/2] MdeModulePkg: Remove EFI_ABORTED from I2C protocols per PI spec 1.4.

2015-04-29 Thread Lin, Jie
Reviewed-by: Auber Lin -Original Message- From: Ni, Ruiyu Sent: Tuesday, April 28, 2015 4:26 PM To: edk2-devel@lists.sourceforge.net Cc: Ni, Ruiyu; Lin, Jie Subject: [Patch 2/2] MdeModulePkg: Remove EFI_ABORTED from I2C protocols per PI spec 1.4. Contributed-under: TianoCore Contributi

Re: [edk2] [Patch 1/2] MdePkg: Remove EFI_ABORTED from I2C protocols per PI spec 1.4.

2015-04-29 Thread Lin, Jie
Reviewed-by: Auber Lin -Original Message- From: Ni, Ruiyu Sent: Tuesday, April 28, 2015 4:26 PM To: edk2-devel@lists.sourceforge.net Cc: Ni, Ruiyu; Lin, Jie Subject: [Patch 1/2] MdePkg: Remove EFI_ABORTED from I2C protocols per PI spec 1.4. Contributed-under: TianoCore Contribution Agr

[edk2] [Patch] MdeModulePkg: Update comments for PcdMemoryProfileMemoryType

2015-04-29 Thread Liming Gao
PcdMemoryProfileMemoryType also includes EfiPersistentMemory. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Star Zeng --- MdeModulePkg/MdeModulePkg.dec | 1 + MdeModulePkg/MdeModulePkg.uni | Bin 163392 -> 163654 bytes 2 files changed, 1 insert

Re: [edk2] [Patch V3 02/16] IntelFrameworkModulePkg: Change BdsDxe to use new PCDs defined in MdePkg and MdeModulePkg.

2015-04-29 Thread Fan, Jeff
Reviewed-by: Jeff Fan -Original Message- From: Ni, Ruiyu Sent: Monday, April 27, 2015 10:54 AM To: edk2-devel@lists.sourceforge.net Cc: Ni, Ruiyu; Fan, Jeff Subject: [Patch V3 02/16] IntelFrameworkModulePkg: Change BdsDxe to use new PCDs defined in MdePkg and MdeModulePkg. Contributed-