[edk2] [PATCH] ArmVirtPkg: Various typo

2019-02-05 Thread Antoine Coeur
Various typo in ArmVirtPkg. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Coeur --- ArmVirtPkg/ArmVirt.dsc.inc | 2 +- ArmVirtPkg/Library/ArmVirtDxeHobLib/HobLib.c| 2 +-

[edk2] [PATCH] ArmPkg: Various typo

2019-02-05 Thread Antoine Coeur
Various typo in ArmPkg. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Coeur --- .../Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.c | 2 +- ArmPkg/Drivers/CpuDxe/AArch64/Mmu.c | 2 +- ArmPkg/Drivers/CpuDxe/Arm/Mmu.c | 2 +-

[edk2] [PATCH] ArmPlatformPkg: Various typo

2019-02-05 Thread Antoine Coeur
Various typo in ArmPlatformPkg. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Coeur --- ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.c | 4 ++-- ArmPlatformPkg/Include/Library/ArmPlatformLib.h| 2 +- ArmPlatformPkg/Include/Library/PL011UartLib.h | 2 +-

[edk2] [PATCH] AppPkg: Various typo

2019-02-05 Thread Antoine Coeur
Various typo in AppPkg, ignoring Python folder. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Coeur --- AppPkg/Applications/Enquire/Enquire.c | 2 +- AppPkg/Applications/Sockets/DataSource/DataSource.c | 4 ++--

[edk2] OVMF and TCP4, HTTP protocols

2019-02-05 Thread Rebecca Cran via edk2-devel
I'm trying to fetch a file over HTTP in a boot loader, but gBS- >LocateHandleBuffer doesn't find either of the EFI_TCP4_SERVICE_BINDING_PROTCOL or EFI_HTTP_SERVICE_BINDING_PROTOCOL. I'm running a build of OVMF from git master from a few weeks ago. Should they exist and be usable, or does OVMF

[edk2] [PATCH] MdePkg/BaseLib: implement SpeculationBarrier() for ARM and AArch64

2019-02-05 Thread Ard Biesheuvel
Replace the dummy C implementation of SpeculationBarrier() with implementations consisting of the recommended DSB SY + ISB sequence, as recommended by ARM in the whitepaper "Cache Speculation Side-channels" version 2.4, dated October 2018. Contributed-under: TianoCore Contribution Agreement 1.1

Re: [edk2] [PATCH] BaseTools: Fix build failure when specifying multiple BUILDTARGET

2019-02-05 Thread Carsey, Jaben
Laszlo, not sure which Andrew you wanted, but he didn’t get added so far as I can tell. > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of > Laszlo Ersek > Sent: Tuesday, February 05, 2019 4:05 AM > To: Leif Lindholm > Cc:

Re: [edk2] Peripheral FW capsule delivery?

2019-02-05 Thread Doran, Mark
Hi Brad: One other possible path you might be able to consider. Have you looked at Component Firmware Update as a way to manage in-device firmware?? While that originates with Microsoft, it's open source and OS neutral and might be an easier overall.

Re: [edk2] Peripheral FW capsule delivery?

2019-02-05 Thread Brad Bozarth
Thank you Mike! This is kind of what I thought, but wasn't sure if I was missing something. I will let you know if I come across any standard. -Brad On Tue, Feb 5, 2019 at 2:58 PM Kinney, Michael D wrote: > Hi Brad, > > In order to update a FW storage device in UEFI, a UEFI driver > that

Re: [edk2] Peripheral FW capsule delivery?

2019-02-05 Thread Kinney, Michael D
Hi Brad, In order to update a FW storage device in UEFI, a UEFI driver that produces the Firmware Management Protocol is required. There are some protocols to access I2C devices, so the implementation of the Firmware Management Protocol for an I2C device can use the I2C protocols to perform the

Re: [edk2] [PATCH 1/1] EmbeddedPkg/Library: Add VirtualRealTimeClockLib

2019-02-05 Thread Philippe Mathieu-Daudé
Hi Pete, On 2/4/19 1:47 PM, Pete Batard wrote: > This is designed to be used on platforms where a a real RTC is not > available and relies on an RtcEpochSeconds variable having been set or, > if that is not the case, falls back to using the epoch embedded at > compilation time. > > Note that, in

Re: [edk2] Peripheral FW capsule delivery?

2019-02-05 Thread Brad Bozarth
I would really appreciate a small pointer on this - yes/no on if is a standard peripheral fw delivery buit-in, and maybe a pointer to a doc or source code directory to take a look at? Thank you, Brad On Tue, Jan 29, 2019 at 4:54 PM Brad Bozarth wrote: > Hi! > > I am implementing firmware for a

Re: [edk2] [edk2-platforms/devel-MinPlatform][PATCH v3 1/1] ReadMe.md: Update Minimum Platform details

2019-02-05 Thread Kinney, Michael D
Reviewed-by: Michael D Kinney > -Original Message- > From: Kubacki, Michael A > Sent: Monday, February 4, 2019 5:57 PM > To: edk2-devel@lists.01.org > Cc: Kinney, Michael D ; > Desimone, Nathaniel L ; > Sinha, Ankit ; Chiu, Chasel > ; Oram, Isaac W > ; Gao, Liming > > Subject:

Re: [edk2] [edk2-platforms/devel-MinPlatform][PATCH v3 1/1] ReadMe.md: Update Minimum Platform details

2019-02-05 Thread Desimone, Nathaniel L
Reviewed-by: Nate DeSimone On 2/4/19, 5:57 PM, "Kubacki, Michael A" wrote: Adds details on the EDK II Minimum Platform design for Intel platforms. * Overview of Minimum Platform * Board package purpose and conventions * Stage boot concept and control * Minimum

[edk2] [PATCH v5 edk2-platforms 22/22] Platform/RaspberryPi/RPi3: Add platform readme's

2019-02-05 Thread Pete Batard
Documentation is split between general plaform data and OS testing and installation details. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Pete Batard --- Platform/RaspberryPi/RPi3/Readme.md | 167 Platform/RaspberryPi/RPi3/Systems.md | 65

Re: [edk2] [PATCH] BaseTools/BuildReport: fix report for platforms/arches without struct PCDs

2019-02-05 Thread Vladimir Olovyannikov via edk2-devel
Laszlo, Thanks a lot for the prompt fix. Works now. Tested-by: Vladimir Olovyannikov -Original Message- From: Laszlo Ersek [mailto:ler...@redhat.com] Sent: Tuesday, February 5, 2019 3:22 AM To: edk2-devel@lists.01.org Cc: Bob Feng; Liming Gao; Vladimir Olovyannikov; Yonghong Zhu

[edk2] [PATCH v5 edk2-platforms 21/22] Platform/RaspberryPi/RPi3: Add platform

2019-02-05 Thread Pete Batard
Adds the .dec/.dsc/.fdf needed to build the platform firmware. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Pete Batard --- Platform/RaspberryPi/RPi3/RPi3.dec | 58 ++ Platform/RaspberryPi/RPi3/RPi3.dsc | 629 Platform/RaspberryPi/RPi3/RPi3.fdf |

[edk2] [PATCH v5 edk2-platforms 19/22] Platform/RaspberryPi/RPi3 *NON-OSI*: Add Device Tree binaries

2019-02-05 Thread Pete Batard
>From https://github.com/raspberrypi/firmware/tree/master/boot The .dtb's were decompiled to .dts, and then edited to fix USB keyboard support as well as CPU enabling through PSCI. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Pete Batard ---

[edk2] [PATCH v5 edk2-platforms 18/22] Platform/RaspberryPi/RPi3 *NON-OSI*: Add ATF binaries

2019-02-05 Thread Pete Batard
These ATF binaries were built from the ATF source (commit c3859557) with the custom RPi3 platform options detailed in the readme, and with no modification to the official source whatsoever. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Pete Batard ---

[edk2] [PATCH v5 edk2-platforms 17/22] Platform/RaspberryPi/RPi3: Add USB host driver

2019-02-05 Thread Pete Batard
The Raspberry Pi 3 uses a dedicated Synopsys DesignWare USB Host driver to interface with various USB peripherals, including the onboard NIC. This driver, which is based on the Android OpenPlatformPkg implementation, provides support for that. Contributed-under: TianoCore Contribution Agreement

[edk2] [PATCH v5 edk2-platforms 16/22] Platform/RaspberryPi/RPi3: Add platform boot manager and helper libs

2019-02-05 Thread Pete Batard
The libraries decide and set the boot order between UEFI Shell, SD media and/or USB media and allow for user configuration and override. Stale boot options (non present media) are automatically removed on boot. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Pete Batard

[edk2] [PATCH v5 edk2-platforms 15/22] Platform/RaspberryPi/RPi3: Add SD Host driver

2019-02-05 Thread Pete Batard
The BCM283x family includes two SD card controllers, the second one being the "internal" SD HOST controller. This driver implements support for this one. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Pete Batard ---

[edk2] [PATCH v5 edk2-platforms 14/22] Platform/RaspberryPi/RPi3: Add Arasan MMC driver

2019-02-05 Thread Pete Batard
The BCM283x family includes two SD card controllers, one being an Arasan SDHCI compliant controller. This driver implements support for this one. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Pete Batard ---

[edk2] [PATCH v5 edk2-platforms 13/22] Platform/RaspberryPi/RPi3: Add base MMC driver

2019-02-05 Thread Pete Batard
This implements the MMC Host protocol, which is used by the two concurrent SD interface drivers that the Raspberry Pi 3 supports. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Pete Batard --- Platform/RaspberryPi/RPi3/Drivers/MmcDxe/ComponentName.c | 163

[edk2] [PATCH v5 edk2-platforms 12/22] Platform/RaspberryPi/RPi3: Add Device Tree driver

2019-02-05 Thread Pete Batard
This driver serves the device tree that is either embedded in the firmware volume or was provided through config.txt. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Pete Batard --- Platform/RaspberryPi/RPi3/Drivers/FdtDxe/FdtDxe.c | 364

[edk2] [PATCH v5 edk2-platforms 11/22] Platform/RaspberryPi/RPi3: Add NV storage driver

2019-02-05 Thread Pete Batard
Since the Raspberry Pi doesn't have a NVRAM, this driver is used to store non-volatile user configuration settings into the firmware volume itself. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Pete Batard ---

[edk2] [PATCH v5 edk2-platforms 10/22] Platform/RaspberryPi/RPi3: Add console driver

2019-02-05 Thread Pete Batard
Implements the graphic console (extended text output) needed for user interaction. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Pete Batard --- Platform/RaspberryPi/RPi3/Drivers/GraphicsConsoleDxe/ComponentName.c | 183 ++

[edk2] [PATCH v5 edk2-platforms 09/22] Platform/RaspberryPi/RPi3: Add display driver

2019-02-05 Thread Pete Batard
Implements the EFI_GRAPHICS_OUTPUT_PROTOCOL for the Raspberry Pi platform, through framebuffer, including resolution querying and screenshot support. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Pete Batard ---

[edk2] [PATCH v5 edk2-platforms 08/22] Platform/RaspberryPi/RPi3: Add SMBIOS driver

2019-02-05 Thread Pete Batard
Static SMBIOS Table for the ARM platform, derived from EmulatorPkg. Implements SMBIOS 2.7.1 required structures. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Pete Batard --- Platform/RaspberryPi/RPi3/Drivers/PlatformSmbiosDxe/PlatformSmbiosDxe.c | 903

[edk2] [PATCH v5 edk2-platforms 07/22] Platform/RaspberryPi/RPi3: Add platform config driver

2019-02-05 Thread Pete Batard
Provides the user-visible configuration options for the firmware UI. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Pete Batard --- Platform/RaspberryPi/RPi3/Drivers/ConfigDxe/ConfigDxe.c| 351

[edk2] [PATCH v5 edk2-platforms 06/22] Platform/RaspberryPi/RPi3: Add firmware driver

2019-02-05 Thread Pete Batard
Implements the base driver that is used to provide or set platform specific configuration data. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Pete Batard Reviewed-by: Ard Biesheuvel --- Platform/RaspberryPi/RPi3/Drivers/RpiFirmwareDxe/RpiFirmwareDxe.c | 1084

[edk2] [PATCH v5 edk2-platforms 05/22] Platform/RaspberryPi/RPi3: Add platform library

2019-02-05 Thread Pete Batard
A platform helper library, relying on low level Mailbox messaging between the CPU and VideoCore to obtain current platform information, that is used by various services and drivers. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Pete Batard ---

[edk2] [PATCH v5 edk2-platforms 03/22] Platform/RaspberryPi/RPi3: Add ACPI tables

2019-02-05 Thread Pete Batard
These ACPI tables were mostly derived or copied from the MS-IoT ones. This means that they are targetting Windows OSes, rather than Linux ones, and aren't ACPI compliant, especially when it comes to their descriptors. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Pete

[edk2] [PATCH v5 edk2-platforms 04/22] Platform/RaspberryPi/RPi3: Add reset and memory init libraries

2019-02-05 Thread Pete Batard
The memory init library ensures that relevant memory regions are reserved on boot. The reset library supports the ResetSystem runtime call using PSCI and signals the gRaspberryPiEventResetGuid event group on reset, which we need to save modified configuration vars to NVRAM. Note that we tried to

[edk2] [PATCH v5 edk2-platforms 02/22] Silicon/Broadcom/Bcm283x: Add GpioLib

2019-02-05 Thread Pete Batard
This library is meant to be used by Bcm283x-based platforms, such as the Raspberry Pi, to control the GPIO port pins on said platform. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Pete Batard --- Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836Gpio.h | 49

[edk2] [PATCH v5 edk2-platforms 01/22] Silicon/Broadcom/Bcm283x: Add interrupt driver

2019-02-05 Thread Pete Batard
This currently only implements support for the architected timer interrupts on the per-CPU interrupt controllers. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Pete Batard Reviewed-by: Ard Biesheuvel --- Silicon/Broadcom/Bcm283x/Bcm283x.dec |

[edk2] [PATCH v5 edk2-platforms 00/22] Platform/RaspberryPi: Add Raspberry Pi 3 support

2019-02-05 Thread Pete Batard
Changes for v5: * Raspberry/Pi3 -> RaspberryPi/RPi3 * Remove VirtualRealTimeClockLib as well as BUILD_EPOCH macro (use the upcoming EmbeddedPkg Virtual RTC from EDK2 instead) * Use $(PLATFORM_NAME) where possible in .dsc and .fdf * Update Readme to remove build instructions, describe ACPI

Re: [edk2] [PATCH] BaseTools: Fix build failure when specifying multiple BUILDTARGET

2019-02-05 Thread Laszlo Ersek
On 02/05/19 13:02, Philippe Mathieu-Daudé wrote: > On 2/5/19 10:03 AM, Laszlo Ersek wrote: >> On 02/05/19 02:23, Philippe Mathieu-Daudé wrote: >>> Since 9c2d68c0a299 the build tools default to the python version >>> provided by the ${PYTHON} environment variable. >>> However the Python3 transition

Re: [edk2] [PATCH] BaseTools: Fix build failure when specifying multiple BUILDTARGET

2019-02-05 Thread Laszlo Ersek
(+Mike, +Andrew) On 02/05/19 12:47, Leif Lindholm wrote: > On Tue, Feb 05, 2019 at 10:03:21AM +0100, Laszlo Ersek wrote: >> On 02/05/19 02:23, Philippe Mathieu-Daudé wrote: >>> Since 9c2d68c0a299 the build tools default to the python version >>> provided by the ${PYTHON} environment variable. >>>

Re: [edk2] [PATCH] BaseTools: Fix build failure when specifying multiple BUILDTARGET

2019-02-05 Thread Philippe Mathieu-Daudé
On 2/5/19 10:03 AM, Laszlo Ersek wrote: > On 02/05/19 02:23, Philippe Mathieu-Daudé wrote: >> Since 9c2d68c0a299 the build tools default to the python version >> provided by the ${PYTHON} environment variable. >> However the Python3 transition is not effective before d943b0c339fe. > > (1) Do you

Re: [edk2] [PATCH] BaseTools: Fix build failure when specifying multiple BUILDTARGET

2019-02-05 Thread Leif Lindholm
On Tue, Feb 05, 2019 at 10:03:21AM +0100, Laszlo Ersek wrote: > On 02/05/19 02:23, Philippe Mathieu-Daudé wrote: > > Since 9c2d68c0a299 the build tools default to the python version > > provided by the ${PYTHON} environment variable. > > However the Python3 transition is not effective before

Re: [edk2] BaseTools: handling of $(ARCH) in .dsc/.fdf when multiple -a specified

2019-02-05 Thread Laszlo Ersek
On 02/05/19 12:08, Leif Lindholm wrote: > On Mon, Feb 04, 2019 at 08:02:55PM +0100, Laszlo Ersek wrote: >> AIUI, "-a IA32 -a X64" it means "build the Components.* sections >> (plural) as dictated by the '-a' flags, and then organize the full >> (multi-arch) set of modules into the flash

[edk2] [PATCH] BaseTools/BuildReport: fix report for platforms/arches without struct PCDs

2019-02-05 Thread Laszlo Ersek
The goal of commit 97c8f5b9e7d3 ("BaseTools:StructurePCD value display incorrect in "Not used" section.", 2019-02-02) was to display the full contents of such structure PCDs in the build report that were set in the platform DSC or the FDF, but not used in any module INFs. The listings would appear

Re: [edk2] BaseTools: handling of $(ARCH) in .dsc/.fdf when multiple -a specified

2019-02-05 Thread Leif Lindholm
On Mon, Feb 04, 2019 at 08:02:55PM +0100, Laszlo Ersek wrote: > > Now, the Ia32X64 target is very much of a special case, which I don't > > necessarily see as usefully supported by the current .dsc > > specification. But I believe we need to do one of > > - banning (simultaneous)

Re: [edk2] [PATCH] BaseTools: Fix build failure when specifying multiple BUILDTARGET

2019-02-05 Thread Laszlo Ersek
On 02/05/19 02:23, Philippe Mathieu-Daudé wrote: > Since 9c2d68c0a299 the build tools default to the python version > provided by the ${PYTHON} environment variable. > However the Python3 transition is not effective before d943b0c339fe. (1) Do you mean "functional" rather than "effective"? (2)

[edk2] [PATCH edk2-non-osi 1/1] Platform/Socionext: update TF-A binary to upstream release

2019-02-05 Thread Sumit Garg
Update TF-A to upstream v2.0 release (Commit: dbc8d9496ead). Also update OP-TEE to upstream v3.4.0 release (Commit: 406c609bbf08). Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Sumit Garg --- Following is reference repo to pull this patch: