Re: [edk2] [PATCH v3 0/2] Add Ramdisk support to ArmVirtPkg platforms

2016-08-19 Thread Sajjan, Vikas C
-Original Message- From: Laszlo Ersek [mailto:ler...@redhat.com] Sent: Friday, August 19, 2016 6:58 PM To: Sajjan, Vikas C ; edk2-de...@ml01.01.org; ard.biesheu...@linaro.org; leif.lindh...@linaro.org Cc: Wei, Dong (Office of the CTO)

Re: [edk2] OVMF not booting when built with GCC5 toolset?

2016-08-19 Thread Bruce Cran
On 8/18/2016 8:08 PM, Shi, Steven wrote: I build OVMF GCC X64 image, can boot Qemu into shell with below commands. I can enter shell, reconnect -r, exit to setup, and the vga display looks good to me. What build command did you use? build -t GCC5 -a X64 -p OvmfPkg/OvmfPkgX64.dsc -n 5 -b

Re: [edk2] [PATCH 00/11] OvmfPkg, ArmVirtPkg: GOP driver for the VirtIo GPU (virtio-gpu-pci)

2016-08-19 Thread Laszlo Ersek
On 08/19/16 15:06, Ard Biesheuvel wrote: > On 19 August 2016 at 14:49, Laszlo Ersek wrote: >> This series solves >> . In particular, >> it gives AARCH64 guests running on KVM a clean, uncorrupted graphical >> console. >> >

Re: [edk2] [PATCH 0/6] PiDxeS3BootScriptLib: Support multiple PCI segment

2016-08-19 Thread Yao, Jiewen
Reviewed by: jiewen@intel.com > -Original Message- > From: Zeng, Star > Sent: Friday, August 19, 2016 3:35 PM > To: edk2-devel@lists.01.org > Cc: Zeng, Star ; Yao, Jiewen ; > Kinney, Michael D ; Chan Amy >

Re: [edk2] [Patch v5 48/48] UefiCpuPkg/PiSmmCpuDxeSmm: Add gEfiVariableArchProtocolGuid dependency

2016-08-19 Thread Laszlo Ersek
On 08/19/16 04:57, Zeng, Star wrote: > On 2016/8/19 10:45, Zeng, Star wrote: >> On 2016/8/19 10:26, Laszlo Ersek wrote: >>> On 08/19/16 04:00, Fan, Jeff wrote: Laszlo, I could revert this patch firstly. >>> >>> Thank you, that would be very kind. >>> Could you please dig out

Re: [edk2] [PATCH 11/11] ArmVirtPkg: remove PcdKludgeMapPciMmioAsCached

2016-08-19 Thread Ard Biesheuvel
On 19 August 2016 at 14:49, Laszlo Ersek wrote: > In ARM/AARCH64 guests that run on KVM, we can now use virtio-gpu-pci, so > PcdKludgeMapPciMmioAsCached is no longer necessary. Standard VGA continues > to work on TCG without the kludge. > > Cc: Ard Biesheuvel

[edk2] [PATCH 11/11] ArmVirtPkg: remove PcdKludgeMapPciMmioAsCached

2016-08-19 Thread Laszlo Ersek
In ARM/AARCH64 guests that run on KVM, we can now use virtio-gpu-pci, so PcdKludgeMapPciMmioAsCached is no longer necessary. Standard VGA continues to work on TCG without the kludge. Cc: Ard Biesheuvel Cc: Jordan Justen Ref:

[edk2] [PATCH 08/11] OvmfPkg/VirtioGpuDxe: initialize and tear down VirtIo GPU device

2016-08-19 Thread Laszlo Ersek
This patch implements the steps listed in section "3.1.1 Driver Requirements: Device Initialization" of the Virtio V1.0 Committee Spec 04. The VirtIo GPU is brought up in VirtioGpuDriverBindingStart(), and down in VirtioGpuDriverBindingStop(). We also add an ExitBootServices() callback that

[edk2] [PATCH 09/11] OvmfPkg/VirtioGpuDxe: provide functions for sending VirtIo GPU commands

2016-08-19 Thread Laszlo Ersek
In this patch we add a "workhorse" function called VirtioGpuSendCommand(), and implement seven simple RPCs atop, for the command types listed in "OvmfPkg/Include/IndustryStandard/VirtioGpu.h". These functions will be called by our EFI_GRAPHICS_OUTPUT_PROTOCOL implementation. Cc: Ard Biesheuvel

[edk2] [PATCH 00/11] OvmfPkg, ArmVirtPkg: GOP driver for the VirtIo GPU (virtio-gpu-pci)

2016-08-19 Thread Laszlo Ersek
This series solves . In particular, it gives AARCH64 guests running on KVM a clean, uncorrupted graphical console. Anatomy of the series: - Patches 01 and 02 fix small bugs in QemuVideoDxe and Virtio10Dxe, so that virtio-vga is bound only

[edk2] [PATCH 02/11] OvmfPkg/Virtio10Dxe: don't bind virtio-vga

2016-08-19 Thread Laszlo Ersek
Commit 9399f68ae359 ("OvmfPkg: Virtio10Dxe: non-transitional driver for virtio-1.0 PCI devices") created a "competition" between Virtio10Dxe and QemuVideoDxe for virtio-vga devices. The binding order between these drivers is unspecified, and the wrong order effectively breaks commit 94210dc95e9f

[edk2] [PATCH 04/11] OvmfPkg/IndustryStandard: add type definitions for the virtio GPU device

2016-08-19 Thread Laszlo Ersek
The GPU additions to VirtIo 1.0 are a work in progress. Mark the relevant URLs in the source code. Incorporate the absolute minimum from the WIP spec that is necessary for implementing a GOP driver. Add the VIRTIO_SUBSYSTEM_GPU_DEVICE macro to "IndustryStandard/Virtio10.h", since all other such

[edk2] [PATCH 01/11] OvmfPkg/QemuVideoDxe: don't incorrectly bind virtio-gpu-pci

2016-08-19 Thread Laszlo Ersek
The PCI (Vendor ID, Device ID) pair (0x1af4, 0x1050) stands for both the virtio-vga and the virtio-gpu-pci device models of QEMU. They differ in two things: - the former has a VGA-compatibility linear framebuffer on top of the latter, - the former has PCI_CLASS_DISPLAY_VGA device class, while

[edk2] [PATCH 10/11] OvmfPkg/VirtioGpuDxe: implement EFI_GRAPHICS_OUTPUT_PROTOCOL

2016-08-19 Thread Laszlo Ersek
In this patch we replace our "dummy" Graphics Output Protocol interface with the real one. We exploit that EFI_GRAPHICS_OUTPUT_BLT_PIXEL and VirtioGpuFormatB8G8R8X8Unorm have identical representations; this lets us forego any pixel format conversions in the guest. For messaging the VirtIo GPU

[edk2] [PATCH 06/11] OvmfPkg: include VirtioGpuDxe in the platform DSC/FDF files

2016-08-19 Thread Laszlo Ersek
At this stage, the driver builds, and suffices for testing binding and unbinding. Cc: Ard Biesheuvel Cc: Jordan Justen Ref: https://tianocore.acgmultimedia.com/show_bug.cgi?id=66 Contributed-under: TianoCore Contribution Agreement 1.0

[edk2] [PATCH 05/11] OvmfPkg/VirtioGpuDxe: introduce with Component Name 2 and Driver Binding

2016-08-19 Thread Laszlo Ersek
This patch adds the skeleton of the driver: it implements the Component Name 2 Protocol and the Driver Binding Protocol, in accordance with the generic and GOP-specific requirements set forth in the UEFI spec and the Driver Writers' Guide. The basic idea is that VGPU_DEV abstracts the virtio GPU

Re: [edk2] [PATCH] BaseTools/GenFv: allow TE/PE images with no .reloc section

2016-08-19 Thread Ard Biesheuvel
On 19 August 2016 at 09:51, Gao, Liming wrote: > Ard: > RelocationsStripped is decided by Pe32.FileHeader.Characteristics > EFI_IMAGE_FILE_RELOCS_STRIPPED flag. Per PE/COFF spec, if > IMAGE_FILE_RELOCS_STRIPPED flag is set, the image must therefore be loaded at > its

Re: [edk2] [patch] MdeModulePkg:Fix bug in function AsciiStrToIp4.

2016-08-19 Thread Hegde, Nagaraj P
Cosmetic comment: if (!NET_IS_DIGIT(*Ip4Str)) { ^ Add a space here Reviewed-by: Hegde Nagaraj P -Original Message- From: Zhang Lubo [mailto:lubo.zh...@intel.com] Sent: Friday, August 19, 2016 1:23 PM To:

[edk2] [patch] MdeModulePkg:Fix bug in function AsciiStrToIp4.

2016-08-19 Thread Zhang Lubo
If a FQDN contains 3 dots '.' like "a.b.c.com", the AsciiStrToIp4 will return success as the HostName has a valid IP address. So we need to check if it is a decimal character before using AsciiStrDecimalToUintn. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zhang Lubo

Re: [edk2] [PATCH] BaseTools/GenFv: allow TE/PE images with no .reloc section

2016-08-19 Thread Gao, Liming
Ard: RelocationsStripped is decided by Pe32.FileHeader.Characteristics EFI_IMAGE_FILE_RELOCS_STRIPPED flag. Per PE/COFF spec, if IMAGE_FILE_RELOCS_STRIPPED flag is set, the image must therefore be loaded at its preferred base address. If the image could be loaded at other address, it should

[edk2] [PATCH 5/6] QuarkSocPkg/QuarkSocPkg.dsc: Declare PciSegmentLib

2016-08-19 Thread Star Zeng
PiDxeS3BootScriptLib has been updated to consume PciSegmentLib instead of PciLib to support multiple PCI segment. Cc: Jiewen Yao Cc: Michael D Kinney Cc: Chan Amy Cc: Kelly Steele Contributed-under:

[edk2] [PATCH 6/6] SecurityPkg/SecurityPkg.dsc: Declare PciSegmentLib

2016-08-19 Thread Star Zeng
PiDxeS3BootScriptLib has been updated to consume PciSegmentLib instead of PciLib to support multiple PCI segment. Cc: Jiewen Yao Cc: Michael D Kinney Cc: Chan Amy Cc: Chao Zhang Contributed-under:

[edk2] [PATCH 0/6] PiDxeS3BootScriptLib: Support multiple PCI segment

2016-08-19 Thread Star Zeng
Support multiple PCI segment for PCI_CONFIG2 opcodes. PiDxeS3BootScriptLib needs to be updated to consume PciSegmentLib instead of PciLib. That means platforms need to add PciSegmentLib declaration like below in platform dsc if the PciSegmentLib was not declared in platform dsc before.

[edk2] [PATCH 1/6] MdeModulePkg PiDxeS3BootScriptLib: Remove the trailing white spaces

2016-08-19 Thread Star Zeng
Cc: Jiewen Yao Cc: Michael D Kinney Cc: Chan Amy Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng --- .../PiDxeS3BootScriptLib/BootScriptExecute.c | 288

[edk2] [PATCH 2/6] MdeModulePkg PiDxeS3BootScriptLib: Support multiple PCI segment

2016-08-19 Thread Star Zeng
Support multiple PCI segment for PCI_CONFIG2 opcodes. PiDxeS3BootScriptLib needs to be updated to consume PciSegmentLib instead of PciLib. That means platforms need to add PciSegmentLib declaration like below in platform dsc if the PciSegmentLib was not declared in platform dsc before.

[edk2] [PATCH 4/6] QuarkPlatformPkg: Declare PciSegmentLib in platform dsc

2016-08-19 Thread Star Zeng
PiDxeS3BootScriptLib has been updated to consume PciSegmentLib instead of PciLib to support multiple PCI segment. That means platforms need to add PciSegmentLib declaration in platform dsc if the PciSegmentLib was not declared in platform dsc before. For platforms only have one segment,

[edk2] [PATCH 3/6] Vlv2TbltDevicePkg: Declare PciSegmentLib in platform dsc

2016-08-19 Thread Star Zeng
PiDxeS3BootScriptLib has been updated to consume PciSegmentLib instead of PciLib to support multiple PCI segment. That means platforms need to add PciSegmentLib declaration in platform dsc if the PciSegmentLib was not declared in platform dsc before. For platforms only have one segment,

[edk2] [PATCH v3 2/2] ArmVirtPkg: Add Ramdisk support to ArmVirtPkg platforms

2016-08-19 Thread Vikas C Sajjan
Adds the RAMDisk support to ArmVirtPkg platforms. This patch actually ports OvmfPkg commit 259d87146b07 to ArmVirtPkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Vikas C Sajjan --- ArmVirtPkg/ArmVirt.dsc.inc | 11 +++

[edk2] [PATCH v3 1/2] ArmVirtPkg: Move inclusion of AcpiTableDxe.inf to ArmVirt.dsc.inc

2016-08-19 Thread Vikas C Sajjan
Since ArmVirt.dsc.inc is included in all the ArmVirt dsc files, move inclusion of AcpiTableDxe.inf to ArmVirt.dsc.inc. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Vikas C Sajjan --- ArmVirtPkg/ArmVirt.dsc.inc | 6 ++

[edk2] [PATCH v3 0/2] Add Ramdisk support to ArmVirtPkg platforms

2016-08-19 Thread Vikas C Sajjan
This series adds ramdisk driver support to ArmVirtPkg platforms. It actually ports OvmfPkg commit 259d87146b07 to ArmVirtPkg. changes since v2: - Made changes as suggested by Laszlo Ersek a] Moved inclusion of AcpiTableDxe.inf to end of file b] Moved

Re: [edk2] [patch] MdeModulePkg/Browser: Fix conflicting policy in getting default of checkbox

2016-08-19 Thread Gao, Liming
Reviewed-by: Liming Gao > -Original Message- > From: Bi, Dandan > Sent: Friday, August 19, 2016 2:16 PM > To: edk2-devel@lists.01.org > Cc: Gao, Liming ; Dong, Eric > Subject: [patch] MdeModulePkg/Browser: Fix conflicting

[edk2] [patch] MdeModulePkg/Browser: Fix conflicting policy in getting default of checkbox

2016-08-19 Thread Dandan Bi
From: Liming Gao We have added a new policy to get default value for question: get default from other default id if current default is not specified. But when getting default value for checkbox, if the default flag is not set, it will set the default value to FALSE for