Re: [edk2] [PATCH v2] OvmfPkg/PlatformPei: Fix VS2008 build breakage

2016-03-18 Thread David Woodhouse
On Sat, 2016-03-19 at 01:55 +0100, Laszlo Ersek wrote: > > Okay, here's what I'll do. I will switch i18n.commitencoding back to > UTF-8. And, I will add a commit-msg hook that converts the commit > message in-place from latin2 to UTF-8, with "iconv". That should keep > us both happy. Deal? That

Re: [edk2] [PATCH v2] OvmfPkg/PlatformPei: Fix VS2008 build breakage

2016-03-18 Thread David Woodhouse
On Fri, 2016-03-18 at 22:53 +0100, Laszlo Ersek wrote: > It happens to display Michał's name correctly, because it fits in latin2. Ah, OK. You got lucky on that one. Lots of names *don't* fit in ISO8859-2. > The extreme lengths that I had to go to were necessary to convince > git-send-email not

Re: [edk2] [PATCH] MdeModulePkg: Rescale ConSplitter Absolute Pointer.

2016-03-18 Thread Laszlo Ersek
On 03/16/16 09:22, Zeng, Star wrote: > Pushed at 30ed3422ab2de03abf7c1433ebb482f6e5e16f45. > > Thanks, > Star This patch breaks the Ia32 build of OVMF (found by Gerd's Jenkins auto-builder): MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe/OUTPUT/ConSplitterDxe.lib(ConSplitter.obj):

Re: [edk2] [RFC] MdePkg: add ARG_UNUSED notation to Base.h

2016-03-18 Thread Gao, Liming
I prefer UNUSED, like OPTIONAL key for parameter. From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Laszlo Ersek Sent: Thursday, March 17, 2016 6:37 PM To: Leif Lindholm ; Andrew Fish Cc: Kinney, Michael D

Re: [edk2] EDK2 Staging Repository 2nd Draft

2016-03-18 Thread Laszlo Ersek
On 03/15/16 18:20, Kinney, Michael D wrote: > David, > > Thanks for the suggestion. Today the git dev process requires a rebase. > Given that this operation is transferring content from one community > maintained feature branch in edk2-staging into edk2/master, I agree the > option to use 'git

Re: [edk2] [PATCH 1/2] BeagleBoardPkg: move to ARM version of CpuExceptionHandlerLib

2016-03-18 Thread Cohen, Eugene
Series Reviewed-by: Eugene Cohen > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf > Of Ard Biesheuvel > Sent: Wednesday, March 16, 2016 8:08 AM > To: edk2-devel@lists.01.org; leif.lindh...@linaro.org > Cc: Ard Biesheuvel

[edk2] [COMMIT] MdeModulePkg: ConSplitterDxe: use U64 mult/div wrappers in AbsPtr scaling

2016-03-18 Thread Laszlo Ersek
This is an emergency fix for UINT64 multiplications and divisions not being done with the right BaseLib functions -- they break Ia32 builds. Fixes: 30ed3422ab2de03abf7c1433ebb482f6e5e16f45 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek ---

Re: [edk2] [PATCH] BaseTools: Remove /Oi from Visual Studio tool chains.

2016-03-18 Thread Shia, Cinnamon
Hi Long, Thanks for your feedback. Regarding to generated intrinsic by MSVC compiler, for example, using '=' to assign a value to a variable bigger than UINTN, according to my experiments, /Oi or /Oi- doesn't affect this What /Oi affect is the intrinsic functions used in the source code.

[edk2] [PATCH 0/2] Minor error handling enhancement for address boundary check

2016-03-18 Thread Star Zeng
Cc: Michael Kinney Cc: Liming Gao Cc: Feng Tian Star Zeng (2): MdeModulePkg DxeCore: Check Start consistently in CoreConvertPagesEx MdeModulePkg DxeCore: Address boundary check for Type AllocateAddress

Re: [edk2] Is there any exiting way in edk2 to format a partition with FAT file system?

2016-03-18 Thread Blibbet
On 03/18/2016 07:08 AM, Tian, Feng wrote: > http://www.intel.com/technology/efi/agree_diskutil.htm Hi, Why the EULA for these Intel tools? Why aren't they BSD-licensed and part of the UEFI Forum's EDK-II? Some IP of Microsoft FAT? Hasn't the Microsoft FAT on-disk format IP since been published

[edk2] EDK2 Staging Proposal 3rd draft, final?

2016-03-18 Thread Mangefeste, Tony
Folks, Here's the 3rd iteration based on your input. Please take one last opportunity to review, we'll settle on this if there are no major requests by Friday of this week. Problem statement = Need place on tianocore.org where new features that are not ready for product

Re: [edk2] EDK2 Staging Proposal 3rd draft, final?

2016-03-18 Thread David Woodhouse
On Fri, 2016-03-18 at 13:30 +0100, Laszlo Ersek wrote: > > Our workflow should not be centered on github pull requests in any case, > so I don't see the point in testing them out. Well, thanks for destroying the test I spent this morning setting up, because you don't believe it would have

Re: [edk2] [COMMIT] MdeModulePkg: ConSplitterDxe: use U64 mult/div wrappers in AbsPtr scaling

2016-03-18 Thread Tian, Feng
Reviewed-by: Feng Tian Thanks Feng -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Laszlo Ersek Sent: Wednesday, March 16, 2016 9:10 PM To: edk2-de...@ml01.01.org Subject: [edk2] [COMMIT] MdeModulePkg: ConSplitterDxe: use

Re: [edk2] [PATCH] MdeModulePkg PlatformVarCleanupLib: Locate VarCheck protocol when using

2016-03-18 Thread Ni, Ruiyu
Reviewed-by: Ruiyu Ni >-Original Message- >From: Zeng, Star >Sent: Thursday, March 17, 2016 1:51 PM >To: edk2-devel@lists.01.org >Cc: Ni, Ruiyu ; Tian, Feng >Subject: [PATCH] MdeModulePkg PlatformVarCleanupLib: Locate

[edk2] [PATCH v2] MdeModulePkg: Fixed incorrect Regular expression protocol MatchString return value.

2016-03-18 Thread Cecil Sheng
According to UEFI2.6, CapturePtr in the Captures array returned by MatchString() should be separatedly allocated so that they can be freed by the caller. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Cecil Sheng Reviewed-by: Samer El-Haj-Mahmoud

Re: [edk2] [PATCH v2 3/6] OvmfPkg: PlatformPei: enable PCIEXBAR (aka MMCONFIG / ECAM) on Q35

2016-03-18 Thread Laszlo Ersek
On 03/18/16 15:38, David Woodhouse wrote: > On Tue, 2016-03-08 at 15:20 +0100, Laszlo Ersek wrote: >> +UINT64 PciExBarBase; > ... >> if (mHostBridgeDevId == INTEL_Q35_MCH_DEVICE_ID) { > ... >> + PciExBarBase = FixedPcdGet64 (PcdPciExpressBaseAddress); > ... >> } > ... >>

Re: [edk2] [PATCH v2] OvmfPkg/PlatformPei: Fix VS2008 build breakage

2016-03-18 Thread David Woodhouse
On Sat, 2016-03-19 at 01:03 +0100, Laszlo Ersek wrote: > > So yes, I'm interested in the bug because it should be fixed. But > > basically, you brought it upon yourself by operating in a mode that is > > *known* to invite such errors, and was abandoned by most other people a > > *long* time ago. >

Re: [edk2] EDK2 Staging Proposal 3rd draft, final?

2016-03-18 Thread David Woodhouse
On Thu, 2016-03-17 at 21:28 +, Kinney, Michael D wrote: > > Yes.  Use of developer github forks is supported.  I had summarized > 3 development methods earlier in this thread. > > 1) PR emails send to edk2-devel.  There is a Wiki page that details process > for developers and maintainer.   >

Re: [edk2] [PATCH v2] OvmfPkg/PlatformPei: Fix VS2008 build breakage

2016-03-18 Thread Laszlo Ersek
On 03/18/16 19:40, David Woodhouse wrote: > But this is different. This is the commit messages. And what would you > know... the last commit message in the log which isn't ASCII *isn't* > that other one I pointed out; it's one from you (7daf2401) in which you > commit the heinous crime of

Re: [edk2] [PATCH v2] OvmfPkg/PlatformPei: Fix VS2008 build breakage

2016-03-18 Thread David Woodhouse
On Fri, 2016-03-18 at 23:26 +0100, Laszlo Ersek wrote: > > Whenever you contribute to a project, do you always start with making a > huge noise, calling everyone around (or their rules) insane, "makes no > sense at all", and so on? Not at all. Some weeks I'll work on as many as a dozen or so

Re: [edk2] [PATCH] OvmfPkg/PlatformPei: suppress wrong VS2008 warning (use of uninited local)

2016-03-18 Thread David Woodhouse
On Sat, 2016-03-19 at 00:35 +0100, Laszlo Ersek wrote: > VS2008 seems to think that the "PciExBarBase" variable (introduced in > commit 7b8fe63561b4) can be evaluated for the > AddReservedMemoryBaseSizeHob() function call with its value being > uninitialized / indeterminate. This is not the case

Re: [edk2] Is there any exiting way in edk2 to format a partition with FAT file system?

2016-03-18 Thread Andrew Fish
> On Mar 18, 2016, at 2:31 PM, Blibbet wrote: > > On 03/18/2016 07:08 AM, Tian, Feng wrote: >> http://www.intel.com/technology/efi/agree_diskutil.htm > > Hi, > > Why the EULA for these Intel tools? Lee, http://www.intel.com/technology/efi/agree_diskutil.htm "FOR THE

Re: [edk2] Software SMI STS bit is not set when writing port B2 in QEMU Q35

2016-03-18 Thread Ni, Ruiyu
Laszlo, Yes! After I switched to a newer platform the system can boot to Shell very well! Thank you very much for your patient help. Regards, Ray >-Original Message- >From: Laszlo Ersek [mailto:ler...@redhat.com] >Sent: Friday, March 18, 2016 3:02 PM >To: Ni, Ruiyu

Re: [edk2] [PATCH v2] ShellPkg: Per UEFI Shell 2.2 SPEC to make Shell supports 'NoNesting'.

2016-03-18 Thread Laszlo Ersek
On 03/16/16 10:06, Ard Biesheuvel wrote: > On 15 March 2016 at 14:17, Qiu Shumin wrote: >> This patch makes Shell support -nonesting invocation option. This option >> specifies that EFI_SHELL_PROTOCOL.Execute API nesting of a new Shell >> instance is optional and dependent

Re: [edk2] signedness of CHAR8

2016-03-18 Thread Laszlo Ersek
On 03/17/16 13:34, Leif Lindholm wrote: > On Thu, Mar 17, 2016 at 12:16:31PM +, Leif Lindholm wrote: >> So, as further fallout from my -Weverything experiments, I've come >> across this... >> >> Ia32 and X64 ProcessorBind.h (BaseTools and MdePkg) both define CHAR8 as >> 'char'. >> ARM and

[edk2] [PATCH v3] MdeModulePkg: Fixed incorrect return value of MatchString

2016-03-18 Thread Cecil Sheng
In UEFI2.6, CapturePtr's in the Captures array returned by MatchString are to be separatedly allocated so that they can be freed by the caller. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Cecil Sheng Reviewed-by: Samer El-Haj-Mahmoud

[edk2] [PATCH 1/2] BeagleBoardPkg: move to ARM version of CpuExceptionHandlerLib

2016-03-18 Thread Ard Biesheuvel
Change our resolution for the previously unused CpuExceptionHandlerLib from the null implementation to the newly added implementation specific to AARCH64 and ARM. This is needed since our CpuDxe will start using it in a subsequent patch. Contributed-under: TianoCore Contribution Agreement 1.0

Re: [edk2] [PATCH] MdeModulePkg: Fixed incorrect Regular expression protocol MatchString return value.

2016-03-18 Thread Sheng, Cecil (HPS SW)
Hi Star, Thank you, I'll update the patch. Sincerely, Cecil Sheng ISS Firmware Development HPE Servers -Original Message- From: Zeng, Star [mailto:star.z...@intel.com] Sent: Wednesday, March 16, 2016 5:04 PM To: Sheng, Cecil (HPS SW) ; edk2-devel@lists.01.org

[edk2] [PATCH] MdeModulePkg PartitionDxe: Some ISO images cannot be recognized properly

2016-03-18 Thread Hao Wu
Some ISO images cannot be recognized properly when they are on media whose block size is not 2048 bytes. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu --- MdeModulePkg/Universal/Disk/PartitionDxe/ElTorito.c | 12 ++-- 1 file changed, 6

Re: [edk2] [PATCH] MdePkg: Add NORESTART flag to I2C header

2016-03-18 Thread Gao, Liming
Bartosz: MdePkg definition conforms to UEFI/PI and Industry specification. If it is not in spec, it will not be added into MdePkg. For this case, it can locally be added into OpenPlatformPkg. If you think it is valuable to be in PI spec, you can contribute PI spec mantis to uefi.org. Thanks

Re: [edk2] Has any one else had issues trying to use DxeDebugPrintErrorLevelLib? DebugPrintErrorLevelLib|MdeModulePkg/Library/DxeDebugPrintErrorLevelLib/DxeDebugPrintErrorLevelLib.inf

2016-03-18 Thread Andrew Fish
> On Mar 18, 2016, at 7:29 AM, Gao, Liming wrote: > > Andrew: > First, I suggest to enhance BaseTools to report the detail information on > the constructor circle. Next, we can add comments in > DxeDebugPrintErrorLevelLib library instance to note it can't be used

Re: [edk2] Has any one else had issues trying to use DxeDebugPrintErrorLevelLib? DebugPrintErrorLevelLib|MdeModulePkg/Library/DxeDebugPrintErrorLevelLib/DxeDebugPrintErrorLevelLib.inf

2016-03-18 Thread Zeng, Star
On 2016/3/17 10:02, Andrew Fish wrote: On Mar 16, 2016, at 6:59 PM, Zeng, Star wrote: On 2016/3/17 7:12, Andrew Fish wrote: I was trying to move over to DxeDebugPrintErrorLevelLib, but I can't get it to build For example I made DXE use

Re: [edk2] [PATCH] MdePkg: add UNUSED notation to Base.h

2016-03-18 Thread Andrew Fish
> On Mar 18, 2016, at 5:13 PM, Laszlo Ersek wrote: > > On 03/19/16 00:27, Andrew Fish wrote: >> >>> On Mar 18, 2016, at 3:46 PM, Michael Brown wrote: >>> >>> On 18/03/16 22:30, Laszlo Ersek wrote: Unfortunately, I've run into a big issue: the DEBUG(())

Re: [edk2] Is there any exiting way in edk2 to format a partition with FAT file system?

2016-03-18 Thread Rod Smith
On 03/18/2016 10:08 AM, Tian, Feng wrote: > http://www.intel.com/technology/efi/agree_diskutil.htm The .zip file that I eventually got from this is password-protected. What's up with that? I can get a list of files, but most of them can't be extracted. (Well, maybe with a zip file

Re: [edk2] Is there any exiting way in edk2 to format a partition with FAT file system?

2016-03-18 Thread Tian, Feng
http://www.intel.com/technology/efi/agree_diskutil.htm Thanks Feng -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Heyi Guo Sent: Friday, March 18, 2016 6:23 PM To: edk2-devel@lists.01.org Subject: [edk2] Is there any exiting way in edk2 to

Re: [edk2] [PATCH v2] OvmfPkg/PlatformPei: Fix VS2008 build breakage

2016-03-18 Thread Laszlo Ersek
On 03/18/16 23:52, David Woodhouse wrote: > On Fri, 2016-03-18 at 22:53 +0100, Laszlo Ersek wrote: >> The extreme lengths that I had to go to were necessary to convince >> git-send-email not to mess up Michał's CC in the email headers, picking >> it up from the commit message. The commit message

Re: [edk2] [PATCH] MdePkg: add UNUSED notation to Base.h

2016-03-18 Thread Andrew Fish
> On Mar 18, 2016, at 3:46 PM, Michael Brown wrote: > > On 18/03/16 22:30, Laszlo Ersek wrote: >> Unfortunately, I've run into a big issue: the DEBUG(()) macro. (To a >> smaller extent, the ASSERT_EFI_ERROR() macro as well.) These macros >> expand to the null replacement string

[edk2] [PATCH V2 0/2] Minor error handling enhancement for address boundary check

2016-03-18 Thread Star Zeng
V2: [2/2] is updated to also handle invalid NumberOfPages. Cc: Jiewen Yao Cc: Michael Kinney Cc: Liming Gao Cc: Feng Tian Star Zeng (2): MdeModulePkg DxeCore: Check Start consistently in

[edk2] [PATCH V2 2/2] MdeModulePkg DxeCore: Address boundary check for Type AllocateAddress

2016-03-18 Thread Star Zeng
Check for Type AllocateAddress, if NumberOfPages is 0 or if (NumberOfPages << EFI_PAGE_SHIFT) is above MAX_ADDRESS or if (Start + NumberOfBytes) rolls over 0 or if Start is above MAX_ADDRESS or if End is above MAX_ADDRESS, return EFI_NOT_FOUND. Cc: Jiewen Yao Cc: Michael

Re: [edk2] [PATCH] MdePkg: add UNUSED notation to Base.h

2016-03-18 Thread Laszlo Ersek
On 03/18/16 17:26, Ard Biesheuvel wrote: > On 18 March 2016 at 17:22, Laszlo Ersek wrote: >> On 03/18/16 15:48, Gao, Liming wrote: >>> Laszlo: >>> >>> I understand the request to BaseTools is that AutoGen code can pass >>> GCC or MSFT compiler without any warning. If so,

[edk2] [PATCH] OvmfPkg/PlatformPei: suppress wrong VS2008 warning (use of uninited local)

2016-03-18 Thread Laszlo Ersek
VS2008 seems to think that the "PciExBarBase" variable (introduced in commit 7b8fe63561b4) can be evaluated for the AddReservedMemoryBaseSizeHob() function call with its value being uninitialized / indeterminate. This is not the case (see "mHostBridgeDevId"); suppress the warning. Reported-by:

Re: [edk2] [PATCH v2] OvmfPkg/PlatformPei: Fix VS2008 build breakage

2016-03-18 Thread Laszlo Ersek
On 03/18/16 22:13, David Woodhouse wrote: > Rewriting it for this reason is *not* acceptable. BTW I have no clue why not, if I keep your S-o-b in the first place, and document the changes. In other projects maintainers rewrite contributors' patches even, and (at best) credit the contributor with