[edk2] [PATCH 1/2] Report Runtime Services Data to legacy OS as reserved

2013-11-28 Thread Ard Biesheuvel
the entire Runtime Services Data region as reserved in the legacy E820 memory map. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBootSupport.c | 2 +- 1 file changed, 1 insertion

[edk2] [PATCH 0/2] Move SMBIOS tables to RuntimesServicesData region

2013-11-28 Thread Ard Biesheuvel
This is a partial resend of Yi's patch. I have included a workaround for the potential issue identified by Elvin where the tables get clobbered by the legacy OS even if it wants/needs to access the SMBIOS tables. Ard Biesheuvel (1): Report Runtime Services Data to legacy OS as reserved Yi Li

[edk2] [PATCH 1/2] Report Runtime Services Data to legacy OS as reserved

2013-11-28 Thread Ard Biesheuvel
the entire Runtime Services Data region as reserved in the legacy E820 memory map. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBootSupport.c | 2 +- 1 file changed, 1 insertion

[edk2] [PATCH 2/2] SMBIOS: Change SMBIOS from reserve to runtime type

2013-11-28 Thread Ard Biesheuvel
...@linaro.org Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c b/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c index

[edk2] [PATCH 2/2] SMBIOS: Change SMBIOS from reserve to runtime type

2013-11-28 Thread Ard Biesheuvel
...@linaro.org Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c b/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c index

[edk2] [PATCH 0/2][FIXED] Move SMBIOS tables to RuntimesServicesData region

2013-11-28 Thread Ard Biesheuvel
of Yi's patch. I have included a workaround for the potential issue identified by Elvin where the tables get clobbered by the legacy OS even if it wants/needs to access the SMBIOS tables. Ard Biesheuvel (1): Report Runtime Services Data to legacy OS as reserved Yi Li (1): SMBIOS: Change SMBIOS

[edk2] [PATCH 02/10] PeiCore: allow FVs residing at physical address 0x0

2014-08-25 Thread Ard Biesheuvel
In the ARM world, it is quite common to have NOR flash at 0x0 and DRAM elsewhere. Don't treat pointers to FVs residing there as invalid NULL pointers but as a valid 0x0 physical address. Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- MdeModulePkg/Core/Pei/FwVol/FwVol.c | 6 +- 1

[edk2] [PATCH 04/10] ArmPkg: allow dynamically discovered virtual timer interrupt

2014-08-25 Thread Ard Biesheuvel
To support booting on virtual machines whose interrupt routing is discovered from the device tree, allow the interrupt numbers to be redeclared as PcdsDynamic by the platform .dsc --- ArmPkg/ArmPkg.dec| 2 ++ ArmPkg/Drivers/TimerDxe/TimerDxe.c | 6

[edk2] [PATCH 00/10] add support for AArch64 QEMU/KVM

2014-08-25 Thread Ard Biesheuvel
logic, most notably parsing of the device tree to set PCDs containing base addresses etc. The code was tested in TCG mode on x64_64 and in TCG and KVM mode on a ARMv8 Foundation Model (software emulator) Ard Biesheuvel (9): Add minimal support for passing a device tree image PeiCore: allow FVs

[edk2] [PATCH 06/10] ArmPlatformPkg/PrePeiCore: remove GIC related PCDs from unicore

2014-08-25 Thread Ard Biesheuvel
Remove the PCDs gArmTokenSpaceGuid.PcdGicDistributorBase and gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase from PrePeiCoreUniCore.inf, as they are not in fact used by the module. Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf | 2

[edk2] [PATCH 01/10] Add minimal support for passing a device tree image

2014-08-25 Thread Ard Biesheuvel
This adds the possibility to include a DTB blob into the firmware image, and have it installed as a configuration under the correct GUID at UEFI init time. Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- MdeModulePkg/MdeModulePkg.dec | 2 + MdeModulePkg

[edk2] [PATCH 08/10] ArmPkg, ArmPlatformPkg: allow dynamic PCDs for memory base and size

2014-08-25 Thread Ard Biesheuvel
to set these PCDs before they are first referenced. The purpose is allowing dynamically instantiated virtual machines to declare the system memory by passing a device tree. Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- ArmPkg/ArmPkg.dec| 12

[edk2] [PATCH 07/10] ArmPlatformPkg: allow dynamically discovered PL031 RTC

2014-08-25 Thread Ard Biesheuvel
Allow the PCDs gArmPlatformTokenSpaceGuid.PcdPL031RtcBase and gArmPlatformTokenSpaceGuid.PcdPL031RtcPpmAccuracy PCDs to be declared as PcdsDynamic by the platform so they can be overridden during boot. Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- ArmPlatformPkg/ArmPlatformPkg.dec

[edk2] [PATCH 09/10] ArmPlatformPkg: add support for a QEMU/mach-virt target

2014-08-25 Thread Ard Biesheuvel
-off-by: Michael Casadevall michael.casadev...@linaro.org Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- .../AArch64Virtualization-KVM.dsc | 222 + .../AArch64Virtualization-KVM.fdf | 299 + .../AArch64Virtualization.dsc.inc

[edk2] [PATCH 10/10] AArch64-KVM: add support for non-volatile variable store

2014-08-25 Thread Ard Biesheuvel
will be used as the variable store. Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- .../AArch64Virtualization-KVM.dsc | 16 +- .../AArch64Virtualization-KVM.fdf | 4 +- .../Include/Platform/KVM/ArmPlatform.h | 6 +++ .../Library/NorFlashKVM

[edk2] [PATCH v2 5/8] ArmPlatformPkg: allow dynamically discovered PL031 RTC

2014-08-26 Thread Ard Biesheuvel
Allow the PCDs gArmPlatformTokenSpaceGuid.PcdPL031RtcBase and gArmPlatformTokenSpaceGuid.PcdPL031RtcPpmAccuracy PCDs to be declared as PcdsDynamic by the platform so they can be overridden during boot. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel

[edk2] [PATCH v2 0/8] add support for AArch64 QEMU/KVM

2014-08-26 Thread Ard Biesheuvel
logs - style fixes: remove redundant '== TRUE', add space between function and ( - updated/removed comments related to arch timer PCD and arch timer imask - use feature PCD to define whether to use the virtual timer Ard Biesheuvel (7): ArmPkg: allow dynamically discovered virtual timer interrupt

Re: [edk2] [PATCH v2 2/8] ArmPkg: allow dynamically discovered virtual timer interrupt

2014-08-26 Thread Ard Biesheuvel
On 26 August 2014 20:32, Laszlo Ersek ler...@redhat.com wrote: On 08/26/14 15:03, Ard Biesheuvel wrote: To support booting on virtual machines whose interrupt routing is discovered from the device tree, allow the interrupt numbers to be redeclared as PcdsDynamic by the platform .dsc

Re: [edk2] [PATCH v2 6/8] ArmPkg, ArmPlatformPkg: allow dynamic PCDs for memory base and size

2014-08-27 Thread Ard Biesheuvel
On 27 August 2014 00:24, Laszlo Ersek ler...@redhat.com wrote: On 08/26/14 15:03, Ard Biesheuvel wrote: This changes the definition and a bunch of references to gArmTokenSpaceGuid.PcdSystemMemoryBase and gArmTokenSpaceGuid.PcdSystemMemorySize so they can be declared as dynamic PCDs

Re: [edk2] [PATCH v2 7/8] ArmPlatformPkg: add support for a QEMU/mach-virt target

2014-08-27 Thread Ard Biesheuvel
On 27 August 2014 01:36, Laszlo Ersek ler...@redhat.com wrote: I'll skip the DSC, FDF and INF files; I assume those are customized copies from existing platform files. I'll also skip the INF files for now. On 08/26/14 15:03, Ard Biesheuvel wrote: This adds support for executing UEFI in a QEMU

Re: [edk2] [PATCH v2 6/8] ArmPkg, ArmPlatformPkg: allow dynamic PCDs for memory base and size

2014-08-27 Thread Ard Biesheuvel
On 27 August 2014 11:07, Laszlo Ersek ler...@redhat.com wrote: On 08/27/14 09:10, Ard Biesheuvel wrote: On 27 August 2014 00:24, Laszlo Ersek ler...@redhat.com wrote: On 08/26/14 15:03, Ard Biesheuvel wrote: This changes the definition and a bunch of references

Re: [edk2] [PATCH v2 6/8] ArmPkg, ArmPlatformPkg: allow dynamic PCDs for memory base and size

2014-08-27 Thread Ard Biesheuvel
On 27 August 2014 12:36, Laszlo Ersek ler...@redhat.com wrote: On 08/27/14 11:35, Ard Biesheuvel wrote: On 27 August 2014 11:07, Laszlo Ersek ler...@redhat.com wrote: On 08/27/14 09:10, Ard Biesheuvel wrote: On 27 August 2014 00:24, Laszlo Ersek ler...@redhat.com wrote: (b) Predictably, my

Re: [edk2] [PATCH v2 6/8] ArmPkg, ArmPlatformPkg: allow dynamic PCDs for memory base and size

2014-08-27 Thread Ard Biesheuvel
On 27 August 2014 13:53, Laszlo Ersek ler...@redhat.com wrote: On 08/27/14 13:12, Ard Biesheuvel wrote: On 27 August 2014 12:36, Laszlo Ersek ler...@redhat.com wrote: On 08/27/14 11:35, Ard Biesheuvel wrote: On 27 August 2014 11:07, Laszlo Ersek ler...@redhat.com wrote: On 08/27/14 09:10, Ard

[edk2] [PATCH v3 01/10] ArmPkg/TimerDxe: allow virtual timer to be selected

2014-08-27 Thread Ard Biesheuvel
...@linaro.org Acked-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- ArmPkg/ArmPkg.dec | 3 + ArmPkg/Drivers/TimerDxe/TimerDxe.c| 6 ++ ArmPkg/Drivers/TimerDxe/TimerDxe.inf | 4 +- ArmPkg

[edk2] [PATCH v3 03/10] ArmPkg: allow dynamic GIC base addresses

2014-08-27 Thread Ard Biesheuvel
that are required during the handling of interrupts. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- ArmPkg/ArmPkg.dec | 15 +++-- ArmPkg/Drivers/ArmGic/ArmGicDxe.inf | 4 +++- ArmPkg/Drivers/ArmGic

[edk2] [PATCH v3 05/10] ArmPlatformPkg: allow dynamically discovered PL031 RTC

2014-08-27 Thread Ard Biesheuvel
...@redhat.com Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- ArmPlatformPkg/ArmPlatformPkg.dec | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ArmPlatformPkg/ArmPlatformPkg.dec b/ArmPlatformPkg/ArmPlatformPkg.dec index 555c9284bc1b..755e8762f666 100644

[edk2] [PATCH v3 00/10] add support for AArch64 QEMU/KVM

2014-08-27 Thread Ard Biesheuvel
to define whether to use the virtual timer *** BLURB HERE *** Ard Biesheuvel (9): ArmPkg: allow dynamically discovered virtual timer interrupt ArmPkg: allow dynamic GIC base addresses ArmPlatformPkg/PrePeiCore: remove GIC related PCDs from unicore ArmPlatformPkg: allow dynamically

[edk2] [PATCH v3 07/10] ArmPkg: introduce PCD gArmTokenSpaceGuid.PcdDeviceTreeBaseAddress

2014-08-27 Thread Ard Biesheuvel
Introduce gArmTokenSpaceGuid.PcdDeviceTreeBaseAddress, which will be used by virtual machine ports that discover the system configuration from a flattened device tree DTB image. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org

[edk2] [PATCH v3 02/10] ArmPkg: allow dynamically discovered virtual timer interrupt

2014-08-27 Thread Ard Biesheuvel
To support booting on virtual machines whose interrupt routing is discovered from the device tree, allow the interrupt numbers to be redeclared as PcdsDynamic by the platform .dsc Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org

[edk2] [PATCH v3 06/10] ArmPkg, ArmPlatformPkg: allow dynamic PCDs for memory base and size

2014-08-27 Thread Ard Biesheuvel
to set these PCDs before they are first referenced. The purpose is allowing dynamically instantiated virtual machines to declare the system memory by passing a device tree. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- ArmPkg

[edk2] [PATCH v3 04/10] ArmPlatformPkg/PrePeiCore: remove GIC related PCDs from unicore

2014-08-27 Thread Ard Biesheuvel
Remove the PCDs gArmTokenSpaceGuid.PcdGicDistributorBase and gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase from PrePeiCoreUniCore.inf, as they are not in fact used by the module. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Ard

[edk2] [PATCH v3 08/10] ArmPlatformPkg: separate PlatformPei and PlatformPeiLib

2014-08-27 Thread Ard Biesheuvel
This separates PlatformPei and PlatformPeiLib so the latter can be overridden by a specific platform. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- ArmPlatformPkg/PlatformPei/PlatformPeim.inf | 2 +- 1 file changed, 1

[edk2] [PATCH v3 09/10] ArmPlatformPkg: add support for a QEMU/mach-virt target

2014-08-27 Thread Ard Biesheuvel
. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Casadevall michael.casadev...@linaro.org Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- .../AArch64Virtualization-KVM.dsc | 222 ++ .../AArch64Virtualization-KVM.fdf

[edk2] [PATCH v3 10/10] AArch64-KVM: add support for non-volatile variable store

2014-08-27 Thread Ard Biesheuvel
will be used as the variable store. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- .../AArch64Virtualization-KVM.dsc | 16 +- .../AArch64Virtualization-KVM.fdf | 4 +- .../Include/Platform/KVM

Re: [edk2] [PATCH v2 8/8] AArch64-KVM: add support for non-volatile variable store

2014-08-27 Thread Ard Biesheuvel
On 27 August 2014 18:03, Laszlo Ersek ler...@redhat.com wrote: some comments On 08/26/14 15:03, Ard Biesheuvel wrote: This adds support for retaining UEFI environment variables in the second emulated NOR flash which resides at phys address 0x0400 (64 MB). Note that this requires booting

Re: [edk2] [PATCH v3 09/10] ArmPlatformPkg: add support for a QEMU/mach-virt target

2014-08-27 Thread Ard Biesheuvel
On 27 August 2014 20:17, Peter Maydell peter.mayd...@linaro.org wrote: On 27 August 2014 19:15, Olivier Martin olivier.mar...@arm.com wrote: I have been through the patchset yet. But I noticed the name of the platform in another email. Is this new platform AArch64 specific? Could we imagine

Re: [edk2] [PATCH v3 09/10] ArmPlatformPkg: add support for a QEMU/mach-virt target

2014-08-28 Thread Ard Biesheuvel
On 28 August 2014 12:46, Laszlo Ersek ler...@redhat.com wrote: On 08/27/14 17:12, Ard Biesheuvel wrote: diff --git a/ArmPlatformPkg/AArch64VirtualizationPkg/Library/AArch64VirtualizationSysConfigLibKVM/AArch64VirtualizationSysConfigLibKVM.c b/ArmPlatformPkg/AArch64VirtualizationPkg

Re: [edk2] [PATCH v3 09/10] ArmPlatformPkg: add support for a QEMU/mach-virt target

2014-08-28 Thread Ard Biesheuvel
On 28 August 2014 14:50, Ard Biesheuvel ard.biesheu...@linaro.org wrote: On 28 August 2014 14:03, Laszlo Ersek ler...@redhat.com wrote: comments below On 08/27/14 17:12, Ard Biesheuvel wrote: diff --git a/ArmPlatformPkg/AArch64VirtualizationPkg/Library/AArch64VirtualizationLibKVM

[edk2] [PATCH v4 04/16] ArmPlatformPkg/PrePeiCore: remove GIC related PCDs from unicore

2014-08-28 Thread Ard Biesheuvel
Remove the PCDs gArmTokenSpaceGuid.PcdGicDistributorBase and gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase from PrePeiCoreUniCore.inf, as they are not in fact used by the module. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Ard

[edk2] [PATCH v4 08/16] ArmPlatformPkg: separate PlatformPei and PlatformPeiLib

2014-08-28 Thread Ard Biesheuvel
This separates PlatformPei and PlatformPeiLib so the latter can be overridden by a specific platform. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- ArmPlatformPkg/PlatformPei

[edk2] [PATCH v4 01/16] ArmPkg/TimerDxe: allow virtual timer to be selected

2014-08-28 Thread Ard Biesheuvel
...@linaro.org Acked-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- ArmPkg/ArmPkg.dec | 3 + ArmPkg/Drivers/TimerDxe/TimerDxe.c| 6 ++ ArmPkg/Drivers/TimerDxe/TimerDxe.inf | 4 +- ArmPkg

[edk2] [PATCH v4 05/16] ArmPlatformPkg: allow dynamically discovered PL031 RTC

2014-08-28 Thread Ard Biesheuvel
...@redhat.com Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- ArmPlatformPkg/ArmPlatformPkg.dec | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ArmPlatformPkg/ArmPlatformPkg.dec b/ArmPlatformPkg/ArmPlatformPkg.dec index 555c9284bc1b..755e8762f666 100644

[edk2] [PATCH v4 02/16] ArmPkg: allow dynamically discovered virtual timer interrupt

2014-08-28 Thread Ard Biesheuvel
To support booting on virtual machines whose interrupt routing is discovered from the device tree, allow the interrupt numbers to be redeclared as PcdsDynamic by the platform .dsc Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org

[edk2] [PATCH v4 00/16] add support for AArch64 QEMU/KVM

2014-08-28 Thread Ard Biesheuvel
timer imask - use feature PCD to define whether to use the virtual timer Ard Biesheuvel (15): ArmPkg: allow dynamically discovered virtual timer interrupt ArmPkg: allow dynamic GIC base addresses ArmPlatformPkg/PrePeiCore: remove GIC related PCDs from unicore ArmPlatformPkg: allow

[edk2] [PATCH v4 13/16] ArmVirtualizationPkg: add PlatformPeiLib library

2014-08-28 Thread Ard Biesheuvel
This is a fork of the ARM PlatformPeiLib for virtual machines. The main purpose of having this specific implementation is that it allows us to preserve the device tree blob if it was passed to us in system DRAM. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel

[edk2] [PATCH v4 07/16] ArmPkg: introduce PCD gArmTokenSpaceGuid.PcdDeviceTreeBaseAddress

2014-08-28 Thread Ard Biesheuvel
Introduce gArmTokenSpaceGuid.PcdDeviceTreeBaseAddress, which will be used by virtual machine ports that discover the system configuration from a flattened device tree DTB image. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Ard

[edk2] [PATCH v4 14/16] ArmVirtualizationPkg: add ResetSystemLib library

2014-08-28 Thread Ard Biesheuvel
-by: Ard Biesheuvel ard.biesheu...@linaro.org --- .../ResetSystemLib/AARCH64/ResetSystemPsci.S | 40 + .../Library/ResetSystemLib/ARM/ResetSystemPsci.S | 41 + .../Library/ResetSystemLib/ResetSystemLib.c| 97 ++ .../Library/ResetSystemLib

[edk2] [PATCH v4 03/16] ArmPkg: allow dynamic GIC base addresses

2014-08-28 Thread Ard Biesheuvel
that are required during the handling of interrupts. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- ArmPkg/ArmPkg.dec | 15 +++-- ArmPkg/Drivers/ArmGic/ArmGicDxe.inf

[edk2] [PATCH v4 12/16] ArmVirtualizationPkg: add ArmVirtualizationPlatformSysConfigLib library

2014-08-28 Thread Ard Biesheuvel
michael.casadev...@linaro.org Acked-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- .../ArmVirtualizationPlatformSysConfigLib.c| 90 ++ .../ArmVirtualizationPlatformSysConfigLib.inf | 35 + 2 files changed, 125 insertions

[edk2] [PATCH v4 10/16] ArmVirtualizationPkg: add VirtFdtDxe driver

2014-08-28 Thread Ard Biesheuvel
Agreement 1.0 Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- .../ArmVirtualizationPkg/VirtFdtDxe/VirtFdtDxe.c | 261 + .../ArmVirtualizationPkg/VirtFdtDxe/VirtFdtDxe.inf | 59 + 2 files changed, 320 insertions(+) create mode 100644 ArmPlatformPkg

[edk2] [PATCH v4 16/16] ArmVirtualizationPkg: add ArmVirtualizationQemu platform

2014-08-28 Thread Ard Biesheuvel
kernel can be booted directly without the need for a bootloader. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Casadevall michael.casadev...@linaro.org Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- .../ArmVirtualizationPkg/ArmVirtualization.dsc.inc

Re: [edk2] [PATCH v3 09/10] ArmPlatformPkg: add support for a QEMU/mach-virt target

2014-08-28 Thread Ard Biesheuvel
On 28 August 2014 16:52, Peter Maydell peter.mayd...@linaro.org wrote: On 28 August 2014 15:30, Laszlo Ersek ler...@redhat.com wrote: So we got, in the NOR-mapped FD file: address 0: jump instruction to 4K, otherwise a bunch of emptiness (according to erase polarity!) Ideally

Re: [edk2] [PATCH v3 09/10] ArmPlatformPkg: add support for a QEMU/mach-virt target

2014-08-28 Thread Ard Biesheuvel
On 28 August 2014 16:30, Laszlo Ersek ler...@redhat.com wrote: comments below On 08/27/14 17:12, Ard Biesheuvel wrote: diff --git a/ArmPlatformPkg/AArch64VirtualizationPkg/AArch64Virtualization-KVM.dsc b/ArmPlatformPkg/AArch64VirtualizationPkg/AArch64Virtualization-KVM.dsc new file mode

[edk2] [PATCH v5 16/16] ArmVirtualizationPkg: add ArmVirtualizationQemu platform

2014-08-28 Thread Ard Biesheuvel
kernel can be booted directly without the need for a bootloader. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Casadevall michael.casadev...@linaro.org Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- At the special request of Laszlo, this is an updated

Re: [edk2] [PATCH v5 16/16] ArmVirtualizationPkg: add ArmVirtualizationQemu platform

2014-08-29 Thread Ard Biesheuvel
On 29 August 2014 04:20, Laszlo Ersek ler...@redhat.com wrote: Apologies, I have some updates here: On 08/29/14 01:17, Laszlo Ersek wrote: On 08/28/14 17:40, Ard Biesheuvel wrote: + APRIORI DXE { +INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf + } + INF MdeModulePkg/Core/Dxe

Re: [edk2] [PATCH v5 16/16] ArmVirtualizationPkg: add ArmVirtualizationQemu platform

2014-08-29 Thread Ard Biesheuvel
On 29 August 2014 09:53, Ard Biesheuvel ard.biesheu...@linaro.org wrote: On 29 August 2014 04:20, Laszlo Ersek ler...@redhat.com wrote: Apologies, I have some updates here: On 08/29/14 01:17, Laszlo Ersek wrote: On 08/28/14 17:40, Ard Biesheuvel wrote: + APRIORI DXE { +INF

Re: [edk2] [PATCH v3 09/10] ArmPlatformPkg: add support for a QEMU/mach-virt target

2014-08-29 Thread Ard Biesheuvel
On 28 August 2014 23:28, Peter Maydell peter.mayd...@linaro.org wrote: On 28 August 2014 20:57, Laszlo Ersek ler...@redhat.com wrote: The FDF under review follows exactly scheme 2. The FD starts with a DATA region that starts with a manually encoded branch instruction to 0x1000. The DATA

Re: [edk2] [PATCH v4 07/16] ArmPkg: introduce PCD gArmTokenSpaceGuid.PcdDeviceTreeBaseAddress

2014-09-01 Thread Ard Biesheuvel
point, I will do that. -Original Message- From: Ard Biesheuvel [mailto:ard.biesheu...@linaro.org] Sent: 28 August 2014 15:14 To: ler...@redhat.com; Olivier Martin; edk2- de...@lists.sourceforge.net; peter.mayd...@linaro.org; christoffer.d...@linaro.org; drjo...@redhat.com; ilias.bi

Re: [edk2] [PATCH v4 01/16] ArmPkg/TimerDxe: allow virtual timer to be selected

2014-09-01 Thread Ard Biesheuvel
, and implementations in ArmPhysArchTimerControlLib and ArmVirtArchTimerControlLib. Do you agree? ArmLib is a helper library to access architectural registers. -Original Message- From: Ard Biesheuvel [mailto:ard.biesheu...@linaro.org] Sent: 28 August 2014 15:14 To: ler...@redhat.com

Re: [edk2] [PATCH v4 01/16] ArmPkg/TimerDxe: allow virtual timer to be selected

2014-09-02 Thread Ard Biesheuvel
and VirtCounterLib above? And what is the point of having the ArmArchTimerXXX functions if you also call ArmReadCntpXXX directly? -Original Message- From: Ard Biesheuvel [mailto:ard.biesheu...@linaro.org] Sent: 01 September 2014 19:18 To: Olivier Martin Cc: Laszlo Ersek; edk2-devel

Re: [edk2] [PATCH v5 16/16] ArmVirtualizationPkg: add ArmVirtualizationQemu platform

2014-09-02 Thread Ard Biesheuvel
On 29 August 2014 12:58, Laszlo Ersek ler...@redhat.com wrote: On 08/29/14 10:14, Ard Biesheuvel wrote: On 29 August 2014 09:53, Ard Biesheuvel ard.biesheu...@linaro.org wrote: build.py... /home/ard/build/uefi-next/ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationQemu.dsc(...): error

Re: [edk2] Constructor Ordering

2014-09-02 Thread Ard Biesheuvel
On 2 September 2014 15:06, Laszlo Ersek ler...@redhat.com wrote: Let's revive this old thread: On 09/11/13 03:38, Andrew Fish wrote: A dependency tree is constructed so the library constructors get called in the correct sequence. If it does not work it is likely a bug in the libraries INF

[edk2] [PATCH v6 10/23] ArmPkg: move TimerDxe and ArmArchTimerLib to new ArmGenericTimerCounterLib

2014-09-03 Thread Ard Biesheuvel
Update TimerDxe and ArmArchTimerLib to use ArmGenericTimerCounterLib, and update all platforms to select the physical counter instance they have been using implicitly all along. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org

[edk2] [PATCH v6 07/23] ArmPkg: add ArmGenericTimerCounterLib implementation using physical timer

2014-09-03 Thread Ard Biesheuvel
This adds an implementation of ArmGenericTimerCounterLib using the physical architected generic timer. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- .../ArmGenericTimerPhyCounterLib.c | 139

[edk2] [PATCH v6 08/23] ArmPkg: add ArmGenericTimerCounterLib implementation using virtual timer

2014-09-03 Thread Ard Biesheuvel
This adds an implementation of ArmGenericTimerCounterLib using the virtual architected generic timer. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- .../ArmGenericTimerVirtCounterLib.c| 150

[edk2] [PATCH v6 13/23] EmbeddedPkg: split off FDT loading functionality from FdtLib

2014-09-03 Thread Ard Biesheuvel
-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- EmbeddedPkg/Include/FdtLoadLib.h | 51 ++ EmbeddedPkg/Include/libfdt_env.h | 31 - EmbeddedPkg/Library/FdtLib/FdtLib.inf | 13 -- .../{FdtLib = FdtLoadLib

[edk2] [PATCH v6 06/23] ArmPkg: add ArmGenericTimerCounterLib interface

2014-09-03 Thread Ard Biesheuvel
This introduces ArmGenericTimerCounterLib by adding the include file ArmPkg/Include/Library/ArmGenericTimerCounterLib.h. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- ArmPkg/Include/Library/ArmGenericTimerCounterLib.h | 85

[edk2] [PATCH v6 03/23] ArmPkg: add ArmHvcLib

2014-09-03 Thread Ard Biesheuvel
This is a utility library closely modeled after ArmSmcLib, that allows hypervisor call (HVC) instructions to be issued from C code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- ArmPkg/Include/Library/ArmHvcLib.h| 42

[edk2] [PATCH v6 15/23] ArmVirtualizationPkg: add Include/ArmPlatform.h

2014-09-03 Thread Ard Biesheuvel
This include file contains platform specific defines, and is shared by various modules. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- .../ArmVirtualizationPkg/Include/ArmPlatform.h

[edk2] [PATCH v6 01/23] ArmPkg: allow dynamically discovered timer interrupts

2014-09-03 Thread Ard Biesheuvel
To support booting on virtual machines whose interrupt routing is discovered from the device tree, allow the interrupt numbers to be redeclared as PcdsDynamic by the platform .dsc Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org

[edk2] [PATCH v6 04/23] ArmPkg: add ArmPsciResetSystemLib

2014-09-03 Thread Ard Biesheuvel
This implementation of EfiResetSystemLib uses ARM PSCI calls to perform reboot and poweroff, using either HVC or SMC calls. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- ArmPkg/ArmPkg.dec | 8

[edk2] [PATCH v6 16/23] ArmVirtualizationPkg: add private UefiBootServicesTableLib implementation

2014-09-03 Thread Ard Biesheuvel
implementation whose ASSERTs have been defused, so that we can drop the dependency on DebugLib. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- .../ArmVirtualizationUefiBootServicesTableLib.c| 65

[edk2] [PATCH v6 00/23] add support for AArch64 QEMU/KVM

2014-09-03 Thread Ard Biesheuvel
to use the virtual timer Ard Biesheuvel (23): ArmPkg: allow dynamically discovered timer interrupts ArmPkg: allow dynamic GIC base addresses ArmPkg: add ArmHvcLib ArmPkg: add ArmPsciResetSystemLib ArmPkg: rename ArmArchTimerLib.h to ArmArchTimer.h ArmPkg: add ArmGenericTimerCounterLib

[edk2] [PATCH v6 02/23] ArmPkg: allow dynamic GIC base addresses

2014-09-03 Thread Ard Biesheuvel
that are required during the handling of interrupts. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- ArmPkg/ArmPkg.dec | 15 +++-- ArmPkg/Drivers/ArmGic/ArmGicDxe.inf

[edk2] [PATCH v6 05/23] ArmPkg: rename ArmArchTimerLib.h to ArmArchTimer.h

2014-09-03 Thread Ard Biesheuvel
The ArmArchTimerLib.h include file is not directly related to the TimerLib instance ArmArchTimerLib, so the name is confusing. Rename to ArmArchTimer.h instead. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- ArmPkg/Drivers

[edk2] [PATCH v6 09/23] ArmPkg/TimerDxe: respect layering of ARM timer libraries

2014-09-03 Thread Ard Biesheuvel
Replace direct calls to the physical timer system registers with calls into ArmArchTimer.h functions so we can swap in the virtual timer later. Also, register the virt and hyp timer interrupts at init time. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel

[edk2] [PATCH v6 11/23] ArmPkg, ArmPlatformPkg: allow dynamic PCDs for memory base and size

2014-09-03 Thread Ard Biesheuvel
to set these PCDs before they are first referenced. The purpose is allowing dynamically instantiated virtual machines to declare the system memory by passing a device tree. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Ard

[edk2] [PATCH v6 22/23] ArmVirtualizationPkg: add driver for QEMU's NOR flash

2014-09-03 Thread Ard Biesheuvel
This adds an implementation of NorFlashPlatformLib that exposes the two 64 MB NOR flash banks that are provided by QEMU's mach-virt emulation both in 32-bit and 64-bit mode. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Ard

[edk2] [PATCH v6 12/23] ArmPlatformPkg: separate PlatformPei and PlatformPeiLib

2014-09-03 Thread Ard Biesheuvel
This separates PlatformPei and PlatformPeiLib so the latter can be overridden by a specific platform. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- ArmPlatformPkg/PlatformPei

[edk2] [PATCH v6 18/23] ArmVirtualizationPkg: add VirtFdtDxe driver

2014-09-03 Thread Ard Biesheuvel
Agreement 1.0 Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- Removed 'Reviewed-by: Laszlo Ersek ler...@redhat.com': added detection of PSCI device node in the device tree for reset and poweroff handling. .../ArmVirtualizationPkg/VirtFdtDxe/VirtFdtDxe.c | 282

[edk2] [PATCH v6 14/23] ArmVirtualizationPkg: introduce PCDs for device tree base address

2014-09-03 Thread Ard Biesheuvel
of the DTB, the former may be declared as dynamic, and updated at runtime if the DTB is relocated before the DXE phase. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- Moved to ArmVirtualizationPkg from ArmPkg in v5 and earlier

[edk2] [PATCH v6 21/23] ArmVirtualizationPkg: add PlatformPeiLib library

2014-09-03 Thread Ard Biesheuvel
This is a fork of the ARM PlatformPeiLib for virtual machines. The main purpose of having this specific implementation is that it allows us to preserve the device tree blob if it was passed to us in system DRAM. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel

[edk2] [PATCH v6 20/23] ArmVirtualizationPkg: add ArmVirtualizationPlatformSysConfigLib library

2014-09-03 Thread Ard Biesheuvel
michael.casadev...@linaro.org Acked-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- Trivial changes only .../ArmVirtualizationPlatformSysConfigLib.c| 87 ++ .../ArmVirtualizationPlatformSysConfigLib.inf | 31 2 files

[edk2] [PATCH v6 23/23] ArmVirtualizationPkg: add ArmVirtualizationQemu platform

2014-09-03 Thread Ard Biesheuvel
Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- Lots of changes resulting from all the changes in the previous patches, i.e., renamed PCDs, new libraries, library overrides to support the dynamic PL011 base address etc etc. .../ArmVirtualizationPkg/ArmVirtualization.dsc.inc | 335

[edk2] [PATCH v6 19/23] ArmVirtualizationPkg: add ArmVirtualizationPlatformLib library

2014-09-03 Thread Ard Biesheuvel
: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Casadevall michael.casadev...@linaro.org Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- Added detection of PL011 UART base address, improved comments, removed unused functions and fixed whitespace issues. Also uses

[edk2] [PATCH v6 17/23] ArmVirtualizationPkg: add device tree based PL011 SerialPortLib

2014-09-03 Thread Ard Biesheuvel
instance is also provided. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- .../ArmVirtualizationPkg/ArmVirtualizationPkg.dec | 1 + .../EarlyFdtPL011SerialPortLib.c | 186

Re: [edk2] [PATCH 0/9] first round of proposed fixups for add support for AArch64 QEMU/KVM v6

2014-09-04 Thread Ard Biesheuvel
On 4 September 2014 04:09, Laszlo Ersek ler...@redhat.com wrote: Hi Ard, I started to review your v6 patchset in reverse order -- I first created a map between your v5 and v6 patches (as much as it was possible), then started to look at the DSC file(s) first. The requirement to dynamically

[edk2] [PATCH v7 22/24] ArmVirtualizationPkg: add PlatformPeiLib library

2014-09-05 Thread Ard Biesheuvel
...@redhat.com Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- .../Library/PlatformPeiLib/PlatformPeiLib.c| 47 + .../Library/PlatformPeiLib/PlatformPeiLib.inf | 48 ++ 2 files changed, 95 insertions(+) create mode 100644

[edk2] [PATCH v7 23/24] ArmVirtualizationPkg: add driver for QEMU's NOR flash

2014-09-05 Thread Ard Biesheuvel
This adds an implementation of NorFlashPlatformLib that exposes the two 64 MB NOR flash banks that are provided by QEMU's mach-virt emulation both in 32-bit and 64-bit mode. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Ard

[edk2] [PATCH v7 16/24] ArmVirtualizationPkg: introduce gEarlyPL011BaseAddressGuid

2014-09-05 Thread Ard Biesheuvel
From: Laszlo Ersek ler...@redhat.com This GUID will identify a customized HOB that carries the base address of the PL011 serial port, for clients that cannot access PCDs. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek ler...@redhat.com ---

[edk2] [PATCH v7 19/24] ArmVirtualizationPkg: add VirtFdtDxe driver

2014-09-05 Thread Ard Biesheuvel
Agreement 1.0 Reviewed-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- .../ArmVirtualizationPkg/VirtFdtDxe/VirtFdtDxe.c | 282 + .../ArmVirtualizationPkg/VirtFdtDxe/VirtFdtDxe.inf | 61 + 2 files changed, 343 insertions

[edk2] [PATCH v7 05/24] ArmPkg: rename ArmArchTimerLib.h to ArmArchTimer.h

2014-09-05 Thread Ard Biesheuvel
The ArmArchTimerLib.h include file is not directly related to the TimerLib instance ArmArchTimerLib, so the name is confusing. Rename to ArmArchTimer.h instead. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- ArmPkg/Drivers

[edk2] [PATCH v7 13/24] EmbeddedPkg: split off FDT loading functionality from FdtLib

2014-09-05 Thread Ard Biesheuvel
-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- EmbeddedPkg/Include/FdtLoadLib.h | 51 ++ EmbeddedPkg/Include/libfdt_env.h | 31 - EmbeddedPkg/Library/FdtLib/FdtLib.inf | 13 -- .../{FdtLib = FdtLoadLib

[edk2] [PATCH v7 02/24] ArmPkg: allow dynamic GIC base addresses

2014-09-05 Thread Ard Biesheuvel
that are required during the handling of interrupts. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- ArmPkg/ArmPkg.dec | 15 +++-- ArmPkg/Drivers/ArmGic/ArmGicDxe.inf

[edk2] [PATCH v7 20/24] ArmVirtualizationPkg: add ArmVirtualizationPlatformLib library

2014-09-05 Thread Ard Biesheuvel
: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Casadevall michael.casadev...@linaro.org Acked-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- .../AARCH64/VirtHelper.S | 86

[edk2] [PATCH v7 15/24] ArmVirtualizationPkg: add Include/ArmPlatform.h

2014-09-05 Thread Ard Biesheuvel
This include file contains platform specific defines, and is shared by various modules. Contributed-under: TianoCore Contribution Agreement 1.0 Acked-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- .../ArmVirtualizationPkg/Include/ArmPlatform.h

[edk2] [PATCH v7 01/24] ArmPkg: allow dynamically discovered timer interrupts

2014-09-05 Thread Ard Biesheuvel
To support booting on virtual machines whose interrupt routing is discovered from the device tree, allow the interrupt numbers to be redeclared as PcdsDynamic by the platform .dsc Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org

[edk2] [PATCH v7 09/24] ArmPkg/TimerDxe: respect layering of ARM timer libraries

2014-09-05 Thread Ard Biesheuvel
Replace direct calls to the physical timer system registers with calls into ArmArchTimer.h functions so we can swap in the virtual timer later. Also, register the virt and hyp timer interrupts at init time. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel

[edk2] [PATCH v7 10/24] ArmPkg: move TimerDxe and ArmArchTimerLib to new ArmGenericTimerCounterLib

2014-09-05 Thread Ard Biesheuvel
Move TimerDxe and ArmArchTimerLib to ArmGenericTimerCounterLib, and update all platforms to select the physical counter instance they have been using implicitly all along. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- ArmPkg

[edk2] [PATCH v7 14/24] ArmVirtualizationPkg: introduce PCDs for device tree base address

2014-09-05 Thread Ard Biesheuvel
of the DTB, the former may be declared as dynamic, and updated at runtime if the DTB is relocated before the DXE phase. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel ard.biesheu...@linaro.org --- .../ArmVirtualizationPkg/ArmVirtualizationPkg.dec | 46

  1   2   3   4   5   6   7   >