[edk2] [Patch] BaseTools: Fix the bug for VOID* pcd max size from component section

2018-03-22 Thread Yonghong Zhu
When the Pcd defined in components section, its value's size is larger than the value's size in [pcd] section, it cause build error, because original code use the size get in [pcd] section as max size. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu

[edk2] [Patch] BaseTools: Fix size override issue for Void* Patchable pcd

2018-03-22 Thread Yonghong Zhu
when multiple driver link same library, and the drivers override the pcd to different value in the DSC component section, it cause the pcd size incorrect. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu ---

[edk2] [Patch] BaseTools: Fix a bug for Size incorrect of Void* Fixatbuild Pcd

2018-03-22 Thread Yonghong Zhu
when driver link library and there have pcd override in DSC component section, in the library autogen file, the pcd's size is incorrect, the size value is from DSC [pcd] section, but not from the override pcd value that in the [component] section. Contributed-under: TianoCore Contribution

[edk2] [Patch] BaseTools: Fix a bug for VOID* type Fixatbuild Pcd in Library

2018-03-22 Thread Yonghong Zhu
The case is a FixedAtBuild VOID* PCD is used from a lib, but is set to a different sized value in a module INF scope section. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu --- BaseTools/Source/Python/AutoGen/GenC.py | 22

[edk2] [patch] OvmfPkg:Fix VS2012 build failure

2018-03-22 Thread Dandan Bi
Initialize local variable to suppress warning C4701/C4703: potentially uninitialized local variable/pointer variable. 1.In VirtualMemory.c: Read of "PageMapLevel4Entry" in SetMemoryEncDe() is only reached when "PageMapLevel4Entry" is got correctly. 2.In VirtioBlk.c: Reads (dereferences) of

Re: [edk2] [PATCH] MdeModulePkg/UsbKb: fix shell edit cannot read '!@#$%^&*' characters

2018-03-22 Thread Zeng, Star
Reviewed-by: Star Zeng Thanks, Star -Original Message- From: Ni, Ruiyu Sent: Friday, March 23, 2018 12:46 PM To: edk2-devel@lists.01.org Cc: Zeng, Star Subject: [PATCH] MdeModulePkg/UsbKb: fix shell edit cannot read '!@#$%^&*' characters

Re: [edk2] [PATCH 2/2] Hisilicon/D0x: Enable tftp command by default

2018-03-22 Thread Ni, Ruiyu
On 3/20/2018 8:15 PM, Guo Heyi wrote: I've no idea about how to use Driver; let me spend some time to learn first :) Heyi, you could use "load xxxDriver.efi" to load the dynamic command in shell. After that, you can run "tftp" in shell just as running an internal command. Regards, Heyi

[edk2] [PATCH] MdeModulePkg/UsbKb: fix shell edit cannot read '!@#$%^&*' characters

2018-03-22 Thread Ruiyu Ni
Commit 5563281fa2b31093a1cbd415553b9264c5136e89 * ShellPkg/[hex]edit: use SimpleTextInEx to read console changes shell edit and hexedit to read input through SimpleTextInEx. It exposes a issue in UsbKeyboard driver: Per UEFI Spec, When interpreting the data from this function (ReadKeyStrokeEx),

Re: [edk2] [Patch] BaseTool: Fixed the issue of empty PcdDB.

2018-03-22 Thread Gao, Liming
Reviewed-by: Liming Gao > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of BobCF > Sent: Friday, March 23, 2018 10:24 AM > To: edk2-devel@lists.01.org > Cc: Gao, Liming > Subject: [edk2] [Patch]

[edk2] [Patch] BaseTool: Fixed the issue of empty PcdDB.

2018-03-22 Thread BobCF
If there is no dynamic pcds, there should be DB header in the Pcd DataBase. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bob Feng Cc: Liming Gao --- BaseTools/Source/Python/AutoGen/GenPcdDb.py | 9 + 1 file changed,

Re: [edk2] [PATCH v2] MdePkg/IndustryStandard: Add header file for SPMI ACPI table

2018-03-22 Thread Wu, Hao A
Got it. A new version will be sent out to address this. Best Regards, Hao Wu > -Original Message- > From: Yao, Jiewen > Sent: Friday, March 23, 2018 9:34 AM > To: Wu, Hao A; edk2-devel@lists.01.org > Cc: Younas Khan; Kinney, Michael D; Gao, Liming > Subject: RE: [PATCH v2]

[edk2] [PATCH v3] MdePkg/IndustryStandard: Add header file for SPMI ACPI table

2018-03-22 Thread Hao Wu
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=840 Add the header file for Service Processor Management Interface ACPI table definition. Cc: Younas Khan Cc: Michael Kinney Cc: Liming Gao Cc: Jiewen Yao

Re: [edk2] [PATCH v2] MdePkg/IndustryStandard: Add header file for SPMI ACPI table

2018-03-22 Thread Yao, Jiewen
Sorry, I did not express my thought clearly. I mean union like below: union { struct { UINT8 SegmentGroup; UINT8 Bus; UINT8 Device; UINT8

Re: [edk2] [PATCH] MdePkg/IndustryStandard: Add header file for SPMI ACPI table

2018-03-22 Thread Wu, Hao A
Yes, V2 patch has been sent out according to the feedback. Best Regards, Hao Wu > -Original Message- > From: Yao, Jiewen > Sent: Thursday, March 22, 2018 5:09 PM > To: Wu, Hao A > Cc: edk2-devel@lists.01.org; Kinney, Michael D; Younas Khan; Gao, Liming > Subject: Re: [edk2] [PATCH]

[edk2] [PATCH v2] MdePkg/IndustryStandard: Add header file for SPMI ACPI table

2018-03-22 Thread Hao Wu
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=840 Add the header file for Service Processor Management Interface ACPI table definition. Cc: Younas Khan Cc: Michael Kinney Cc: Liming Gao Cc: Jiewen Yao

Re: [edk2] MdeModulePkg/SerialDxe: SetAttributes() not follow UEFI spec

2018-03-22 Thread Zeng, Star
I agree. Thanks, Star -Original Message- From: Guo Heyi [mailto:heyi@linaro.org] Sent: Thursday, March 22, 2018 7:43 PM To: edk2-devel@lists.01.org Cc: Zeng, Star ; Dong, Eric ; Ni, Ruiyu Subject: Re:

Re: [edk2] [PATCH 00/14] rid PiSmmCpuDxeSmm of DB-encoded instructions

2018-03-22 Thread Kinney, Michael D
Laszlo, I do like this typedef idea. typedef VOID (X86_ASSEMBLY_LABEL) (VOID); Maybe change the name so it is clearer that this should never be used in a call. A comment block about the typedef can also clarify the expected usage. typedef VOID (X86_ASSEMBLY_PATCH_LABEL) (VOID); Thanks,

Re: [edk2] [Patch] BaseTools: Add the missing package include directory in PcdValueInit Makefile

2018-03-22 Thread Zhu, Yonghong
Reviewed-by: Yonghong Zhu Best Regards, Zhu Yonghong -Original Message- From: Gao, Liming Sent: Thursday, March 22, 2018 11:22 PM To: edk2-devel@lists.01.org Cc: Feng, Bob C ; Zhu, Yonghong Subject: [Patch]

Re: [edk2] [PATCH 03/14] UefiCpuPkg/PiSmmCpuDxeSmm: remove *.S and *.asm assembly files

2018-03-22 Thread Laszlo Ersek
On 02/02/18 15:39, Laszlo Ersek wrote: > All edk2 toolchains use NASM for compiling X86 assembly source code. We > plan to remove X86 *.S and *.asm files globally, in order to reduce > maintenance and confusion: > >

Re: [edk2] [PATCH edk2-platforms v3 12/17] ARM/VExpressPkg: Allocate framebuffer using EfiRuntimeServicesData

2018-03-22 Thread Ard Biesheuvel
On 22 March 2018 at 15:20, Evan Lloyd wrote: > Hi Ard. > >> -Original Message- >> From: edk2-devel On Behalf Of Ard >> Biesheuvel >> Sent: 21 March 2018 18:27 >> To: Girish Pathak >> Cc: nd ;

[edk2] [PATCH 2/5] NetworkPkg/HttpDxe: use error handler epilogue in TlsConfigCertificate()

2018-03-22 Thread Laszlo Ersek
Introduce a FreeCACert label near the end of the function, so that we can keep the FreePool(CACert) statement centralized for error and success exits. Cc: Jiaxin Wu Cc: Siyuan Fu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:

[edk2] [PATCH 4/5] NetworkPkg/HttpDxe: sanity-check the TlsCaCertificate variable before use

2018-03-22 Thread Laszlo Ersek
In TlsConfigCertificate(), make sure that the set of EFI_SIGNATURE_LIST objects that the platform stored to "TlsCaCertificate" is well-formed. In addition, because HttpInstance->TlsConfiguration->SetData() expects X509 certificates only, ensure that the EFI_SIGNATURE_LIST objects only report X509

[edk2] [PATCH 5/5] NetworkPkg/TlsAuthConfigDxe: preserve TlsCaCertificate variable attributes

2018-03-22 Thread Laszlo Ersek
If the platform creates the "TlsCaCertificate" variable as volatile, then EnrollX509toVariable() shouldn't fail to extend it just because TLS_AUTH_CONFIG_VAR_BASE_ATTR contains the EFI_VARIABLE_NON_VOLATILE attribute. Thus, if the variable exists, add the EFI_VARIABLE_APPEND_WRITE attribute to

[edk2] [PATCH 0/5] NetworkPkg: HTTP and TLS updates

2018-03-22 Thread Laszlo Ersek
Repo: https://github.com/lersek/edk2.git Branch: http_and_tls_updates Patch #4 fixes TianoCore BZ#909 . Patches #2 and #3 are cleanups / preparation for patch #4. Patch #1 fixes an independent typo that I noticed in the code while

[edk2] [PATCH 1/5] NetworkPkg/HttpBootDxe: fix typo in DHCPv4 packet parsing

2018-03-22 Thread Laszlo Ersek
The string "HTTPClient" has 10 non-NUL characters; the value 9 is a copy-paste leftover from "PXEClient". Check for all 10 characters in the vendor-class-identifier option when determining whether the DHCP offer is an HTTP offer. Cc: Jiaxin Wu Cc: Siyuan Fu

[edk2] [PATCH 3/5] NetworkPkg/HttpDxe: drop misleading comment / status code in cert config

2018-03-22 Thread Laszlo Ersek
For TlsConfigureSession(), it makes sense to exempt EFI_NOT_FOUND from TlsConfigCipherList() / gRT->GetVariable(), because there is a default cipher list (SSL_DEFAULT_CIPHER_LIST) we can fall back to. The same is not true of TlsConfigCertificate(), because there is no default CA cert list. The

[edk2] [Patch] BaseTools: Add the missing package include directory in PcdValueInit Makefile

2018-03-22 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao Cc: Feng Bob C Cc: Yonghong Zhu --- BaseTools/Source/Python/Workspace/DscBuildData.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

Re: [edk2] [PATCH edk2-platforms v3 12/17] ARM/VExpressPkg: Allocate framebuffer using EfiRuntimeServicesData

2018-03-22 Thread Evan Lloyd
Hi Ard. > -Original Message- > From: edk2-devel On Behalf Of Ard > Biesheuvel > Sent: 21 March 2018 18:27 > To: Girish Pathak > Cc: nd ; edk2-devel@lists.01.org; Leif Lindholm > ; Stephanie

Re: [edk2] MdeModulePkg/SerialDxe: SetAttributes() not follow UEFI spec

2018-03-22 Thread Guo Heyi
+cc Maintainers of MdeModulePkg. On Thu, Mar 22, 2018 at 07:39:42PM +0800, Guo Heyi wrote: > Hi folks, > > The SetAttributes() interface of generic SerialDxe driver in > MdeModulePkg/Universal does not fully follow UEFI spec. The spec requires to > use > default time out value when the input

[edk2] MdeModulePkg/SerialDxe: SetAttributes() not follow UEFI spec

2018-03-22 Thread Guo Heyi
Hi folks, The SetAttributes() interface of generic SerialDxe driver in MdeModulePkg/Universal does not fully follow UEFI spec. The spec requires to use default time out value when the input "Timeout" is 0, but the current implementation will set timeout to 0 directly. It tries to pass "Timeout"

[edk2] [PATCH edk2-non-osi 1/1] Hisilicon/D0x/Sm750: Fix GOP framebuffer base

2018-03-22 Thread Heyi Guo
The code in SM750 driver treated the address returned from PciIo->GetBarAttributes() as device address; this should be fixed after edk2 commit dc080d3 since GetBarAttributes() returns host address from then on. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Heyi Guo

[edk2] [PATCH edk2-non-osi 0/1] Hisilicon/D0x/Sm750: Fix GOP framebuffer

2018-03-22 Thread Heyi Guo
The code in SM750 driver treated the address returned from PciIo->GetBarAttributes() as device address; this should be fixed after edk2 commit dc080d3 since GetBarAttributes() returns host address from then on. Binary files can be fetched from:

Re: [edk2] internal structure of EFI_TLS_CA_CERTIFICATE_VARIABLE

2018-03-22 Thread Laszlo Ersek
On 03/22/18 03:02, Wu, Jiaxin wrote: > On 03/21/18 14:39, Laszlo Ersek wrote: >> (1) Do you agree EFI_CERT_X509_GUID is the right setting for >> "EFI_SIGNATURE_LIST.SignatureType" (even though the edk2 code >> currently ignores it)? >> >> This would also imply that we set >>

Re: [edk2] [Patch] Vlv2TbltDevicePkg: Remove DxeTcg2PhysicalPresenceLibNull

2018-03-22 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 Michael D Kinney Sent: Thursday, March 22, 2018 6:48 AM To:

Re: [edk2] [PATCH] MdePkg/IndustryStandard: Add header file for SPMI ACPI table

2018-03-22 Thread Yao, Jiewen
Can we use union for pci or uid? thank you! Yao, Jiewen > 在 2018年3月22日,下午4:38,Hao Wu 写道: > > REF:https://bugzilla.tianocore.org/show_bug.cgi?id=840 > > Add the header file for Service Processor Management Interface ACPI table > definition. > > Cc: Younas Khan

[edk2] [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] Change BDS module.

2018-03-22 Thread zwei4
Change from BDS of IntelFrameworkModulePkg to BDS of MdeModulePkg. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: zwei4 --- .../Common/Library/PlatformBootManagerLib/PlatformBootManager.c | 5 +

Re: [edk2] [MdeModulePkg/Usb v2 1/1] MdeModulePkg/Usb: Replace macro USB_BOOT_IO_BLOCKS

2018-03-22 Thread Zeng, Star
Reviewed-by: Star Zeng Thanks, Star -Original Message- From: Ming Huang [mailto:ming.hu...@linaro.org] Sent: Thursday, March 22, 2018 3:44 PM To: linaro-u...@lists.linaro.org; edk2-devel@lists.01.org Cc: Zeng, Star ; Dong, Eric

[edk2] [PATCH] MdePkg/IndustryStandard: Add header file for SPMI ACPI table

2018-03-22 Thread Hao Wu
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=840 Add the header file for Service Processor Management Interface ACPI table definition. Cc: Younas Khan Cc: Michael Kinney Cc: Liming Gao Cc: Jiewen Yao

[edk2] [MdeModulePkg/Usb v2 0/1] Calculating the count of blocks to transfer

2018-03-22 Thread Ming Huang
Calculating the count of blocks to transfer by Evaluating block size to fix booting failed from USB issue in some platforms. Ming Huang (1): MdeModulePkg/Usb: Replace macro USB_BOOT_IO_BLOCKS MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBoot.c | 16

[edk2] [MdeModulePkg/Usb v2 1/1] MdeModulePkg/Usb: Replace macro USB_BOOT_IO_BLOCKS

2018-03-22 Thread Ming Huang
Booting from USB may fail while the macro USB_BOOT_IO_BLOCKS set to 128 because the block size of some USB devices are exceeded 512, like some virtual CD-ROM from BMC, the block size is 2048. So,the count blocks to transfer should be calculated by block size of the USB devices. Contributed-under:

Re: [edk2] [Patch V2] Build spec: update description for build handles PCDs for SKU support

2018-03-22 Thread Gao, Liming
Reviewed-by: Liming Gao >-Original Message- >From: Zhu, Yonghong >Sent: Tuesday, March 20, 2018 8:06 PM >To: edk2-devel@lists.01.org >Cc: Gao, Liming ; Kinney, Michael D >; Shaw, Kevin W