Re: [edk2] [PATCH v4 1/7] MdeModulePkg: introduce PcdPciDisableBusEnumeration

2013-12-04 Thread Ni, Ruiyu
Jordan/Wei, Does Xen care about the PCI option rom? Because I just found the PciBusNoEnumerationDxe driver support dispatching the UEFI option rom loaded by the PciRootBridgeNoEnumerationDxe driver. PciRootBridgeNoEnumerationDxe installs an option ROM buffer table to configuration table to be re

Re: [edk2] [RFC 04/15] MdeModulePkg: SmmLockBox: remove wrong DepEx

2013-12-04 Thread Zeng, Star
Hi Laszlo, The patch has been checked in at R14930. Thanks for your contribution. Star -Original Message- From: Yao, Jiewen [mailto:jiewen@intel.com] Sent: Tuesday, December 03, 2013 11:49 AM To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] [RFC 04/15] MdeModulePkg: SmmLockBo

[edk2] EDKII EBC not a image error

2013-12-04 Thread boot devel
Hi I am facing issue to load EDKII EBC compiled driver from UEFI shell where ‘load Driver.efi’ is returning ‘is not a image’ error. I have build setup environment with VS2008, C Compiler for EFI Byte Code, Version 1.3 installed. My target file has following params: TARGET_ARCH =

Re: [edk2] Getting PCD values for tools that post process the build.

2013-12-04 Thread Olivier Martin
FYI, I have a similar script in tianocore/ArmPlatformPkg/Scripts/Ds5/build_report.py. This python script uses the build report to access the PCDs. Example: build = build_report.BuildReport(report_log) build.PCDs['gArmTokenSpaceGuid']['PcdSecureFvSize'] > -Original Message- > From: Andrew

Re: [edk2] [PATCH v4 1/7] MdeModulePkg: introduce PcdPciDisableBusEnumeration

2013-12-04 Thread Wei Liu
Please don't drop Xen-devel. On Wed, Dec 04, 2013 at 08:13:13AM +, Ni, Ruiyu wrote: > Jordan/Wei, > Does Xen care about the PCI option rom? Because I just found the Yes. In seabios case it calls options roms if there's any. I think OVMF should do the same thing. > PciBusNoEnumerationDxe driv

[edk2] SEC code support big.LITTLE tech?

2013-12-04 Thread TigerLiu
Hi, Oliver: Does current ArmPlatformPackage's sec code support big.LITTLE tech? Such as : An ARM SOC --- with 4 Cores Cortex-A15, 4 Cores Cortex-A7 So, if sec code support big.LITTLE tech, how does it let one core as boot strap cpu, others go into wfe(or other sleeping state)? Best wishes,

Re: [edk2] [PATCH] Clean up hard-coded offsets and other utter bogosity in Thunk16.S.

2013-12-04 Thread David Woodhouse
On Fri, 2013-11-29 at 16:14 +, David Woodhouse wrote: > Again. > > Properly this time. > > In r12889 we attempted to clean this up, but we missed a vital part of > it, so it was reverted in r12898. > > What we missed was the fact that much of this is 16-bit code, and the > assembler didn't

Re: [edk2] please clarify "PcdDxeIplSwitchToLongMode"

2013-12-04 Thread Yao, Jiewen
Hi This email is too long. I would like to summarize: 1) About below table, there are 2 bugs. PcdDxeIplSwitchToLongMode FACS vector S3ResumeBootOs() calls (from PEI) implemented in file - --- --- -

[edk2] Using gethostbydns functionality in own UEFI application

2013-12-04 Thread Michael Lorer
Hello there, I've written an application that is acquiring an ip address using DHCP and reads a bunch of files from a TFTP server in the internet. Right now I've hardcoded the IP address of the TFTP server in my code because there is no proper implementation for DNS requests in UEFI right now.

Re: [edk2] SEC code support big.LITTLE tech?

2013-12-04 Thread Olivier Martin
Hi Tiger, The ARM recommendation to manage secondary CPUs (the primary CPU is the CPU that runs UEFI and starts your OS kernel) is to use PSCI (Power State Coordination Interface - http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.den0022b/index.h tml). PSCI uses SMCs (Secure Memory Call

Re: [edk2] [PATCH] Enabling DRAM above the 32bit address space on AArch64

2013-12-04 Thread Olivier Martin
Important note, to make this support works you will need to ensure this PCD is not present in your DSC file: gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize|32 Otherwise, only the 32-bit address space will be accessible in UEFI. From: Olivier Martin [mailto:olivier.mar...@arm.com] Sent:

Re: [edk2] Getting PCD values for tools that post process the build.

2013-12-04 Thread Olivier Martin
Something else I forgot to add to my email from this morning. For people who does not know, BaseTools uses SQLite database to store some information. In theory, the PCDs could also be retrieved from the build database (even if I have not tried). Maybe the name of the tables could be more transpare

Re: [edk2] EDKII EBC not a image error

2013-12-04 Thread Andrew Fish
On Dec 4, 2013, at 3:12 AM, boot devel wrote: > Hi > > > > I am facing issue to load EDKII EBC compiled driver from UEFI shell where > ‘load Driver.efi’ is returning ‘is not a image’ error. > > > I have build setup environment with VS2008, C Compiler for EFI Byte Code, > Version 1.3 ins

Re: [edk2] please clarify "PcdDxeIplSwitchToLongMode"

2013-12-04 Thread Jordan Justen
On Tue, Dec 3, 2013 at 9:46 PM, Laszlo Ersek wrote: >> Install PPI: 88C9D306-0900-4EB5-8260-3E2DBEDA1F89 >> Install PPI: 605EA650-C65C-42E1-BA80-91A52AB618C6 > > These two PPIs (BootScriptDonePpi, EndOfPeiPpi) are installed by > S3ResumeBootOs() early. > >> Transfer to 16bit OS waking vector - 9A1

Re: [edk2] Getting PCD values for tools that post process the build.

2013-12-04 Thread Andrew Fish
On Dec 4, 2013, at 3:16 AM, Olivier Martin wrote: > FYI, I have a similar script in > tianocore/ArmPlatformPkg/Scripts/Ds5/build_report.py. > This python script uses the build report to access the PCDs. > Thanks, this is helpful. Unfortunately the log file is very hard to parse as it word wr

[edk2] [PATCH] MdeModulePkg/HiiDataBaseDxe: Fixed build error 'Statement is unreachable'

2013-12-04 Thread Olivier Martin
Dear MdeModulePkg maintainer, Please find the attached patch that fixes a build issue (build error 'Statement is unreachable'). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin olivier.mar...@arm.com Regards, Olivier MdeModulePkg-HiiDataBaseDxe-F

[edk2] build -y logfile has line ending issues on OS X

2013-12-04 Thread Andrew Fish
When I build a log file I noticed that it has line ending issues. Most of the file seems to have 0x0d 0x0a, but some cases have 0x0a 0x0d 0x0a which my editor thinks is a upside-down question mark. I’m guessing this is an OS specific line ending issue with the Python code? As you can see in the

Re: [edk2] please clarify "PcdDxeIplSwitchToLongMode"

2013-12-04 Thread Laszlo Ersek
On 12/04/13 18:17, Jordan Justen wrote: > On Tue, Dec 3, 2013 at 9:46 PM, Laszlo Ersek wrote: >>> Install PPI: 88C9D306-0900-4EB5-8260-3E2DBEDA1F89 >>> Install PPI: 605EA650-C65C-42E1-BA80-91A52AB618C6 >> >> These two PPIs (BootScriptDonePpi, EndOfPeiPpi) are installed by >> S3ResumeBootOs() early

Re: [edk2] build -y logfile has line ending issues on OS X

2013-12-04 Thread Laszlo Ersek
On 12/04/13 19:05, Andrew Fish wrote: > When I build a log file I noticed that it has line ending issues. Most > of the file seems to have 0x0d 0x0a, but some cases have 0x0a 0x0d 0x0a > which my editor thinks is a upside-down question mark. I’m guessing this > is an OS specific line ending issue w

Re: [edk2] [edk2-buildtools] build -y logfile has line ending issues on OS X

2013-12-04 Thread Andrew Fish
I think this is the bug: ## # Writes a string to the file object. # # This function writes a string to the file object and a new line is appended # afterwards. It may optionally wraps the string for better readability. # # @File The file object to write # @String

Re: [edk2] Getting PCD values for tools that post process the build.

2013-12-04 Thread Andrew Fish
It is a bit of a hack, but you can update BaseTools/Source/Python/build/BuildReport.py gLineMaxLength value to suppress the wrap. I set it to 240 and all the line wraps vanished for me. ## Tags for MaxLength of line in report gLineMaxLength = 120 It would also be a good idea to convert the ha

Re: [edk2] please clarify "PcdDxeIplSwitchToLongMode"

2013-12-04 Thread Jordan Justen
On Wed, Dec 4, 2013 at 10:05 AM, Laszlo Ersek wrote: > And, now I have some idea why it happens. I hacked PlatformPei and > S3Resume2Pei to read the CS and log it. (Of course without seeing the > actual GDT entries that these values point to we can't say much, but we > can't say something.) You c

Re: [edk2] please clarify "PcdDxeIplSwitchToLongMode"

2013-12-04 Thread Laszlo Ersek
On 12/04/13 19:47, Jordan Justen wrote: > On Wed, Dec 4, 2013 at 10:05 AM, Laszlo Ersek wrote: >> And, now I have some idea why it happens. I hacked PlatformPei and >> S3Resume2Pei to read the CS and log it. (Of course without seeing the >> actual GDT entries that these values point to we can't sa

Re: [edk2] please clarify "PcdDxeIplSwitchToLongMode"

2013-12-04 Thread Laszlo Ersek
On 12/04/13 06:46, Laszlo Ersek wrote: >>> OVMF S3 resume [...] The place where it unexpectedly reboots now is the >>> following sequence (from >>> MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/S3Asm.S): >>> >>> ASM_GLOBAL ASM_PFX(AsmTransferControl) >>> ASM_PFX(AsmTransferControl): >>>

Re: [edk2] [linaro-uefi-internal] RE: [PATCH] Enabling DRAM above the 32bit address space on AArch64

2013-12-04 Thread Steven Kinney
Thanks Olivier! On 4 December 2013 07:50, Olivier Martin wrote: > Important note, to make this support works you will need to ensure this > PCD is not present in your DSC file: > > gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize|32 > > > > Otherwise, only the 32-bit address space will be accessib

Re: [edk2] please clarify "PcdDxeIplSwitchToLongMode"

2013-12-04 Thread Yao, Jiewen
Hi Laszlo Thanks for the investigation. Maybe I am wrong, but I would like to point out this piece of code works fine on IA real platform. We also have other piece of code to jump from 64bit to 16bit directly, which works fine also. I just checked IA32 manual, for far return, detail below: (err

Re: [edk2] EDKII EBC not a image error

2013-12-04 Thread Gao, Liming
Could you attach the binary Driver.efi? From the log message, it may not be valid PE image. Thanks Liming From: Andrew Fish [mailto:af...@apple.com] Sent: Thursday, December 5, 2013 12:46 AM To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] EDKII EBC not a image error On Dec 4, 2013, at

Re: [edk2] [PATCH] Enabling DRAM above the 32bit address space on AArch64

2013-12-04 Thread Girish KS
Hello Olivier, Instead of replacing the 32 bit type with 64 bit data type. How about defining a type like give below and use it. (linux does it) if target processor type is AARCH64 ( this parameter passed to build script) use this to include either of the definitions below typ

Re: [edk2] [PATCH] Enabling DRAM above the 32bit address space on AArch64

2013-12-04 Thread Andrew Fish
On Dec 4, 2013, at 8:48 PM, Girish KS wrote: > Hello Olivier, > Instead of replacing the 32 bit type with 64 bit > data type. How about defining a type like give below and use it. > (linux does it) > > if target processor type is AARCH64 ( this parameter passed to build > sc

Re: [edk2] please clarify "PcdDxeIplSwitchToLongMode"

2013-12-04 Thread Laszlo Ersek
On 12/05/13 00:21, Yao, Jiewen wrote: > Hi Laszlo > Thanks for the investigation. > > Maybe I am wrong, but I would like to point out this piece of code works fine > on IA real platform. Thanks for confirming that! I was wondering if it was in active use. > We also have other piece of code to j