Re: [edk2] [PATCH 0/8] NASM: Object files; Thunk16; Require for non-MSVC

2014-08-26 Thread Gao, Liming
Jordan: I verify this patch in GCC46. The patch is good to me. Reviewed-by: Gao, Liming Thanks Liming -Original Message- From: Jordan Justen [mailto:jljus...@gmail.com] Sent: Wednesday, August 27, 2014 1:50 PM To: edk2-devel@lists.sourceforge.net; Gao, Liming Subject: Re: [edk2] [PA

Re: [edk2] [EmulatorPkg][PATCH]EmulatorPkg:Host: Port emulator to Xcode5

2014-08-26 Thread Jordan Justen
On Tue, Aug 26, 2014 at 9:34 PM, Andrew Fish wrote: > EmulatorPkg:Host: Port emulator to Xcode5 > > Xcode5 retired gdb, so this patch adds support for using, and loading symbols > in, lldb. Cool, but I don't think the subject is right: -EmulatorPkg:Host: Port emulator to Xcode5 +EmulatorPkg Unix

Re: [edk2] [BaseTools][PATCH 4/5] Add support for Xcode5

2014-08-26 Thread Jordan Justen
Regarding subject line of commit message, how about: -Add support for Xcode5 +BaseTools tools_def: Add XCODE5 toolchain https://github.com/tianocore/tianocore.github.io/wiki/Commit-Message-Format On Tue, Aug 26, 2014 at 4:37 PM, Andrew Fish wrote: > Add support for Xcode5 Is this a duplicate of

Re: [edk2] [PATCH 0/8] NASM: Object files; Thunk16; Require for non-MSVC

2014-08-26 Thread Jordan Justen
On Tue, Aug 19, 2014 at 4:57 PM, Jordan Justen wrote: > This series: > * Adds support for creating object files from .nasm source files to >allow NASM source files to be linked into libraries and images > * Adds NASM source files for Thunk16 on IA32 and X64 > * Convert BaseLib to use NASM S

Re: [edk2] [Patch 2/2] [MdePkg] INF/DEC file updates to EDK II packages

2014-08-26 Thread Gao, Liming
Jordan: After UPT clean up, those files can still edit easily. UPT tool just changes section Order and Alignment. The source package can still directly be compared. So, daily work is no change. Thanks Liming -Original Message- From: Jordan Justen [mailto:jljus...@gmail.com] Sent: Wed

[edk2] [EmulatorPkg][PATCH]EmulatorPkg:Host: Port emulator to Xcode5

2014-08-26 Thread Andrew Fish
EmulatorPkg:Host: Port emulator to Xcode5 Xcode5 retired gdb, so this patch adds support for using, and loading symbols in, lldb. The lldb script also supports dumping out the build generated guid database and it prints guids out with thier Cname if available. lldbefi.py also contains some EFI

[edk2] [EmulatorPkg] [PATCH] EmulatorPkg:Host: Fix uninitialized variable detected by clang.

2014-08-26 Thread Andrew Fish
EmulatorPkg:Host: Fix uninitialized variable detected by clang. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish --- EmulatorPkg/Unix/Host/PosixFileSystem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EmulatorPkg/Unix/Host/PosixFileSyst

Re: [edk2] [Patch 2/2] [MdePkg] INF/DEC file updates to EDK II packages

2014-08-26 Thread Jordan Justen
On Tue, Aug 26, 2014 at 7:17 AM, Gao, Liming wrote: > Jordan: > UPT clean up main purpose has been mentioned in Mike email. "This allows UDP > packages installed by UPT to be compared against EDK II trunk/branches using > standard diff utilities." I thought we moved away from xml files to have fi

Re: [edk2] [BaseTools][PATCH 3/5] Fix clang warnings about asigning a void * to its self.

2014-08-26 Thread Gao, Liming
Yes. We don't want to modify LZMA code. -Original Message- From: Andrew Fish [mailto:af...@apple.com] Sent: Wednesday, August 27, 2014 10:48 AM To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] [BaseTools][PATCH 3/5] Fix clang warnings about asigning a void * to its self. On Au

Re: [edk2] [BaseTools][PATCH 3/5] Fix clang warnings about asigning a void * to its self.

2014-08-26 Thread Andrew Fish
On Aug 26, 2014, at 7:41 PM, Gao, Liming wrote: > Andrew: > BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaEnc.c is LZMA code. > BaseTools/Source/C/LzmaCompress/LzmaCompress.c is BaseTools wrap code. > Maybe it is better to fix it with the compiler flag then? Thanks, Andrew Fish > Thanks > L

Re: [edk2] [BaseTools][PATCH 3/5] Fix clang warnings about asigning a void * to its self.

2014-08-26 Thread Gao, Liming
Andrew: BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaEnc.c is LZMA code. BaseTools/Source/C/LzmaCompress/LzmaCompress.c is BaseTools wrap code. Thanks Liming -Original Message- From: Andrew Fish [mailto:af...@apple.com] Sent: Wednesday, August 27, 2014 8:06 AM To: edk2-devel@lists.sour

Re: [edk2] [BaseTools][PATCH 4/5] Add support for Xcode5

2014-08-26 Thread Andrew Fish
On Aug 26, 2014, at 7:04 PM, Gao, Liming wrote: > What's *.S16? GCC 16bit code? > We were using it for clang 16-bit assembler. It gets used for the reset vector code. We don’t currently use NASM. Thanks, Andrew Fish > -Original Message- > From: Andrew Fish [mailto:af...@apple.com]

Re: [edk2] [BaseTools][PATCH 5/5] BaseTools: Fix clang C++ build error.

2014-08-26 Thread Dong, Eric
Reviewed-by: Eric Dong -Original Message- From: Andrew Fish [mailto:af...@apple.com] Sent: Wednesday, August 27, 2014 7:37 AM To: edk2-devel@lists.sourceforge.net Subject: [edk2] [BaseTools][PATCH 5/5] BaseTools: Fix clang C++ build error. Fix clang C++ build error. Move argument defa

Re: [edk2] [BaseTools][PATCH 4/5] Add support for Xcode5

2014-08-26 Thread Gao, Liming
What's *.S16? GCC 16bit code? -Original Message- From: Andrew Fish [mailto:af...@apple.com] Sent: Wednesday, August 27, 2014 7:37 AM To: edk2-devel@lists.sourceforge.net Subject: [edk2] [BaseTools][PATCH 4/5] Add support for Xcode5 Add support for Xcode5 Xcode 5 changed the flags needed

Re: [edk2] [IntelFrameworkModulePkg][PATCH 1/1] LegacyBiosDxe: Remove C undefined behavior.

2014-08-26 Thread Li, Elvin
Andrew: It is good to me. Reviewed-by: Elvin Li Thanks Elvin -Original Message- From: Andrew Fish [mailto:af...@apple.com] Sent: Wednesday, August 27, 2014 7:37 AM To: edk2-devel@lists.sourceforge.net Subject: [edk2] [IntelFrameworkModulePkg][PATCH 1/1] LegacyBi

Re: [edk2] [BaseTools] [PATCH 2/5] clang warns that since BaseAddress is unsigned it can never be < 0.

2014-08-26 Thread Gao, Liming
The change is good to me. Reviewed-by: Gao, Liming -Original Message- From: Andrew Fish [mailto:af...@apple.com] Sent: Wednesday, August 27, 2014 7:37 AM To: edk2-devel@lists.sourceforge.net Subject: [edk2] [BaseTools] [PATCH 2/5] clang warns that since BaseAddress is unsigned it can n

Re: [edk2] "goto" vfrConstantValue

2014-08-26 Thread Dong, Eric
Tim, Add my comments below. From: Tim Lewis [mailto:tim.le...@insyde.com] Sent: Wednesday, August 27, 2014 9:12 AM To: edk2-devel@lists.sourceforge.net Subject: [edk2] "goto" vfrConstantValue It appears that the VFR specification has not been updated with the HII_REF default format, although it

[edk2] "goto" vfrConstantValue

2014-08-26 Thread Tim Lewis
It appears that the VFR specification has not been updated with the HII_REF default format, although it is used in the DriverSampleDxe. Can I verify the actual format? Here is a sample: default = 0;0;ZERO_GUID;STRING_TOKEN(STR_NULL_STRING), It appears that this is: question = 0, formid =

[edk2] VFR Specification "catenate" example issue

2014-08-26 Thread Tim Lewis
The example for catenate (in 2.12.11.1) appears to be incorrect. I believe that the parameters for catenate should be stringref(STRING_TOKEN), not just STRING_TOKEN. Or at least the grammar doesn't seem to support a STRING_TOKEN in vfrExpressionConstant and the current VfrCompiler.exe complains.

Re: [edk2] [BaseTools][PATCH 3/5] Fix clang warnings about asigning a void * to its self.

2014-08-26 Thread Bruce Cran
On 8/26/2014 6:05 PM, Andrew Fish wrote: > LzmaCompress.c:46:49: error: explicitly assigning a variable of type 'void *' > to itself [-Werror,-Wself-assign] > static void *SzAlloc(void *p, size_t size) { p = p; return MyAlloc(size); } > > I’m not sure if any of our tools warn. It probably came fr

Re: [edk2] Duplicate PCDs in DSC files

2014-08-26 Thread El-Haj-Mahmoud, Samer
Andrew, A summary section in the build log sounds like a good suggestion. My main complaint is that it is not easy to find such build results which are buried deep in the -y/-Y log output. Thanks, --Samer From: Andrew Fish [mailto:af...@apple.com] Sent: Tuesday, August 26, 2014 12:28 PM To: ed

Re: [edk2] [BaseTools][PATCH 3/5] Fix clang warnings about asigning a void * to its self.

2014-08-26 Thread Andrew Fish
On Aug 26, 2014, at 4:52 PM, Bruce Cran wrote: > On 8/26/2014 5:37 PM, Andrew Fish wrote: >> -static void *SzAlloc(void *p, size_t size) { p = p; return MyAlloc(size); } >> -static void SzFree(void *p, void *address) { p = p; MyFree(address); } >> +static void *SzAlloc(void *p, size_t size) { re

Re: [edk2] [BaseTools][PATCH 3/5] Fix clang warnings about asigning a void * to its self.

2014-08-26 Thread Bruce Cran
On 8/26/2014 5:37 PM, Andrew Fish wrote: > -static void *SzAlloc(void *p, size_t size) { p = p; return MyAlloc(size); } > -static void SzFree(void *p, void *address) { p = p; MyFree(address); } > +static void *SzAlloc(void *p, size_t size) { return MyAlloc(size); } > +static void SzFree(void *p, vo

[edk2] [BaseTools][PATCH 5/5] BaseTools: Fix clang C++ build error.

2014-08-26 Thread Andrew Fish
Fix clang C++ build error. Move argument default to constructor to remove clang warning. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish --- BaseTools/Source/C/VfrCompile/VfrFormPkg.cpp | 2 +- BaseTools/Source/C/VfrCompile/VfrFormPkg.h | 2 +- 2 files chan

[edk2] [BaseTools][PATCH 4/5] Add support for Xcode5

2014-08-26 Thread Andrew Fish
Add support for Xcode5 Xcode 5 changed the flags needed to specify X64 EFIAPI so a new target is needed. Also added NOOPT_* target to previous versions of Xcode support. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish --- BaseTools/Conf/build_rule.template |

[edk2] [BaseTools][PATCH 3/5] Fix clang warnings about asigning a void * to its self.

2014-08-26 Thread Andrew Fish
Fix clang warnings about asigning a void * to its self. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish --- BaseTools/Source/C/LzmaCompress/LzmaCompress.c | 4 ++-- BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaEnc.c | 2 +- 2 files changed, 3 insertions(+), 3 del

[edk2] [BaseTools][PATCH 1/5] Change compiler flags to make Xcode 5.1.1 compile the BaseTools

2014-08-26 Thread Andrew Fish
Note: We need to test the flags on other gcc flavors. If they are not compatible we will need different flags for different tools. Change compiler flags to make Xcode 5.1.1 compile the BaseTools -fno-merge-constants is not supported by clang, and it warns it will turn into a hard error in the f

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

2014-08-26 Thread Laszlo Ersek
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/mach-virt emulated environment. > The following assumptions are m

[edk2] [IntelFrameworkModulePkg][PATCH 1/1] LegacyBiosDxe: Remove C undefined behavior.

2014-08-26 Thread Andrew Fish
Remove C undefined behavior. The C standard defines accessing address zero as undefined behavior and clang optimizes all code after the access. The volatile is required to allow access to address zero. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish --- In

[edk2] [BaseTools] [PATCH 2/5] clang warns that since BaseAddress is unsigned it can never be < 0.

2014-08-26 Thread Andrew Fish
clang warns that since BaseAddress is unsigned it can never be < 0. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish --- BaseTools/Source/C/GenVtf/GenVtf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Source/C/GenVtf/GenVtf.c b

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

2014-08-26 Thread Laszlo Ersek
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 > by the platform. Also, move the non-SEC call to > ArmPlatformInitialize

[edk2] [RFC] BaseTools/Bin/Win32/Readme.txt update with additional content

2014-08-26 Thread Hauch, Larry
Hi Folks, I would like to update the Readme.txt file that generated by the Build Server when we update the BaseTools Win32 binaries. Please provide feedback so that I will be able to update the Build server scripts that generate the updated content on Tuesday, Sept. 2. Liming, Please review by

[edk2] [Patch RFC] Fix formatting of four more c-based tool's --version option

2014-08-26 Thread Hauch, Larry
Liming, Please review the attached patch. Updated GenBootSector, GenCrc32 and GenPage to remove duplicate "Build" word in the version output, updated the minor number and copyright as needed. Updated the VolInfo version output to remove the tool description from the --version output string. Co

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 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 >> >> Contributed-und

Re: [edk2] [PATCH v2 3/8] ArmPkg: allow dynamic GIC base addresses

2014-08-26 Thread Laszlo Ersek
On 08/26/14 15:03, Ard Biesheuvel wrote: > Allow the PCDs gArmTokenSpaceGuid.PcdGicDistributorBase and > gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase to be redeclared > as PcdsDynamic by the platform, so virtual machines can set these > properties during boot. As the PcdGet32() calls now call in

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

2014-08-26 Thread Laszlo Ersek
On 08/26/14 15:03, Ard Biesheuvel wrote: > 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 A

Re: [edk2] [PATCH v2 4/8] ArmPlatformPkg/PrePeiCore: remove GIC related PCDs from unicore

2014-08-26 Thread Laszlo Ersek
On 08/26/14 15:03, Ard Biesheuvel wrote: > 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 > Signed-o

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

2014-08-26 Thread Laszlo Ersek
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 > > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-of

Re: [edk2] [PATCH v2 1/8] ArmPkg/TimerDxe: allow virtual timer to be selected

2014-08-26 Thread Laszlo Ersek
On 08/26/14 15:03, Ard Biesheuvel wrote: > From: Michael Casadevall > > For virtual machines, the physical architected timer may not be available, > so we need to allow the virtual timer to be used instead. > > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Michael Casa

Re: [edk2] Duplicate PCDs in DSC files

2014-08-26 Thread Andrew Fish
On Aug 26, 2014, at 9:22 AM, El-Haj-Mahmoud, Samer wrote: > I take that back, you are correct that the type needs to be one type in the > DSC. Does the build tool actually check that the multiple instances of PCDs > (in a DSC build) use a common type? > > My request is to add the (optional)

Re: [edk2] [Patch 2/2] [MdePkg] INF/DEC file updates to EDK II packages

2014-08-26 Thread Andrew Fish
On Aug 26, 2014, at 7:29 AM, Gao, Liming wrote: > Andrew: > If the package has been pass UPT clean up, their contents are same to UPT > output. You can drop these code base by UPT tool, and create the same layout > to your code base. Then, you can compare them and get the real difference. >

Re: [edk2] [PATCH 4/4] OvmfPkg: AcpiPlatformDxe: implement QEMU's full ACPI table loader interface

2014-08-26 Thread Laszlo Ersek
On 08/26/14 16:33, Paolo Bonzini wrote: > Il 26/08/2014 03:03, Laszlo Ersek ha scritto: >> >> The only way you could reliably fish out tables, operation regions etc. >> from the qemu payload would be to write a near-full ACPI interpreter. >> The goal of the interface is the polar opposite, ie. to r

Re: [edk2] [PATCH] MdeModulePkg: Fix EBC DXE issue with x64 function allocation

2014-08-26 Thread Yao, Jiewen
Hi Samer Thanks for the info. Assuming your ASM version patch is correct, here is GCC version patch for your reference. It passes build only, functionality is not validated. I will wait for your response to Mike. Thank you Yao, Jiewen From: El-Haj-Mahmoud, Samer [mailto:samer.el-haj-mahm...@hp

Re: [edk2] Circular Dependency Between DxePrintLibPrint2Protocol and BaseDebugLibSerialPort

2014-08-26 Thread Cohen, Eugene
Tim, the issue was not DEBUG calls in the serial port library (these would be fine since it is self-dependent), the issue is that DebugLib uses PrintLib for AsciiSPrint and that PrintLIb uses DebugLib for ASSERT. Liming, if we use BasePrintLib then we won't get the code size benefits from the D

Re: [edk2] Duplicate PCDs in DSC files

2014-08-26 Thread El-Haj-Mahmoud, Samer
I take that back, you are correct that the type needs to be one type in the DSC. Does the build tool actually check that the multiple instances of PCDs (in a DSC build) use a common type? My request is to add the (optional) ability to break the build if a PCD shows up more than once in the DSC

Re: [edk2] Duplicate PCDs in DSC files

2014-08-26 Thread El-Haj-Mahmoud, Samer
Liming, "But, PCD type must be set to one type in DSC file." This is not true. The build tools are not enforcing this. You can have multiple values for a PCD in the DSC file, and the tools will pick the last one. Hence, my ask for a modification to the build tools to enforce this and break the

Re: [edk2] [PATCH 4/4] OvmfPkg: AcpiPlatformDxe: implement QEMU's full ACPI table loader interface

2014-08-26 Thread Paolo Bonzini
Il 26/08/2014 03:03, Laszlo Ersek ha scritto: > > The only way you could reliably fish out tables, operation regions etc. > from the qemu payload would be to write a near-full ACPI interpreter. > The goal of the interface is the polar opposite, ie. to require the > firmware to know the least possi

Re: [edk2] [Patch 2/2] [MdePkg] INF/DEC file updates to EDK II packages

2014-08-26 Thread Gao, Liming
Andrew: If the package has been pass UPT clean up, their contents are same to UPT output. You can drop these code base by UPT tool, and create the same layout to your code base. Then, you can compare them and get the real difference. Seemly, you request is to reorganize Package layout witho

Re: [edk2] [Patch 2/2] [MdePkg] INF/DEC file updates to EDK II packages

2014-08-26 Thread Gao, Liming
Jordan: UPT clean up main purpose has been mentioned in Mike email. "This allows UDP packages installed by UPT to be compared against EDK II trunk/branches using standard diff utilities." For new added section, they may not follow UPT order. We can clean up them together on next major rel

Re: [edk2] Duplicate PCDs in DSC files

2014-08-26 Thread Gao, Liming
PCD value could be overridden. You can give one common value. The different module could have their value. But, PCD type must be set to one type in DSC file. EDKII Build tool provides the option -y and -Y to dump all PCD value and type for each driver. -y to specify the report file name. -Y spe

Re: [edk2] [PATCH] BaseTools: Add support for ${s_*} and ${d_*} macros in FDF files

2014-08-26 Thread El-Haj-Mahmoud, Samer
Thanks Yingke. Please let me know if you have any questions. Thanks, --Samer From: Liu, Yingke D [mailto:yingke.d@intel.com] Sent: Monday, August 25, 2014 11:49 PM To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] [PATCH] BaseTools: Add support for ${s_*} and ${d_*} macros in FDF fil

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

2014-08-26 Thread Ard Biesheuvel
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 QEMU with two -pflash arguments, each of which points to a NOR image file of exactly 64 MB in size. The second one will be u

[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 --- ArmP

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

2014-08-26 Thread Ard Biesheuvel
This is v2 of the series that adds a platform config to support QEMU based virtual machines, either in TCG or KVM mode. These virtual machines declare their platform configuration by passing a device tree which needs to be parsed by Tianocore rather than relying on hardcoded peripherals. Currentl

[edk2] [PATCH v2 3/8] ArmPkg: allow dynamic GIC base addresses

2014-08-26 Thread Ard Biesheuvel
Allow the PCDs gArmTokenSpaceGuid.PcdGicDistributorBase and gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase to be redeclared as PcdsDynamic by the platform, so virtual machines can set these properties during boot. As the PcdGet32() calls now call into the PCD database, cache the values that are re

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

2014-08-26 Thread Ard Biesheuvel
This changes the definition and a bunch of references to gArmTokenSpaceGuid.PcdSystemMemoryBase and gArmTokenSpaceGuid.PcdSystemMemorySize so they can be declared as dynamic PCDs by the platform. Also, move the non-SEC call to ArmPlatformInitializeSystemMemory() earlier, so a platform has a chance

[edk2] [PATCH v2 4/8] ArmPlatformPkg/PrePeiCore: remove GIC related PCDs from unicore

2014-08-26 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 Signed-off-by: Ard Biesheuvel --- ArmPlatformPkg/PrePeiCore

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

2014-08-26 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 --- ArmPkg/ArmPkg.dec

[edk2] [PATCH v2 1/8] ArmPkg/TimerDxe: allow virtual timer to be selected

2014-08-26 Thread Ard Biesheuvel
From: Michael Casadevall For virtual machines, the physical architected timer may not be available, so we need to allow the virtual timer to be used instead. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Casadevall Signed-off-by: Ard Biesheuvel --- ArmPkg/ArmP

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

2014-08-26 Thread Ard Biesheuvel
This adds support for executing UEFI in a QEMU/mach-virt emulated environment. The following assumptions are made about the target: - ARM architected timer - PL011 UART at 0x900 - at least 1 MB of DRAM at 0x4000, containing the device tree blob The following information is retrieved from t

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

2014-08-26 Thread Ard Biesheuvel
On 25 August 2014 21:19, 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 > --- > ArmPkg/ArmPkg.dec| 2 ++

Re: [edk2] [PATCH 03/10] ArmPkg/TimerDxe: allow virtual timer to be selected

2014-08-26 Thread Laszlo Ersek
some comments below, not affecting semantics On 08/25/14 21:19, Ard Biesheuvel wrote: > From: Michael Casadevall > > For virtual machines, the physical architected timer may not be available, > so we need to allow the virtual timer to be used instead. > > Signed-off-by: Michael Casadevall > Si

Re: [edk2] Duplicate PCDs in DSC files

2014-08-26 Thread Olivier Martin
I am not sure the BaseTools has already raised a warning/error on multiple PCD definitions. In our build system, it automatically appends 'gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString' at the end of the DSC file to track the built binaries. And I have not seen any issue in case PcdFirm

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

2014-08-26 Thread Ard Biesheuvel
On 26 August 2014 12:32, Olivier Martin wrote: > Thanks Ard for the contribution, I will try to have a look later this week. > > Some quick comments: > - Which version of EDK2 should apply the patchset? I suspect the patchset > will not apply... I saw some KVM comments in the timer patches that we

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

2014-08-26 Thread Olivier Martin
Thanks Ard for the contribution, I will try to have a look later this week. Some quick comments: - Which version of EDK2 should apply the patchset? I suspect the patchset will not apply... I saw some KVM comments in the timer patches that were not part of the patch. - I will probably need a new pa

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

2014-08-26 Thread Olivier Martin
The GUID has already been declared in EmbeddedPkg/Include/Guid/Fdt.h. I have just pushed some helper functions to load FDT from Firmware Volume (svn rev15905) or File System (svn rev15908). These functions could be used by VirtFdtDxe.c. > -Original Message- > From: Ard Biesheuvel [mailto

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

2014-08-26 Thread Ard Biesheuvel
On 26 August 2014 11:39, Laszlo Ersek wrote: > On 08/25/14 21:19, Ard Biesheuvel wrote: >> 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 >> ---

Re: [edk2] [PATCH v2] OvmfPkg: QemuVideoDxe: work around misreported QXL framebuffer size

2014-08-26 Thread Gerd Hoffmann
On Di, 2014-08-26 at 10:22 +0200, Laszlo Ersek wrote: > When setting up the list of GOP modes offered on QEMU's stdvga ("VGA") > and > QXL ("qxl-vga") video devices, QemuVideoBochsModeSetup() filters those > modes against the available framebuffer size. (Refer to SVN r15288 / > git > commit ec88061

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

2014-08-26 Thread Laszlo Ersek
On 08/25/14 21:19, Ard Biesheuvel wrote: > 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 > --- > MdeModulePkg/MdeModulePkg.dec |

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

2014-08-26 Thread Peter Maydell
On 25 August 2014 22:03, Laszlo Ersek wrote: > On 08/25/14 21:19, Ard Biesheuvel wrote: >> This series adds a platform config to support QEMU based virtual machines, >> either in TCG or KVM mode. These virtual machines declare their platform >> configuration by passing a device tree which needs to

[edk2] [PATCH v2] OvmfPkg: QemuVideoDxe: work around misreported QXL framebuffer size

2014-08-26 Thread Laszlo Ersek
When setting up the list of GOP modes offered on QEMU's stdvga ("VGA") and QXL ("qxl-vga") video devices, QemuVideoBochsModeSetup() filters those modes against the available framebuffer size. (Refer to SVN r15288 / git commit ec88061e.) The VBE_DISPI_INDEX_VIDEO_MEMORY_64K register of both stdvga

Re: [edk2] [PATCH] MdeModulePkg: Fix bug in DisplayEngine - global width constants init order

2014-08-26 Thread Dong, Eric
Reviewed-by: Eric Dong Code checked in revision: 15898. Thanks, Eric From: El-Haj-Mahmoud, Samer [mailto:samer.el-haj-mahm...@hp.com] Sent: Tuesday, August 26, 2014 2:23 AM To: edk2-devel@lists.sourceforge.net Subject: [edk2] [PATCH] MdeModulePkg: Fix bug in DisplayEngine - global width constan