Re: [edk2] [PATCH 1/6] BaseTools/GenFw ARM: allow R_ARM_REL32 relocations

2015-11-24 Thread Ard Biesheuvel
(add BaseTools maintainers) On 23 November 2015 at 17:56, Ard Biesheuvel <ard.biesheu...@linaro.org> wrote: > R_ARM_REL32 are relative relocations, so we don't need to do anything > special when performing the ELF to PE/COFF conversion, since our memory > layout is identical

[edk2] [PATCH 1/6] BaseTools/GenFw ARM: allow R_ARM_REL32 relocations

2015-11-23 Thread Ard Biesheuvel
R_ARM_REL32 are relative relocations, so we don't need to do anything special when performing the ELF to PE/COFF conversion, since our memory layout is identical between the two binary formats. So just allow them. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard

[edk2] [PATCH 0/6] ArmVirtPkg: add ARM support to ArmVirtXen

2015-11-23 Thread Ard Biesheuvel
boot protocol, which QEMU implements as well.) I would highly appreciate testing on both ARM and AARCH64 platforms, since some AARCH64 code was changed as well (patch #3) Ard Biesheuvel (6): BaseTools/GenFw ARM: allow R_ARM_REL32 relocations ArmLib/ArmV7Mmu: use 64-bit type for mapping region

[edk2] [PATCH 2/6] ArmLib/ArmV7Mmu: use 64-bit type for mapping region size

2015-11-23 Thread Ard Biesheuvel
of exactly 4 GB in size, which just exceeds the range of the UINT32 variable we use in FillTranslationTable() to track our progress while populating the page tables. So promote it to UINT64 instead. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.bies

[edk2] [PATCH 3/6] ArmVirtPkg/XenRelocatablePlatformLib: rewrite DTB memory node retrieval in C

2015-11-23 Thread Ard Biesheuvel
: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org> --- ArmVirtPkg/Library/ArmXenRelocatablePlatformLib/AARCH64/MemnodeParser.S | 237 ArmVirtPkg/Library/ArmXenRelocatablePlatformLib/AARCH64/RelocatableVirtHelper.S

[edk2] [PATCH 6/6] ArmVirtPkg/ArmVirtXen: add ARM support

2015-11-23 Thread Ard Biesheuvel
-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org> --- ArmVirtPkg/ArmVirtXen.dsc | 7 +++ ArmVirtPkg/ArmVirtXen.fdf | 21 ++-- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/ArmVirtPkg/ArmVirtXen

[edk2] [PATCH 5/6] ArmVirtPkg/ArmXenRelocatablePlatformLib: add ARM support

2015-11-23 Thread Ard Biesheuvel
1.0 Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org> --- ArmVirtPkg/Library/ArmXenRelocatablePlatformLib/ARM/RelocatableVirtHelper.S | 140 ArmVirtPkg/Library/ArmXenRelocatablePlatformLib/ArmXenRelocatablePlatformLib.inf | 3 + 2 files changed, 143 inse

[edk2] [PATCH 4/6] ArmVirtPkg/PrePiRelocatable: add ARM support

2015-11-23 Thread Ard Biesheuvel
-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org> --- ArmVirtPkg/PrePi/Arm/ArchPrePi.c| 26 +++ ArmVirtPkg/PrePi/Arm/ModuleEntryPoint.S | 203 ArmVirtPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf | 6 +- ArmVirtPkg/PrePi/Scripts/PrePi-P

[edk2] [PATCH v2 1/2] ArmVirtPkg/ArmVirtQemu: limit the (I)PA space to 40 bits

2015-11-23 Thread Ard Biesheuvel
KVM uses a fixed size of 40 bits for its intermediate physical address space, so there is no need to support anything beyond that even if the host hardware does. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org> Reviewed-by:

[edk2] [PATCH v2 0/2] ArmVirtPkg: limit IPA space to prevent page table memory waste

2015-11-23 Thread Ard Biesheuvel
(formerly patch #2) - use an explicit 64-bit type the left shift left hand operand, since the right hand operand may (and will) exceed 32 even on 32-bit platforms (patch #2, formerly patch #1) - add missing space between MIN and ( Ard Biesheuvel (2): ArmVirtPkg/ArmVirtQemu: limit the (I)PA space

Re: [edk2] [PATCH 0/6] ArmVirtPkg: add ARM support to ArmVirtXen

2015-11-23 Thread Ard Biesheuvel
On 23 November 2015 at 17:56, Ard Biesheuvel <ard.biesheu...@linaro.org> wrote: > By special request, this implements ARM support to the ArmVirtXen > platform. This is probably still rough around the edges, since I have > not tested it myself under Xen yet. I did test all t

Re: [edk2] CryptoPkg: OpenSSL build issue with RVCT

2015-11-24 Thread Ard Biesheuvel
On 24 November 2015 at 15:47, David Woodhouse wrote: > On Tue, 2015-11-24 at 14:19 +, Cohen, Eugene wrote: >> >> Here's a patch with this changes: >> >> --- >> edk2/CryptoPkg/Library/OpensslLib/OpensslLib.inf| 2 >> +- >>

Re: [edk2] [PATCH] ArmPkg/ArmPlatformPkg: position vectors relative to base

2015-11-19 Thread Ard Biesheuvel
otated, > with VECTOR_BASE and VECTOR_END, which provide the necessary alignment > and symbol exports. The now redundant directives and labels are removed. > > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Mark Rutland <mark.rutl...@arm.com> > Cc: Ar

Re: [edk2] [PATCH] ArmPkg: correct TCR_EL1 TTBR1_EL1 settings

2015-11-19 Thread Ard Biesheuvel
e Contribution Agreement 1.0 > Signed-off-by: Mark Rutland <mark.rutl...@arm.com> > Cc: Leif Lindholm <leif.lindh...@linaro.org> > Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> > --- > ArmPkg/Include/Chipset/AArch64Mmu.h| 2 ++ > ArmPkg/Library/ArmLib/AArch

Re: [edk2] ArmPkg: Dead code stripping

2015-11-19 Thread Ard Biesheuvel
(+ Leif) On 19 November 2015 at 15:42, Cohen, Eugene wrote: > Ok, I created a script after all - I went ahead and created a script to add > AREA directives whenever an exported label is found. > > Same question as before: do you want me to submit a patchset with the AREA >

[edk2] [PATCH 0/2] ArmVirtPkg: limit IPA space to prevent page table memory waste

2015-11-21 Thread Ard Biesheuvel
into similar issues on ThunderX, or any other hardware whose support PA space is so large. Their platform does not use ArmVirtPkg/ArmVirtPlatformLib though, so a similar change may be necssary on the Xen end. Ard Biesheuvel (2): ArmVirtPkg/ArmVirtPlatformLib: reduce ID map size to GCD region size

[edk2] [PATCH 2/2] ArmVirtPkg/ArmVirtQemu: limit the (I)PA space to 40 bits

2015-11-21 Thread Ard Biesheuvel
KVM uses a fixed size of the intermediate physical address space of 40 bits, so there is no need to support anything beyond that even if the host hardware does. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org> --- ArmV

[edk2] [PATCH 1/2] ArmVirtPkg/ArmVirtPlatformLib: reduce ID map size to GCD region size

2015-11-21 Thread Ard Biesheuvel
to gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize bits, since we cannot manipulate mappings above that limit anwyay (because they are not covered by GCD). This allows the PCD to be set by platforms whose (I)PA space has a fixed limit. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard

[edk2] [PATCH v2 1/2] BaseTools AARCH64: add separate GCC build rule for XIP objects

2016-01-08 Thread Ard Biesheuvel
-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org> --- BaseTools/Conf/build_rule.template | 13 + 1 file changed, 13 insertions(+) diff --git a/BaseTools/Conf/build_rule.template b/BaseTools/Conf/build_rule.template index 3637ef47414e..91bcc1828cb5 100644 --- a/BaseTool

[edk2] [PATCH v2 0/2] BaseTools AARCH64: build XIP modules with strict alignment

2016-01-08 Thread Ard Biesheuvel
and toolchains Ard Biesheuvel (2): BaseTools AARCH64: add separate GCC build rule for XIP objects BaseTools AARCH64: build XIP modules with strict alignment BaseTools/Conf/build_rule.template | 13 + BaseTools/Conf/tools_def.template | 9 - 2 files changed, 21 insertions

Re: [edk2] [PATCH] ARM: Virt: Don't generate RTC ACPI node when using UEFI

2016-01-13 Thread Ard Biesheuvel
On 13 January 2016 at 11:18, Laszlo Ersek wrote: > On 01/12/16 16:24, Shannon Zhao wrote: >> When booting VM through UEFI, UEFI takes ownership of the RTC hardware. >> To DTB UEFI could call libfdt api to disable the RTC device node, but to >> ACPI it couldn't do that.

[edk2] [PATCH v2] ArmPkg/ArmLib: avoid cache maintenance in PEIMs when executing in place

2016-06-13 Thread Ard Biesheuvel
performing the cache maintenance if the MMU code is not used to begin with, check that explicitly in the constructor. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org> --- As discussed in the thread dedicated to this s

Re: [edk2] [PATCH v2] ArmPkg/ArmLib: avoid cache maintenance in PEIMs when executing in place

2016-06-13 Thread Ard Biesheuvel
On 13 June 2016 at 17:45, Mark Rutland <mark.rutl...@arm.com> wrote: > On Mon, Jun 13, 2016 at 05:26:07PM +0200, Ard Biesheuvel wrote: >> On some platforms, performing cache maintenance on regions that are backed >> by NOR flash result in SErrors. Since cache maint

Re: [edk2] [PATCH v2] ArmPkg/ArmLib: avoid cache maintenance in PEIMs when executing in place

2016-06-15 Thread Ard Biesheuvel
On 15 June 2016 at 17:10, Leif Lindholm <leif.lindh...@linaro.org> wrote: > On 13 June 2016 at 16:26, Ard Biesheuvel <ard.biesheu...@linaro.org> wrote: >> On some platforms, performing cache maintenance on regions that are backed >> by NOR flash result in SErro

Re: [edk2] [PATCH v3 0/6] Pl011 Driver improvements

2016-06-15 Thread Ard Biesheuvel
On 15 June 2016 at 14:52, wrote: > From: Evan Lloyd > > Updates and bug fixes for the PL011 driver in ArmPlatformPkg. > > Because of an interface change, ArmVirtPkg/FdtPL011SerialPortLib is also > updated. > > This patchset is a resubmit in response to

Re: [edk2] [PATCH 4/4] ArmVirtPkg: add FDF definition for empty varstore

2016-06-22 Thread Ard Biesheuvel
On 21 June 2016 at 17:43, Laszlo Ersek <ler...@redhat.com> wrote: > On 06/21/16 12:30, Ard Biesheuvel wrote: >> Similar to how OVMF implements this, add a FD definition for the varstore >> firmware volume and the FTW areas. This can be used by host side tooling >> to man

[edk2] [PATCH v2] ArmVirtPkg: add FDF definition for empty varstore

2016-06-22 Thread Ard Biesheuvel
[0] fields in the FV header, the Size field of the varstore header, and the Crc and WriteQueueSize fields of the FTW header. The event log region is not used by ArmVirtQemu, so it has been omitted. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.bies

[edk2] [PATCH] ArmPkg/ArmGicV3Dxe: configure all interrupts as non-secure Group-1

2016-06-22 Thread Ard Biesheuvel
by the non-secure firmware. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org> --- This is the EDK2 counterpart of Peter's patch against the Linux kernel 7c9b973061b0 ("irqchip/gic-v3: Configure all interrupts as non-sec

Re: [edk2] [PATCH 0/4] ArmVirtPkg: add empty varstore definition to ArmVirtQemu

2016-06-22 Thread Ard Biesheuvel
On 22 June 2016 at 16:46, Leif Lindholm <leif.lindh...@linaro.org> wrote: > On Tue, Jun 21, 2016 at 12:30:30PM +0200, Ard Biesheuvel wrote: >> This series refactors some of the NOR flash code in ArmPlatformPkg and >> ArmVirtPkg so that we can add an empty varstore definition

[edk2] [PATCH 3/4] ArmPlatformPkg/NorFlashAuthenticatedDxe: remove this obsolete module

2016-06-21 Thread Ard Biesheuvel
This module is now identical in functionality to NorFlashDxe, and is no longer used, so remove it altogether. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org> --- ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashAuthenticatedDxe.in

[edk2] [PATCH 0/4] ArmVirtPkg: add empty varstore definition to ArmVirtQemu

2016-06-21 Thread Ard Biesheuvel
and gEfiVariableGuid in the varstore FV headers, and is an improvement by itself, since it allows us to get rid of the 'secure boot' flavor of NorFlashDxe. Ard Biesheuvel (4): ArmPlatformPkg/NorFlashDxe: accept both non-secure and secure varstore GUIDs ArmVirtPkg/ArmVirtQemu: switch secure boot build

[edk2] [PATCH 4/4] ArmVirtPkg: add FDF definition for empty varstore

2016-06-21 Thread Ard Biesheuvel
Similar to how OVMF implements this, add a FD definition for the varstore firmware volume and the FTW areas. This can be used by host side tooling to manipulate a pristine varstore before presenting it to the guest. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard

[edk2] [PATCH 2/4] ArmVirtPkg/ArmVirtQemu: switch secure boot build to NorFlashDxe

2016-06-21 Thread Ard Biesheuvel
to the common NorFlashDxe. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org> --- ArmVirtPkg/ArmVirtQemu.dsc | 4 ArmVirtPkg/ArmVirtQemu.fdf | 4 ArmVirtPkg/ArmVirtQemuKernel.dsc | 4 ArmV

[edk2] [PATCH 1/4] ArmPlatformPkg/NorFlashDxe: accept both non-secure and secure varstore GUIDs

2016-06-21 Thread Ard Biesheuvel
into a single one, which means we can remove NorFlashAuthenticatedDxe entirely in a subsequent patch. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org> --- ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashAuthenticatedDxe.inf

[edk2] [PATCH 1/4] ArmPkg: introduce ArmMmuLib library class

2016-06-16 Thread Ard Biesheuvel
Introduce the library class ArmMmuLib, which encapsulates the functionality to set up and modify page table entries. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org> --- ArmPkg/ArmPkg.dec | 1 + ArmPkg/I

[edk2] [PATCH 2/4] ArmPkg: introduce base ArmMmuLib implementation

2016-06-16 Thread Ard Biesheuvel
Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org> --- ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c | 768 ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibReplaceEntry.S | 76 ++ ArmPkg/Library/ArmMmuLib/Arm/ArmMmuLibCore.c

[edk2] [PATCH 4/4] ArmPkg/ArmMmuLib: add PEI specific version of ArmMmuLib

2016-06-16 Thread Ard Biesheuvel
that fail to tolerate cache maintenance operations on NOR flash regions. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org> --- ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuPeiLibConstructor.c | 60 ArmPkg/Library/Arm

Re: [edk2] [PATCH 3/4] ArmPkg ArmVirtPkg MdeModulePkg: switch to separate ArmMmuLib

2016-06-17 Thread Ard Biesheuvel
On 17 June 2016 at 18:30, Laszlo Ersek <ler...@redhat.com> wrote: > On 06/16/16 12:29, Ard Biesheuvel wrote: >> Switch all users of ArmLib that depend on the MMU routines to the new, >> separate ArmMmuLib. This needs to occur in one go, since the MMU >> routines ar

Re: [edk2] [PATCH 4/4] ArmPkg/ArmMmuLib: add PEI specific version of ArmMmuLib

2016-06-21 Thread Ard Biesheuvel
On 17 June 2016 at 12:32, Leif Lindholm <leif.lindh...@linaro.org> wrote: > On Thu, Jun 16, 2016 at 12:29:30PM +0200, Ard Biesheuvel wrote: >> This introduces a special version of ArmMmuLib for PEIMs that takes care >> only to perform cache maintenance on the live entr

Re: [edk2] [PATCH 4/4] ArmVirtPkg: add FDF definition for empty varstore

2016-06-21 Thread Ard Biesheuvel
On 21 June 2016 at 17:43, Laszlo Ersek <ler...@redhat.com> wrote: > On 06/21/16 12:30, Ard Biesheuvel wrote: >> Similar to how OVMF implements this, add a FD definition for the varstore >> firmware volume and the FTW areas. This can be used by host side tooling >> to man

Re: [edk2] [PATCH 4/4] ArmVirtPkg: add FDF definition for empty varstore

2016-06-23 Thread Ard Biesheuvel
>> -Original Message- >> From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of >> Laszlo Ersek >> Sent: Wednesday, June 22, 2016 11:43 PM >> To: Ard Biesheuvel <ard.biesheu...@linaro.org> >> Cc: edk2-devel@lists.01.org <edk2

Re: [edk2] [PATCH] ArmPkg/ArmGicV3Dxe: configure all interrupts as non-secure Group-1

2016-06-23 Thread Ard Biesheuvel
On 23 June 2016 at 15:25, Laszlo Ersek <ler...@redhat.com> wrote: > On 06/22/16 16:32, Ard Biesheuvel wrote: >> Reassign all interrupts to non-secure Group-1 if the GIC has its DS >> (Disable Security) bit set. In this case, it is safe to assume that we >> own the GIC,

Re: [edk2] [PATCH] ArmPkg/ArmGicV3Dxe: configure all interrupts as non-secure Group-1

2016-06-23 Thread Ard Biesheuvel
On 23 June 2016 at 15:51, Leif Lindholm <leif.lindh...@linaro.org> wrote: > On Thu, Jun 23, 2016 at 03:26:53PM +0200, Ard Biesheuvel wrote: >> On 23 June 2016 at 15:25, Laszlo Ersek <ler...@redhat.com> wrote: >> > On 06/22/16 16:32, Ard Biesheuvel wrote: >> >

Re: [edk2] [PATCH 4/4] ArmVirtPkg: add FDF definition for empty varstore

2016-06-23 Thread Ard Biesheuvel
On 23 June 2016 at 16:00, Ard Biesheuvel <ard.biesheu...@linaro.org> wrote: > On 23 June 2016 at 12:57, Laszlo Ersek <ler...@redhat.com> wrote: >> On 06/23/16 10:14, Ard Biesheuvel wrote: >>> On 23 June 2016 at 03:43, Gao, Liming <liming@intel.com> wr

Re: [edk2] [PATCH v2] ArmVirtPkg/ArmVirtXen: Add ACPI support for Virt Xen ARM

2016-06-23 Thread Ard Biesheuvel
On 23 June 2016 at 13:31, Shannon Zhao wrote: > From: Shannon Zhao > > Add ACPI support for Virt Xen ARM and only for aarch64. It gets the > ACPI tables through Xen ARM multiboot protocol. > > Contributed-under: TianoCore Contribution Agreement

Re: [edk2] [PATCH 4/4] ArmVirtPkg: add FDF definition for empty varstore

2016-06-23 Thread Ard Biesheuvel
On 23 June 2016 at 12:57, Laszlo Ersek <ler...@redhat.com> wrote: > On 06/23/16 10:14, Ard Biesheuvel wrote: >> On 23 June 2016 at 03:43, Gao, Liming <liming@intel.com> wrote: >>> Ard: >>> Could you send the updated FDF file that causes build failure? I

[edk2] [PATCH] MdeModulePkg/SerialDxe: fix porting error from EmbeddedPkg

2016-01-15 Thread Ard Biesheuvel
values, but the defaults used by the new version for ReceiveFifoDepth and Timeout deviate from the original values. So put them back. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org> --- MdeModulePkg/Universal/SerialDxe/SerialIo

Re: [edk2] [PATCH V4 10/13] ArmPlatformPkg: Use SerialDxe in MdeModulePkg instead of EmbeddedPkg

2016-01-15 Thread Ard Biesheuvel
On 15 January 2016 at 18:05, Laszlo Ersek wrote: > Hi, > > snipping context liberally... > >> Whilst simple text input seems to work ok, cursor support does not. >> And we need cursor support for Intel BDS. > > (1) I think this is important. See below. > >> When

Re: [edk2] [PATCH] MdeModulePkg/SerialDxe: fix porting error from EmbeddedPkg

2016-01-15 Thread Ard Biesheuvel
On 15 January 2016 at 17:07, Ryan Harkin <ryan.har...@linaro.org> wrote: > On 15 January 2016 at 15:42, Ard Biesheuvel <ard.biesheu...@linaro.org> wrote: >> SerialDxe was migrated to MdeModulePkg from EmbeddedPkg, and all >> users of the latter were moved to the former.

Re: [edk2] [PATCH v2] ARM: Virt: Don't generate RTC ACPI device when using UEFI

2016-01-13 Thread Ard Biesheuvel
won't generate > the RTC ACPI device at all when using UEFI. > > Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> > --- Acked-by: Ard Biesheuvel <ard.biesheu...@linaro.org> > v2: just totally don't generate the RTC ACPI device when using UEFI > --- > hw/arm

Re: [edk2] [PATCH 0/2] ArmPlatformPkg: Remove FVP and Juno

2016-01-18 Thread Ard Biesheuvel
On 18 January 2016 at 15:29, Ryan Harkin wrote: > ARM Ltd Platform support is migrating to use OpenPlatformPkg [1]. > > Currently, Juno and FVP exist both in EDK2's ArmPlatformPkg and in > OpenPlatformPkg. And they are starting to diverge, with > OpenPlatformPkg being the

Re: [edk2] [PATCH 0/2] ArmPlatformPkg: Remove FVP and Juno

2016-01-18 Thread Ard Biesheuvel
On 18 January 2016 at 16:28, Ryan Harkin <ryan.har...@linaro.org> wrote: > On 18 January 2016 at 15:11, Ard Biesheuvel <ard.biesheu...@linaro.org> wrote: >> On 18 January 2016 at 16:08, Ryan Harkin <ryan.har...@linaro.org> wrote: >>> On 18 January 2016 a

Re: [edk2] Transition to GitHub Update

2016-01-16 Thread Ard Biesheuvel
On 15 January 2016 at 22:14, Jarlstrom, Laurie wrote: > To: EDK II Community > > This message is an update on the transition from SourceForge to GitHub for > EDK II development. The schedule is currently targeting the last week of > January or the first week of

Re: [edk2] [PATCH v3] ArmVirtPkg/ArmVirtXen: Add ACPI support for Virt Xen ARM

2016-06-28 Thread Ard Biesheuvel
anoCore Contribution Agreement 1.0 > Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Ard Biesheuvel <ard.biesheu...@linaro.org> Committed as 402dde68aff9 Thanks, Ard. > --- > Changes since v2: > * add gFdtClientProtocolGuid to the [Depex] >

Re: [edk2] [RFC 2/3] ArmPlatformPkg: PL061 - only initialize on protocol load

2016-02-10 Thread Ard Biesheuvel
On 10 February 2016 at 16:55, Leif Lindholm wrote: > For whatever reason, every single operation on the PL061 looked for an > "Initialized" flag, and manually called the initialization function if > not set. Move this to a single call on protocol installation. > I think

Re: [edk2] [RFC 3/3] ArmPlatformPkg: PL061 - rewrite the hardware interaction

2016-02-10 Thread Ard Biesheuvel
On 10 February 2016 at 16:55, Leif Lindholm wrote: > The PL061 GPIO controller is a bit of an anachronism, and the existing > driver does nothing to hide this - leading to it being very tricky to > read. > > Rewrite it to document (in comments and code) what is actually

Re: [edk2] [PATCH v3 0/4] EmbeddedPkg/Lan9118Dxe: MemoryFence and PCD

2016-02-10 Thread Ard Biesheuvel
On 9 February 2016 at 20:29, Ryan Harkin wrote: > On 9 February 2016 at 19:23, Ryan Harkin wrote: >> This is a follow up from my previous patch [1] to add a PCD for the >> auto-negotiation timeout and the v2 series that followed it. >> >> Review

Re: [edk2] [PATCH v3 1/4] EmbeddedPkg/Lan9118Dxe: use MemoryFence

2016-02-10 Thread Ard Biesheuvel
On 9 February 2016 at 20:23, Ryan Harkin <ryan.har...@linaro.org> wrote: > When reviewing my LAN9118 driver PCD patch [1], Ard Biesheuvel noted > that most calls to gBS->Stall() in this driver seem to be used to > prevent timing issues between the device updating data and

Re: [edk2] [PATCH v3 2/4] EmbeddedPkg/Lan9118Dxe: add PCD for negotiation timeout

2016-02-10 Thread Ard Biesheuvel
larger value works for Juno R0, R1 and R2. > > [1] http://article.gmane.org/gmane.comp.bios.edk2.devel/7341 > > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Ryan Harkin <ryan.har...@linaro.org> Reviewed-by: Ard Biesheuvel <ard.biesheu...@linaro.org

Re: [edk2] [PATCH v2 1/4] EmbeddedPkg/Lan9118Dxe: use MemoryFence

2016-02-09 Thread Ard Biesheuvel
On 9 February 2016 at 12:41, Ryan Harkin <ryan.har...@linaro.org> wrote: > When reviewing my LAN9118 driver PCD patch [1], Ard Biesheuvel noted > that most calls to gBS->Stall() in this driver seem to be used to > prevent timing issues between the device updating data and

Re: [edk2] [PATCH v2 2/4] EmbeddedPkg/Lan9118Dxe: add PCD for negotiation timeout

2016-02-09 Thread Ard Biesheuvel
for the NIC to negotiate was causing a problem. > He suggested the solution contained in this patch to provide a PCD > configurable by the platform. > > Setting the PCD to a larger value works for Juno R0, R1 and R2. > > [1] http://article.gmane.org/gmane.comp.bios.edk2.devel/7341 > &

Re: [edk2] [PATCH v2 1/4] EmbeddedPkg/Lan9118Dxe: use MemoryFence

2016-02-09 Thread Ard Biesheuvel
On 9 February 2016 at 14:25, Ard Biesheuvel <ard.biesheu...@linaro.org> wrote: > On 9 February 2016 at 12:41, Ryan Harkin <ryan.har...@linaro.org> wrote: >> When reviewing my LAN9118 driver PCD patch [1], Ard Biesheuvel noted >> that most calls to gBS->Stall()

Re: [edk2] [PATCH v2 3/4] EmbeddedPkg/Lan9118Dxe: minor DEBUG tidyup

2016-02-09 Thread Ard Biesheuvel
ed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Ryan Harkin <ryan.har...@linaro.org> Reviewed-by: Ard Biesheuvel <ard.biesheu...@linaro.org> > --- > EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) >

Re: [edk2] [PATCH v2 4/4] EmbeddedPkg/Lan9118Dxe: rename TimeOut to Retries

2016-02-09 Thread Ard Biesheuvel
.0 > Signed-off-by: Ryan Harkin <ryan.har...@linaro.org> Reviewed-by: Ard Biesheuvel <ard.biesheu...@linaro.org> > --- > EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118DxeUtil.c | 22 +++--- > 1 file changed, 11 insertions(+), 11 deletions(-) > > diff --git

Re: [edk2] [PATCH 0/3] ArmVirtPkg: implement ArmVirtQemuKernel that executes from RAM

2016-02-05 Thread Ard Biesheuvel
On 5 February 2016 at 15:05, Ard Biesheuvel <ard.biesheu...@linaro.org> wrote: > When emulating a full stack of ARM Trusted Firmware, OP-TEE, etc, UEFI will > not > be executed from (emulated) NOR flash but loaded in memory at an a priori > unknown memory addres

Re: [edk2] [PATCH v2] ArmPlatformPkg: remove used .dsc and .fdf files

2016-02-05 Thread Ard Biesheuvel
Ryan Harkin <ryan.har...@linaro.org> Reviewed-by: Ard Biesheuvel <ard.biesheu...@linaro.org> > --- > ArmPlatformPkg/ArmPlatformPkg-2ndstage.dsc | 382 - > ArmPlatformPkg/ArmPlatformPkg-2ndstage.fdf | 263 - > Arm

Re: [edk2] [PATCH v2 0/6] ArmPlatformPkg: remove unused code

2016-02-05 Thread Ard Biesheuvel
On 5 February 2016 at 09:18, Ryan Harkin wrote: > On 4 February 2016 at 11:40, Ryan Harkin wrote: >> On 3 February 2016 at 17:42, Leif Lindholm wrote: >>> Hi Ryan, >>> >>> On Wed, Feb 03, 2016 at 05:09:28PM +, Ryan

[edk2] [PATCH] BaseTools/GenFw AARCH64: add support for relative data relocations

2016-02-12 Thread Ard Biesheuvel
, this is simply a matter of whitelisting these new relocation types in the same way. While we're at it, clean up the code a bit, and add a comment explaining why these relocations are ignored in WriteRelocations64 (). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel

Re: [edk2] [PATCH] ArmPkg: DefaultExceptionHandler fixes for use with DxeCore

2016-02-12 Thread Ard Biesheuvel
uted-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Eugene Cohen <eug...@hp.com> One coding style nit below, but I will fix that up when applying Reviewed-by: Ard Biesheuvel <ard.biesheu...@linaro.org> > --- > .../AArch64/DefaultExceptionHandler.c |

Re: [edk2] [PATCH 0/2] ArmPlatformPkg/ArmJunoPkg: boot and FDT cleanup

2016-02-12 Thread Ard Biesheuvel
On 12 February 2016 at 11:41, Ryan Harkin <ryan.har...@linaro.org> wrote: > On 12 February 2016 at 09:25, Ard Biesheuvel <ard.biesheu...@linaro.org> > wrote: >> On 10 February 2016 at 16:51, Ryan Harkin <ryan.har...@linaro.org> wrote: >>> This small seri

[edk2] [PATCH 1/3] ArmVirtPkg/EarlyFdtPL011: allow patchable PCD for initial DT base address

2016-02-05 Thread Ard Biesheuvel
Allow the use of a patchable PCD for the initial DT base address recorded in gArmVirtTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress, so that the module can be reused by a relocatable version of ArmVirtQemu. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel

[edk2] [PATCH 2/3] ArmVirtPkg: introduce new ArmQemuRelocatablePlatformLib

2016-02-05 Thread Ard Biesheuvel
for the system memory, but uses the QEMU MMU layout. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org> --- ArmVirtPkg/Library/{ArmXenRelocatablePlatformLib => ArmQemuRelocatablePlatformLib}/AARCH64/RelocatableVir

[edk2] [PATCH 3/3] ArmVirtPkg: implement ArmVirtQemuKernel

2016-02-05 Thread Ard Biesheuvel
. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org> --- ArmVirtPkg/{ArmVirtQemu.dsc => ArmVirtQemuKernel.dsc} | 50 ArmVirtPkg/{ArmVirtQemu.fdf => ArmVirtQemuKernel.fdf} | 49 +++ 2 files changed, 5

[edk2] [PATCH 0/3] ArmVirtPkg: implement ArmVirtQemuKernel that executes from RAM

2016-02-05 Thread Ard Biesheuvel
address and the contents of the DT Patch #3 contains the platform DSC and FDF definitions Ard Biesheuvel (3): ArmVirtPkg/EarlyFdtPL011: allow patchable PCD for initial DT base address ArmVirtPkg: introduce new ArmQemuRelocatablePlatformLib ArmVirtPkg: implement ArmVirtQemuKernel

Re: [edk2] [patch 0/7] Add UEFI2.6 MemoryAttributesTable support.

2016-01-31 Thread Ard Biesheuvel
On 31 January 2016 at 21:36, Laszlo Ersek <ler...@redhat.com> wrote: > On 01/30/16 11:25, Ard Biesheuvel wrote: >> On 30 January 2016 at 04:17, Yao, Jiewen <jiewen@intel.com> wrote: >>> Thanks for the clarification. I think you are right. >>> >&

Re: [edk2] Transition to GitHub is complete

2016-02-03 Thread Ard Biesheuvel
On 3 February 2016 at 00:40, Jordan Justen wrote: > On 2016-02-02 09:47:23, Jordan Justen wrote: >> As mentioned previously, we will attempt to transition to GitHub >> starting this morning (around 10AM PST, UTC-8). One of the first steps >> will be to disable

Re: [edk2] [patch 0/7] Add UEFI2.6 MemoryAttributesTable support.

2016-01-30 Thread Ard Biesheuvel
On 30 January 2016 at 04:17, Yao, Jiewen wrote: > Thanks for the clarification. I think you are right. > > I said "This table is used to retire old PropertiesTable", because UEFI2.6 > does not recommend using PropertiesTable to report RT information. > The future BIOS/OS

Re: [edk2] UEFI Shell: Backspace doesn't work

2016-02-02 Thread Ard Biesheuvel
On 2 February 2016 at 09:05, Bhupesh Sharma wrote: > Hi, > > I think some of the edk2 shell users might have already noticed this, that the > Backspace input doesn't work on the UEFI shell (I am using the latest > edk2/master branch). > > On Qemu-AARCH64 2.5 build, I can

Re: [edk2] [patch 1/6] ArmPlatformPkg:Add FileExplorerLib.inf to the dsc file

2016-02-02 Thread Ard Biesheuvel
dsc file of the package >> which use SecureBootConfigDxe.Now add it to pass build. >> >> Contributed-under: TianoCore Contribution Agreement 1.0 >> Signed-off-by: Dandan Bi <dandan...@intel.com> Reviewed-by: Ard Biesheuvel <ard.biesheu...@linaro.org> >> -

[edk2] [PATCH v4 1/2] MdeModulePkg: AcpiTableDxe: make 4 GB table allocation limit optional

2016-02-23 Thread Ard Biesheuvel
that this will inhibit the publishing of any tables that carry only 32-bit addresses, i.e., RSDPv1, RSDTv1 and RSDTv3. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org> Reviewed-by: "Yao, Jiewen" <jiewen@intel.com

Re: [edk2] [PATCH v3 2/4] IntelFrameworkModulePkg: BdsDxe: only allocate below 4 GB if needed

2016-02-23 Thread Ard Biesheuvel
On 23 February 2016 at 17:06, Laszlo Ersek wrote: [supersnip] > By that I don't mean *another* new PCD, beyond the ACPI version PCD that > Ard's patch series already contains -- I mean a more generic PCD that > *replaces* the ACPI version PCD, and controls the allocations

Re: [edk2] [PATCH v4 0/4] UEFI driver model driver for VirtIO-RNG

2016-02-24 Thread Ard Biesheuvel
On 24 February 2016 at 11:49, Laszlo Ersek <ler...@redhat.com> wrote: > On 02/24/16 09:34, Ard Biesheuvel wrote: >> This implements a UEFI driver model driver for the VirtIO RNG device. >> >> Changes since v3: >> - add patch to add the driver to OvmfPkg builds (#

Re: [edk2] [PATCH] ArmPlatformPkg/IntelBds: call BdsLibConnectAll()

2016-02-24 Thread Ard Biesheuvel
the sledge hammer approach >> for now. >> >> Contributed-under: TianoCore Contribution Agreement 1.0 >> Signed-off-by: Leif Lindholm <leif.lindh...@linaro.org> > > Tested-by: Ryan Harkin <ryan.har...@linaro.org> > Reviewed-by: Ryan Harkin <rya

[edk2] [PATCH v4 2/4] OvmfPkg: implement UEFI driver for Virtio RNG devices

2016-02-24 Thread Ard Biesheuvel
This implements a UEFI driver model driver for Virtio devices of type VIRTIO_SUBSYSTEM_ENTROPY_SOURCE, and exposes them via instances of the EFI_RNG_PROTOCOL protocol, supporting the EFI_RNG_ALGORITHM_RAW algorithm only. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard

[edk2] [PATCH v4 1/4] OvmfPkg: VirtioFlush(): return the number of bytes written by the host

2016-02-24 Thread Ard Biesheuvel
only to set up its rings). However, the virtio entropy device, to be covered in the upcoming patches, reports the amount of randomness produced by the host only through this quantity. Cc: Jordan Justen <jordan.l.jus...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Sign

[edk2] [PATCH v4 3/4] ArmVirtPkg: ArmVirtQemu: add driver for Virtio-RNG device

2016-02-24 Thread Ard Biesheuvel
This adds the new Virtio-RNG DXE module to the default build of ArmVirtQemu. Note that QEMU needs to be invoked with the 'device virtio-rng-pci' option in order for this device to be exposed to the guest. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel

[edk2] [PATCH v4 4/4] OvmfPkg: add driver for Virtio-RNG device

2016-02-24 Thread Ard Biesheuvel
This adds the new Virtio-RNG DXE module to all three builds of OvmfPkg. Note that QEMU needs to be invoked with the 'device virtio-rng-pci' option in order for this device to be exposed to the guest. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel

Re: [edk2] [PATCH] ArmPkg: AArch64 exception handling init configures HCR in EL2

2016-02-24 Thread Ard Biesheuvel
On 23 February 2016 at 19:31, Cohen, Eugene wrote: >> > + if (ArmReadCurrentEL() == AARCH64_EL2) { >> > +HcrReg = ArmReadHcr(); >> > + >> > +// set AMO, IMO, and FMO so all available async exceptions go to EL2 >> > +// (EL3 takes precedence over this and may choose to

Re: [edk2] [PATCH v3 2/4] IntelFrameworkModulePkg: BdsDxe: only allocate below 4 GB if needed

2016-02-22 Thread Ard Biesheuvel
On 22 February 2016 at 13:11, Laszlo Ersek <ler...@redhat.com> wrote: > On 02/22/16 12:45, Ard Biesheuvel wrote: >> On 22 February 2016 at 11:24, Laszlo Ersek <ler...@redhat.com> wrote: >>> On 02/22/16 04:35, Ni, Ruiyu wrote: >>>> Ard, >>>> So

Re: [edk2] [PATCH v3 2/4] IntelFrameworkModulePkg: BdsDxe: only allocate below 4 GB if needed

2016-02-22 Thread Ard Biesheuvel
alf of Laszlo Ersek >> [ler...@redhat.com] >> Sent: Friday, February 19, 2016 21:40 >> To: Ard Biesheuvel; edk2-de...@ml01.01.org; Tian, Feng; Zeng, Star; >> leif.lindh...@linaro.org; graeme.greg...@linaro.org; Fan, Jeff; Yao, Jiewen >> Cc: Gao, Liming >> Subject

[edk2] [PATCH v4 2/2] ArmVirtPkg/ArmVirtQemu: limit ACPI support to v5.0 and higher

2016-02-23 Thread Ard Biesheuvel
v1.0b), but this may change in the future, so let's choose a meaningful value right away. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org> Reviewed-by: Laszlo Ersek <ler...@redhat.com> --- ArmVirtPkg/ArmVirtQemu.dsc | 4

[edk2] [PATCH v4 0/2] lift AARCH64 4GB allocation restriction

2016-02-23 Thread Ard Biesheuvel
on arm64 anyway. - drop BdsDxe patch for now, more discussion is needed - implement review feedback from Star Ard Biesheuvel (2): MdeModulePkg: AcpiTableDxe: make 4 GB table allocation limit optional ArmVirtPkg/ArmVirtQemu: limit ACPI support to v5.0 and higher ArmVirtPkg/ArmVirtQemu.dsc

Re: [edk2] [PATCH v3 1/4] MdeModulePkg: AcpiTableDxe: make 4 GB table allocation limit optional

2016-02-23 Thread Ard Biesheuvel
On 23 February 2016 at 04:03, Zeng, Star <star.z...@intel.com> wrote: > Ard, > > On 2016/2/19 21:15, Ard Biesheuvel wrote: >> >> AARCH64 systems never require compatibility with legacy ACPI OSes, and >> may not have any 32-bit addressable system RAM. To support

Re: [edk2] [PATCH] MdePkg: Fix AArch64 DAIF interrupt mask definitions

2016-02-23 Thread Ard Biesheuvel
On 23 February 2016 at 08:21, Ard Biesheuvel <ard.biesheu...@linaro.org> wrote: > (+ Liming) > > On 22 February 2016 at 22:59, Cohen, Eugene <eug...@hp.com> wrote: >> The AArch64 DAIF bits are different for reading (mrs) versus writing (msr). >> The bitmask defin

Re: [edk2] [PATCH v3 2/4] IntelFrameworkModulePkg: BdsDxe: only allocate below 4 GB if needed

2016-02-22 Thread Ard Biesheuvel
On 22 February 2016 at 13:40, Yao, Jiewen wrote: > I did a search on current MdeModulePkg. I found there are more modules > allocating Below4G memory. > > Besides BDS, we have BootGraphicsResourceTableDxe, BootScriptExecutorDxe, > FirmwarePerformanceDataTableDxe,

[edk2] [PATCH] MdeModulePkg: DxeCore: fully initialize image context before passing it on

2016-02-29 Thread Ard Biesheuvel
Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org> --- MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c b/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c index 0a3471

[edk2] [PATCH] ArmVirtPkg: ArmVirtQemu: make ACPI support AARCH64 only

2016-02-22 Thread Ard Biesheuvel
No ARM support for ACPI is planned under any OS we intend to run under ArmVirtQemu-ARM, so remove the drivers from the ARM build. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org> --- ArmVirtPkg/ArmVirtQemu.ds

Re: [edk2] [PATCH v3 2/4] IntelFrameworkModulePkg: BdsDxe: only allocate below 4 GB if needed

2016-02-22 Thread Ard Biesheuvel
On 22 February 2016 at 13:42, Ard Biesheuvel <ard.biesheu...@linaro.org> wrote: > On 22 February 2016 at 13:40, Yao, Jiewen <jiewen@intel.com> wrote: >> I did a search on current MdeModulePkg. I found there are more modules >> allocating Below4G memory.

Re: [edk2] [PATCH 0/4] Rework the pl061 driver for better readability

2016-02-26 Thread Ard Biesheuvel
in preparation for the > improvements. > For the series: Reviewed-by: Ard Biesheuvel <ard.biesheu...@linaro.org> > Changes since RFC: > - Rework the initialization code based on feedback from Ard. > - Bugfix reported by Ard and tested by Haojian. > - Moved the Linaro Copyright introd

Re: [edk2] [PATCH v4 1/2] MdeModulePkg: AcpiTableDxe: make 4 GB table allocation limit optional

2016-02-25 Thread Ard Biesheuvel
On 25 February 2016 at 17:07, David Woodhouse <dw...@infradead.org> wrote: > On Tue, 2016-02-23 at 18:35 +0100, Ard Biesheuvel wrote: >> AARCH64 systems never require compatibility with legacy ACPI OSes, and >> may not have any 32-bit addressable system RAM. To support ACPI on

<    2   3   4   5   6   7   8   9   10   11   >