mirror_edk2.git
8 years agoUpgrade TPM SSDT version from ACPI version 1 (ACPI 1.0 compatible) to version 2 ...
Dong Guo [Fri, 29 Nov 2013 03:39:13 +0000 (03:39 +0000)]
Upgrade TPM SSDT version from ACPI version 1 (ACPI 1.0 compatible) to version 2 (ACPI 5.0 compatible).

Signed-off-by: Dong Guo <guo.dong@intel.com>
Reviewed-by: Yao, Jiewen <jiewen.yao@intel.com>
Reviewed-by: Fu, Siyuan <siyuan.fu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14919 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoFix a bug that iSCSI UI can Not Change Authentication Type from None to CHAP.
Fu Siyuan [Fri, 29 Nov 2013 03:37:32 +0000 (03:37 +0000)]
Fix a bug that iSCSI UI can Not Change Authentication Type from None to CHAP.

Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Dong, Eric <eric.dong@intel.com>
Reviewed-by: Dong, Guo <guo.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14918 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoFix a bug in Fat driver that it asserts when OpenEx/ReadEx/WriteEx is about to return...
Ruiyu Ni [Fri, 29 Nov 2013 03:04:16 +0000 (03:04 +0000)]
Fix a bug in Fat driver that it asserts when OpenEx/ReadEx/WriteEx is about to return failure.

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14917 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoFix input config header string error, should not always input the full config header...
Eric Dong [Fri, 29 Nov 2013 02:30:44 +0000 (02:30 +0000)]
Fix input config header string error, should not always input the full config header string.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14916 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPkg/BdsLib: Fixed the alignment of the relocated Device Tree
Olivier Martin [Thu, 28 Nov 2013 21:40:48 +0000 (21:40 +0000)]
ArmPkg/BdsLib: Fixed the alignment of the relocated Device Tree

When the Device Tree was loaded above the 32bit address space the operation:
*RelocatedFdt = ALIGN ((UINT64)*RelocatedFdt, (UINT32)FdtAlignment);
was returning an incorrect address.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14915 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoEmbeddedPkg/EmbeddedPkg.dec: Defined default values for PcdPrePiCpuMemorySize & PcdPr...
Olivier Martin [Thu, 28 Nov 2013 21:40:14 +0000 (21:40 +0000)]
EmbeddedPkg/EmbeddedPkg.dec: Defined default values for PcdPrePiCpuMemorySize & PcdPrePiCpuIoSize

This change introduces default values for the PCDs PcdPrePiCpuMemorySize & PcdPrePiCpuIoSize.
These values are for the architectures ARM, AARCH64, IA32 and X64.

The redefinition of these PCDs (with the same default values) have been removed from the DSC files.

Note: the default value for AARCH64 was 32. It was preventing to allocate buffer above the 32bit
address space.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14914 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPkg/DebugPeCoffExtraActionLib: Fixed the printing of the location of the EFI modules
Olivier Martin [Thu, 28 Nov 2013 21:39:46 +0000 (21:39 +0000)]
ArmPkg/DebugPeCoffExtraActionLib: Fixed the printing of the location of the EFI modules

When loaded above the 32-bit address space the address requires more than 8 characters.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14913 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPlatformPkg/Ds5: Update script to support System Memory above the 32bit space...
Olivier Martin [Thu, 28 Nov 2013 21:39:23 +0000 (21:39 +0000)]
ArmPlatformPkg/Ds5: Update script to support System Memory above the 32bit space on AArch64

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14912 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPkg/CpuDxe: Removed LR adjustement for SVC call
Olivier Martin [Thu, 28 Nov 2013 21:38:56 +0000 (21:38 +0000)]
ArmPkg/CpuDxe: Removed LR adjustement for SVC call

The Link Register (LR) does not need adjustement when receiving a Supervisor Call (SVC).
Note: SVC might be generated by debuggers.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14911 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPlatformPkg/ArmVExpressLibCTA9x4: Fixed the initial secondary core bringup when...
Olivier Martin [Thu, 28 Nov 2013 21:38:32 +0000 (21:38 +0000)]
ArmPlatformPkg/ArmVExpressLibCTA9x4: Fixed the initial secondary core bringup when remapping DRAM at 0x0

If the DRAM is remapped at 0x0 then we need to wake up the secondary cores from wfe
(waiting for the memory to be initialized) as the instruction is still in the remapped
flash region at 0x0 to make them jumping into the C-code which lives in the NOR1 at 0x44000000 before
the region 0x0 is remapped as DRAM.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14910 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoARM Packages: Removed 'Chipset/ArmV7.h' inclusion from the non-ARMv7 specific files
Olivier Martin [Thu, 28 Nov 2013 21:38:06 +0000 (21:38 +0000)]
ARM Packages: Removed 'Chipset/ArmV7.h' inclusion from the non-ARMv7 specific files

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14909 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPkg: Move definition of ArmIsArchTimerImplemented / ArmReadIdPfrN to ArmLib
Olivier Martin [Thu, 28 Nov 2013 21:37:36 +0000 (21:37 +0000)]
ArmPkg: Move definition of ArmIsArchTimerImplemented / ArmReadIdPfrN to ArmLib

These functions are not chipset specific.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14908 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPlatformPkg/ArmVExpressPkg: Removed unused PCDs declaration from INF file
Olivier Martin [Thu, 28 Nov 2013 21:37:10 +0000 (21:37 +0000)]
ArmPlatformPkg/ArmVExpressPkg: Removed unused PCDs declaration from INF file

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14907 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPlatformPkg/ArmVExpressPkg: Fixed when EDK2_ARMVE_STANDALONE is set to zero
Olivier Martin [Thu, 28 Nov 2013 21:36:17 +0000 (21:36 +0000)]
ArmPlatformPkg/ArmVExpressPkg: Fixed when EDK2_ARMVE_STANDALONE is set to zero

If EDK2_ARMVE_STANDALONE is not defined then the value is set to 1.
The developer has to explicit set the macro to zero to build a non standalone build.
It means this macro is always defined.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14906 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMakes DxeDeferImageLoadLib not depend on
Dong Guo [Wed, 27 Nov 2013 09:08:29 +0000 (09:08 +0000)]
Makes DxeDeferImageLoadLib not depend on

Signed-off-by: Dong Guo <guo.dong@intel.com>
Reviewed-by: Ni, Ruiyu <ruiyu.ni@intel.com>
Reviewed-by: Ouyang, Qian <qian.ouyang@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14905 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoUpdate NetLibGetMacAddress() to handle the case correctly when SNP is absent.
Fu Siyuan [Wed, 27 Nov 2013 08:57:11 +0000 (08:57 +0000)]
Update NetLibGetMacAddress() to handle the case correctly when SNP is absent.

Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Ni, Ruiyu <ruiyu.ni@intel.com>
Reviewed-by: Jin, Eric <eric.jin@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14904 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoFix X64 build fail.
Eric Dong [Wed, 27 Nov 2013 03:13:15 +0000 (03:13 +0000)]
Fix X64 build fail.

Signed-off-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14903 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoUpdate the logic in browser core, use config routine protocol instead of config acces...
Eric Dong [Wed, 27 Nov 2013 02:29:01 +0000 (02:29 +0000)]
Update the logic in browser core, use config routine protocol instead of config access protocol to get/set data with hii drivers.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14902 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoRefine the logic, keep highlight on the selectable menu, and base on priority order...
Eric Dong [Wed, 27 Nov 2013 02:27:16 +0000 (02:27 +0000)]
Refine the logic, keep highlight on the selectable menu, and base on priority order of option string/ prompt string/ text two string to highlight for a statement.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14901 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoFollow UEFI spec to add the definition for EFI_SPECIFICATION_VERSION, and update...
Shumin Qiu [Tue, 26 Nov 2013 07:36:29 +0000 (07:36 +0000)]
Follow UEFI spec to add the definition for EFI_SPECIFICATION_VERSION, and update other table version to refer to it. Remove the “/D TIANO_RELEASE_VERSION=0x00080006” option in Nt32Pkg DSC file, since it’s not used in source code.

Signed-off-by: Shumin Qiu <shumin.qiu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14900 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoFix Duet hang/reboot issue due to the NULL instance of CpuExceptionHandlerLib is...
Ruiyu Ni [Tue, 26 Nov 2013 05:41:34 +0000 (05:41 +0000)]
Fix Duet hang/reboot issue due to the NULL instance of CpuExceptionHandlerLib is used.

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14899 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoCleanup unused ReportStatusCodeLib reference.
Jeff Fan [Tue, 26 Nov 2013 00:46:37 +0000 (00:46 +0000)]
Cleanup unused ReportStatusCodeLib reference.

Signed-off-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14898 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoRefine the Secure Boot UI driver to input the GUID and varstroe name when using HiiSe...
Fu Siyuan [Mon, 25 Nov 2013 06:40:34 +0000 (06:40 +0000)]
Refine the Secure Boot UI driver to input the GUID and varstroe name when using HiiSetBrowserData/HiiGetBrowserData.

Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Dong, Eric <eric.dong@intel.com>
Reviewed-by: Dong, Guo <guo.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14897 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg BootScriptExecutorDxe: Fix S3 failure When PcdUse1GPageTable defined...
Star Zeng [Mon, 25 Nov 2013 06:20:18 +0000 (06:20 +0000)]
MdeModulePkg BootScriptExecutorDxe: Fix S3 failure When PcdUse1GPageTable defined as dynamic.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14896 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoWhen need to find varstore in the storage list, based on the extra HiiHandle to find...
Eric Dong [Mon, 25 Nov 2013 02:55:45 +0000 (02:55 +0000)]
When need to find varstore in the storage list, based on the extra HiiHandle to find the storage.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14895 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoRefine data copy and data compare logic.
Eric Dong [Mon, 25 Nov 2013 02:38:03 +0000 (02:38 +0000)]
Refine data copy and data compare logic.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14894 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoShellPkg: Add ShellHexStrToUintn to allow for simple conversion of hex numbers.
Jaben Carsey [Fri, 22 Nov 2013 21:37:34 +0000 (21:37 +0000)]
ShellPkg: Add ShellHexStrToUintn to allow for simple conversion of hex numbers.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14893 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoShellPkg: Fix pci command output of Max and Current Link Speed, and ASPM Support...
Chris Phillips [Fri, 22 Nov 2013 21:17:25 +0000 (21:17 +0000)]
ShellPkg: Fix pci command output of Max and Current Link Speed, and ASPM Support values to match PCIe Base Spec rev 3.0

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chris Phillips <chrisp@hp.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14892 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoShellPkg: Remove trailing \r\n when redirect to env variable (EX: use ">v")
Chris Phillips [Fri, 22 Nov 2013 21:15:19 +0000 (21:15 +0000)]
ShellPkg: Remove trailing \r\n when redirect to env variable (EX: use ">v")

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chris Phillips <chrisp@hp.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14891 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoCheck in Fat release (EBC, IA32, X64, IPF) binaries built from MdePkg and BaseTools...
Ruiyu Ni [Fri, 22 Nov 2013 08:33:17 +0000 (08:33 +0000)]
Check in Fat release (EBC, IA32, X64, IPF) binaries built from MdePkg and BaseTools (r14889), FatPkg (r80).

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14890 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg/UsbBus&XhciDxe: Solve a bug that 2 or more tiers SS hubs with SS devices...
Feng Tian [Fri, 22 Nov 2013 07:46:00 +0000 (07:46 +0000)]
MdeModulePkg/UsbBus&XhciDxe: Solve a bug that 2 or more tiers SS hubs with SS devices may have no response.
1.Port reset process may not be proper for some vendor's SS hubs. If the corresponding port shows the reset has been done by C_RESET bit we have to skip the whole reset process for attached devices.
2.Clean C_BH_RESET bit immediately to avoid usb timer entering too many times when 5 tiers hubs are connected.
3.Stop checking URB if there is an error happened.
4.Better error handling for fast hot-plug.

Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Elvin Li <elvin.li@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14889 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoAdjust skip value when paint text two string for text opcode.
Eric Dong [Fri, 22 Nov 2013 07:14:53 +0000 (07:14 +0000)]
Adjust skip value when paint text two string for text opcode.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14888 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoUpdated OvmfPkg to use suitable CPU Exception Handler Library instances.
Jeff Fan [Fri, 22 Nov 2013 06:31:18 +0000 (06:31 +0000)]
Updated OvmfPkg to use suitable CPU Exception Handler Library instances.

Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14887 6f19259b-4bc3-4df7-8a09-765794883524

8 years ago1. DebugAgentLib will install reserved vector table to persist vectors.
Jeff Fan [Fri, 22 Nov 2013 06:30:01 +0000 (06:30 +0000)]
1. DebugAgentLib will install reserved vector table to persist vectors.
2. Update PeCoffExtraActionLib to detect if debug agent initialized or not by checking each IDT entry instead of whole IDT table.

Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14886 6f19259b-4bc3-4df7-8a09-765794883524

8 years ago1. Separated DxeSmmCpuExceptionHandlerLib.inf into 2 instance DxeCpuExceptionHandlerL...
Jeff Fan [Fri, 22 Nov 2013 06:24:41 +0000 (06:24 +0000)]
1. Separated DxeSmmCpuExceptionHandlerLib.inf into 2 instance DxeCpuExceptionHandlerLib.inf and SmmCpuExceptionHandlerLib.inf.
2. Updated CPU Exception Handler Library instance according to the new CPU Exception Handler Library class definitions.
3. Updated CPU Exception Handler Library instance to handle the vector attributes defined in PI 1.2.1.

Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Hot Tian <hot.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14885 6f19259b-4bc3-4df7-8a09-765794883524

8 years ago1. DxeIplPeim will locate Vector Handoff Table PPI and build GUIDed HOB if it has.
Jeff Fan [Fri, 22 Nov 2013 06:15:51 +0000 (06:15 +0000)]
1. DxeIplPeim will locate Vector Handoff Table PPI and build GUIDed HOB if it has.
2. DxeMain will get Vector Handoff Table GUIDed HOB to install configuration table if it has.
3. Updated CPU Exception Handler Library to provide 3 new APIs to replace original one API and updated NULL instance accordingly.
4. Updated DxeMain/CapsuleX64/BootSriptExectorDxe to use the new API in CPU Exception Handler Lib.

Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14884 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoTempRam Done PPI definition in PI1.2.1
Liming Gao [Fri, 22 Nov 2013 06:13:03 +0000 (06:13 +0000)]
TempRam Done PPI definition in PI1.2.1

Signed-off-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14883 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoAdd Reserve Interrupt and Exception Vectors definition defined in PI 1.2.1.
Jeff Fan [Fri, 22 Nov 2013 06:02:20 +0000 (06:02 +0000)]
Add Reserve Interrupt and Exception Vectors definition defined in PI 1.2.1.

Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14882 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoShellPkg: Correctly support "map -c"
Jaben Carsey [Thu, 21 Nov 2013 22:51:52 +0000 (22:51 +0000)]
ShellPkg: Correctly support "map -c"
When “map –c” is run, the mapped items should be displayed with the consistent name as the one listed to the left and all other names listed as “alias(s)”

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Chris Phillips <chrisp@hp.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14881 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoShellPkg: Update pci command to use ShellPrintEx()
Chris Phillips [Thu, 21 Nov 2013 17:21:59 +0000 (17:21 +0000)]
ShellPkg: Update pci command to use ShellPrintEx()
- Also minor simplification to the PciPrintClassCode() function.
- Remove invalid duplicate gShellDebug1HiiHandle argument in STR_PCI_NO_FIND print.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chris Phillips <chrisp@hp.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14880 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg Pcd: Refine the code to avoid error report.
Star Zeng [Thu, 21 Nov 2013 09:31:28 +0000 (09:31 +0000)]
MdeModulePkg Pcd: Refine the code to avoid error report.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14879 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoFix coding style problem in RngDxe driver.
Long, Qin [Thu, 21 Nov 2013 09:02:33 +0000 (09:02 +0000)]
Fix coding style problem in RngDxe driver.

Signed-off-by: Long, Qin <qin.long@intel.com>
Reviewed-by: Fu, Siyuan <siyuan.fu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14878 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoOvmfPkg/QemuVideoDxe: don't leak descriptors returned by GetBarAttributes
Laszlo Ersek [Wed, 20 Nov 2013 22:31:14 +0000 (22:31 +0000)]
OvmfPkg/QemuVideoDxe: don't leak descriptors returned by GetBarAttributes

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14877 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoFix GCC build errors
Lee Leahy [Wed, 20 Nov 2013 19:07:31 +0000 (19:07 +0000)]
Fix GCC build errors

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14876 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoIgnore transmit errors for UDPv4, UDPv6 and IPv4.
Lee Leahy [Wed, 20 Nov 2013 18:31:01 +0000 (18:31 +0000)]
Ignore transmit errors for UDPv4, UDPv6 and IPv4.
Support local bind by validating the IP address using the IP configuration protocol.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com>
Reviewed-by: Ankit Singh3 <Ankit_Singh3@Dell.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14875 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoShellPkg: Change MM command output during script execution
Jaben Carsey [Wed, 20 Nov 2013 17:25:02 +0000 (17:25 +0000)]
ShellPkg: Change MM command output during script execution
- Automatically use non-interactive mode during script execution.
- Automatically use non-interactive mode when a specific value is read (omitting this behavior was a violation of the UEFI Shell Spec)
- Only output the value read in when reading a value in a script; this allows automated use of the MM command.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Chris Phillips <chrisp@hp.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14874 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg Pcd: Remove the EFIAPI of PeiGetPcdInfo () typedef in Service.h.
Gary Ching-Pang Lin [Wed, 20 Nov 2013 11:21:06 +0000 (11:21 +0000)]
MdeModulePkg Pcd: Remove the EFIAPI of PeiGetPcdInfo () typedef in Service.h.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14873 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoRefine code to follow coding style.
Eric Dong [Wed, 20 Nov 2013 10:18:41 +0000 (10:18 +0000)]
Refine code to follow coding style.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14872 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoAdd 2.4 to system table version.
Shumin Qiu [Wed, 20 Nov 2013 02:17:56 +0000 (02:17 +0000)]
Add 2.4 to system table version.

Signed-off-by: Shumin Qiu <shumin.qiu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14871 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg and Nt32Pkg Pcd: Add the new EFI_GET_PCD_INFO_PROTOCOL and EFI_GET_PCD_I...
Star Zeng [Wed, 20 Nov 2013 02:08:21 +0000 (02:08 +0000)]
MdeModulePkg and Nt32Pkg Pcd: Add the new EFI_GET_PCD_INFO_PROTOCOL and EFI_GET_PCD_INFO_PPI support for PI 1.2.1 compliance.

It has no obviously benefit to reduce size by PcdPcdInfoGeneration, so remove this PCD.
And PCD_INFO_GENERATION flag can be used to enable/disable PCD info feature, a sample is added in Nt32Pkg to show how to use this flag.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14870 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg and Nt32Pkg Pcd: Add the new EFI_GET_PCD_INFO_PROTOCOL and EFI_GET_PCD_I...
Star Zeng [Wed, 20 Nov 2013 02:04:23 +0000 (02:04 +0000)]
MdeModulePkg and Nt32Pkg Pcd: Add the new EFI_GET_PCD_INFO_PROTOCOL and EFI_GET_PCD_INFO_PPI support for PI 1.2.1 compliance.

It has no obviously benefit to reduce size by PcdPcdInfoGeneration, so remove this PCD.
And PCD_INFO_GENERATION flag can be used to enable/disable PCD info feature, a sample is added in Nt32Pkg to show how to use this flag.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14869 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoUpdate revisions for PI1.3.
Shumin Qiu [Wed, 20 Nov 2013 01:58:00 +0000 (01:58 +0000)]
Update revisions for PI1.3.

Signed-off-by: Shumin Qiu <shumin.qiu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14868 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg and MdeModulePkg Pcd: Add the new EFI_GET_PCD_INFO_PROTOCOL and EFI_GET_PCD_IN...
Star Zeng [Wed, 20 Nov 2013 00:54:34 +0000 (00:54 +0000)]
MdePkg and MdeModulePkg Pcd: Add the new EFI_GET_PCD_INFO_PROTOCOL and EFI_GET_PCD_INFO_PPI support for PI 1.2.1 compliance.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14867 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg and MdeModulePkg Pcd: Add the new EFI_GET_PCD_INFO_PROTOCOL and EFI_GET_PCD_IN...
Star Zeng [Wed, 20 Nov 2013 00:44:25 +0000 (00:44 +0000)]
MdePkg and MdeModulePkg Pcd: Add the new EFI_GET_PCD_INFO_PROTOCOL and EFI_GET_PCD_INFO_PPI support for PI 1.2.1 compliance.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14866 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoShellPkg pci command: Fix a typo; /r/n => \r\n
Jordan Justen [Tue, 19 Nov 2013 23:02:59 +0000 (23:02 +0000)]
ShellPkg pci command: Fix a typo; /r/n => \r\n

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14865 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoShellPkg: Add EfiIdeControllerInitProtocol to Shell’s output
Jaben Carsey [Tue, 19 Nov 2013 22:18:33 +0000 (22:18 +0000)]
ShellPkg: Add EfiIdeControllerInitProtocol to Shell’s output

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14864 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg/UsbBus: Stop parsing descriptor if some of descriptor fields are invalid.
Feng Tian [Tue, 19 Nov 2013 06:17:34 +0000 (06:17 +0000)]
MdeModulePkg/UsbBus: Stop parsing descriptor if some of descriptor fields are invalid.

Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14863 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoFix a bug about iSCSI initiator(based on NetworkPkg-IPv4 network stack) cannot reinst...
Wu Jiaxin [Tue, 19 Nov 2013 05:52:10 +0000 (05:52 +0000)]
Fix a bug about iSCSI initiator(based on NetworkPkg-IPv4 network stack) cannot reinstate session with Windows iSCSI target.

Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com >
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Jin Eric <eric.jin@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14862 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg Pcd: Refine the code to avoid error report.
Star Zeng [Tue, 19 Nov 2013 05:42:51 +0000 (05:42 +0000)]
MdeModulePkg Pcd: Refine the code to avoid error report.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14861 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoFixed one typo in MathRShiftU64.S stub implementation; Add one digest algorithm regis...
Long, Qin [Tue, 19 Nov 2013 02:57:19 +0000 (02:57 +0000)]
Fixed one typo in MathRShiftU64.S stub implementation; Add one digest algorithm registration to make sure the underlying algorithm is available for the default OpenSSL software PRNG implementation.

Signed-off-by: Long, Qin <qin.long@intel.com>
Reviewed-by: Fu, Siyuan <siyuan.fu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14860 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoEnable the build command override the .DSC file contents to enable debug output and...
Lee Leahy [Tue, 19 Nov 2013 02:37:37 +0000 (02:37 +0000)]
Enable the build command override the .DSC file contents to enable debug output and specify which debug messages are displayed.  An example:

build  -a IA32  -a X64  -t VS2008x86  -p AppPkg/AppPkg.dsc  -b DEBUG   -D DEBUG_ENABLE_OUTPUT=TRUE   -D DEBUG_PROPERTY_MASK=0x27   -D DEBUG_PRINT_ERROR_LEVEL=0xFCF00040

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com>
Reviewed-by: Daryl McDaniel <daryl.mcdaniel@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14859 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoAdd UEFI RNG Protocol support. The driver will leverage Intel Secure Key technology...
Long, Qin [Tue, 19 Nov 2013 01:49:49 +0000 (01:49 +0000)]
Add UEFI RNG Protocol support. The driver will leverage Intel Secure Key technology to produce the Random Number Generator protocol, which is used to provide high-quality random numbers for use in applications, or entropy for seeding other random number generators. Refer to software.intel.com/en-us/articles/intel-digital-random-number-generator-drng-software-implementation-guide/ for more information about Intel Secure Key technology.

Signed-off-by: Long, Qin <qin.long@intel.com>
Reviewed-by: Fu, Siyuan <siyuan.fu@intel.com>
Reviewed-by: Rosenbaum, Lee G <lee.g.rosenbaum@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14858 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdePkg and MdeModulePkg Pcd: Implement PCD Driver for External PCD Database and SKU...
Bob C Feng [Mon, 18 Nov 2013 07:45:49 +0000 (07:45 +0000)]
MdePkg and MdeModulePkg Pcd: Implement PCD Driver for External PCD Database and SKU enable Feature.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Bob C Feng <bob.c.feng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14857 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoSync BaseTool trunk (version r2610) into EDKII BaseTools.
Liming Gao [Mon, 18 Nov 2013 07:41:21 +0000 (07:41 +0000)]
Sync BaseTool trunk (version r2610) into EDKII BaseTools.

Signed-off-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14856 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoSecurityPkg Variable: Remove mStorageData buffer allocation and use Scratch buffer...
Star Zeng [Mon, 18 Nov 2013 02:56:04 +0000 (02:56 +0000)]
SecurityPkg Variable: Remove mStorageData buffer allocation and use Scratch buffer instead to reduce SMRAM consumption.

It can reduce MAX (PcdGet32 (PcdMaxVariableSize), PcdGet32 (PcdMaxHardwareErrorVariableSize)) size of SMRAM consumption.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Guo Dong <guo.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14855 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoShellPkg: "For Run" fix for spaces between numerals
Jaben Carsey [Fri, 15 Nov 2013 20:28:58 +0000 (20:28 +0000)]
ShellPkg: "For Run" fix for spaces between numerals
Since this is expected to use a string with spaces between some of the numbers, the function must halt on spaces and not skip them.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <Jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14854 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoShellPkg: Fix help MAN file searching
Jaben Carsey [Fri, 15 Nov 2013 20:21:34 +0000 (20:21 +0000)]
ShellPkg: Fix help MAN file searching
Make sure that “help App” and “help App.EFI” work the same by removing “.efi” (case insensitive) from the end of the string before searching for MAN file.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14853 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoShellPkg: Rename duplicate STRING ID
Jaben Carsey [Fri, 15 Nov 2013 18:55:36 +0000 (18:55 +0000)]
ShellPkg: Rename duplicate STRING ID

There were 2 "STR_UCS2" strings.  This renames one of them so they are unique.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <Jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14852 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoShellPkg: Add DiskIO2, and fix GUID from string check to be case insensitive
Chris Phillips [Fri, 15 Nov 2013 18:44:29 +0000 (18:44 +0000)]
ShellPkg: Add DiskIO2, and fix GUID from string check to be case insensitive
- Add DiskIO2 to list of known protocols
- Fix string check to be case insensitive for commands like ‘dh –p protocolname’

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chris Phillips <chrisp@hp.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14851 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoShellPkg: Skip leading tabs when processing command line and scripts
Chris Phillips [Fri, 15 Nov 2013 18:41:50 +0000 (18:41 +0000)]
ShellPkg: Skip leading tabs when processing command line and scripts

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chris Phillips <chrisp@hp.com>
reviewed-by: Jaben Carsey <jaben.carsey@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14850 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoShellPkg: verify that leading and trailing % are removed from variable names when...
Jaben Carsey [Fri, 15 Nov 2013 18:39:26 +0000 (18:39 +0000)]
ShellPkg: verify that leading and trailing % are removed from variable names when doing command line redirection to an environment variable.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14849 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoAdd support for PI1.2.1 TempRam Done PPI.
Liming Gao [Fri, 15 Nov 2013 02:05:15 +0000 (02:05 +0000)]
Add support for PI1.2.1 TempRam Done PPI.

Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14848 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoAdd support for PI1.2.1 TempRam Done PPI.
Liming Gao [Fri, 15 Nov 2013 02:05:11 +0000 (02:05 +0000)]
Add support for PI1.2.1 TempRam Done PPI.

Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14847 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoAdd support for PI1.2.1 TempRam Done PPI.
Liming Gao [Fri, 15 Nov 2013 02:04:57 +0000 (02:04 +0000)]
Add support for PI1.2.1 TempRam Done PPI.

Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14846 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoShellPkg: clarify space limitation in comment.
Jaben Carsey [Thu, 14 Nov 2013 23:52:43 +0000 (23:52 +0000)]
ShellPkg: clarify space limitation in comment.

Signed-off-by: Jaben Carsey <Jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14845 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoOvmfPkg/BdsPlatform: don't restore NvVars from disk when flash is present
Laszlo Ersek [Tue, 12 Nov 2013 18:35:32 +0000 (18:35 +0000)]
OvmfPkg/BdsPlatform: don't restore NvVars from disk when flash is present

QemuFlashFvbServicesRuntimeDxe provides actual persistent storage for
non-volatile variables. When it is active, any on-disk NvVars file counts
as a stale source of variables -- hence don't load these files in BDS.

This also allows Secure Boot settings (eg. enrolled keys) to survive cold
VM reboots.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14844 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoOvmfPkg: indicate enablement of flash variables with a dedicated PCD
Laszlo Ersek [Tue, 12 Nov 2013 18:35:23 +0000 (18:35 +0000)]
OvmfPkg: indicate enablement of flash variables with a dedicated PCD

PcdFlashNvStorageVariableBase64 is used to arbitrate between
QemuFlashFvbServicesRuntimeDxe and EmuVariableFvbRuntimeDxe, but even the
latter driver sets it if we fall back to it.

Allow code running later than the startup of these drivers to know about
the availability of flash variables, through a dedicated PCD.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14843 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoOvmfPkg/build.sh: Enable flash for QEMU >= 1.6
Jordan Justen [Tue, 12 Nov 2013 18:35:15 +0000 (18:35 +0000)]
OvmfPkg/build.sh: Enable flash for QEMU >= 1.6

If the QEMU version is found to be >= 1.6, then automatically
enable flash (using the QEMU pflash command line parameter).

QEMU supports flash since 1.2, but only if KVM is disabled.
As of QEMU 1.6, flash support should also be enabled when
KVM is used. Therefore it is safest to only enable flash for
QEMU 1.6 and newer.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14842 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoOvmfPkg/build.sh: Support --enable-flash switch
Jordan Justen [Tue, 12 Nov 2013 18:35:08 +0000 (18:35 +0000)]
OvmfPkg/build.sh: Support --enable-flash switch

If this argument is used, then when QEMU is run, the -pflash
parameter will be used with QEMU to enable QEMU's flash
mode.

It should be used before the 'qemu' argument, since it is
not a QEMU parameter, but instead it updates how build.sh
runs QEMU.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14841 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoOvmfPkg: Add QemuFlashFvbServicesRuntimeDxe to firmware image
Jordan Justen [Tue, 12 Nov 2013 18:35:01 +0000 (18:35 +0000)]
OvmfPkg: Add QemuFlashFvbServicesRuntimeDxe to firmware image

This driver will support a flash FVB implementation if QEMU flash
is detected.

The driver is added to the apriori list to make sure it runs
before the EmuVariableFvbRuntimeDxe driver. If this driver detects
flash support, then it will disable the EmuVariableFvbRuntimeDxe
driver by setting PcdFlashNvStorageVariableBase64.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14840 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoOvmfPkg: Add QemuFlashFvbServicesRuntimeDxe driver
Jordan Justen [Tue, 12 Nov 2013 18:34:52 +0000 (18:34 +0000)]
OvmfPkg: Add QemuFlashFvbServicesRuntimeDxe driver

If QEMU flash is detected, this module will install
FirmwareVolumeBlock support for the QEMU flash device.

It will also set PCDs with the results that:
1. OvmfPkg/EmuVariableFvbRuntimeDxe will be disabled
2. MdeModulePkg variable services will read/write flash directly

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14839 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoOvmfPkg/EmuVariableFvbRuntimeDxe: Disable if flash variables are supported
Jordan Justen [Tue, 12 Nov 2013 18:34:43 +0000 (18:34 +0000)]
OvmfPkg/EmuVariableFvbRuntimeDxe: Disable if flash variables are supported

If QEMU flash is supported, then the PcdFlashNvStorageVariableBase64
will be set by the flash FVB driver. If it is set to a non-zero value,
then we disable memory based variables.

In future patches we will add the flash FVB driver and
force it to run before this driver. Therefore, if QEMU flash
writing is supported, then this driver will be disabled.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14838 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoOvmfPkg/AcpiPlatformDxe/Qemu: Decrease upper limit for PCI window 32
Jordan Justen [Tue, 12 Nov 2013 18:34:36 +0000 (18:34 +0000)]
OvmfPkg/AcpiPlatformDxe/Qemu: Decrease upper limit for PCI window 32

In a later patch we will want to mark the flash memory as a
runtime services data memory range. This will allow a new runtime
services firmware block driver to read & write flash memory when
the OS has set up virtual memory protection.

Since this memory range will appear as runtime services data, we
need to adjust the limit when scanning for PCI window 32 down to
just below the flash device. If we don't adjust the limit, then
the algorithm in PopulateFwData will fail because it will see a
EfiGcdMemoryTypeSystemMemory memory range just below 4GB.

v2:
 * This patch replaces the v1 patch:
   "OvmfPkg/AcpiPlatformDxe/Qemu: Allow high runtime memory regions"

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14837 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoOvmfPkg/README: Add information about OVMF flash layout
Jordan Justen [Tue, 12 Nov 2013 18:34:28 +0000 (18:34 +0000)]
OvmfPkg/README: Add information about OVMF flash layout

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14836 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoOvmfPkg: Add NV Variable storage within FD
Jordan Justen [Tue, 12 Nov 2013 18:34:20 +0000 (18:34 +0000)]
OvmfPkg: Add NV Variable storage within FD

This is to prepare for QEMU flash support which will allow
non-volatile variables to be saved in the flash image.

Note two size changes:
 * NV Varstore size increased from 0xc000 to 0xe000
 * FTW work size decreased from 0x2000 to 0x1000

The reason for this change is that the fault-tolerant write
support requires that the work area fit within the block
just before the fault-tolerant write spare storage blocks.
Since QEMU flash blocks have a size of 0x1000, this means
that the maximum FTW work size is 0x1000.

v2:
 * Update commit message and PcdVariableStoreSize

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14835 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoOvmfPkg: Add flash PCD items
Jordan Justen [Tue, 12 Nov 2013 18:34:11 +0000 (18:34 +0000)]
OvmfPkg: Add flash PCD items

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14834 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoOvmfPkg: Increase DEBUG build size to 2MB by default
Jordan Justen [Tue, 12 Nov 2013 18:34:02 +0000 (18:34 +0000)]
OvmfPkg: Increase DEBUG build size to 2MB by default

The 1MB image with full debug and the shell included is too
large to implement flash based non-volatile variable.

After this change, building with -D FD_SIZE_1MB will
force the smaller flash size.

The default size for RELEASE build remains at 1MB, so using
-b RELEASE on the build command line will result in a
1MB flash size. For RELEASE builds -D FD_SIZE_2MB can be
used to produce a 2MB flash image.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14833 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg and SecurityPkg Variable: Optimize the code to reduce some SMRAM consump...
Star Zeng [Tue, 12 Nov 2013 13:31:43 +0000 (13:31 +0000)]
MdeModulePkg and SecurityPkg Variable: Optimize the code to reduce some SMRAM consumption during variable reclaiming.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14832 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoCheck in Fat release (EBC, IA32, X64, IPF) binaries built from MdePkg and BaseTools...
Ruiyu Ni [Fri, 8 Nov 2013 03:35:14 +0000 (03:35 +0000)]
Check in Fat release (EBC, IA32, X64, IPF) binaries built from MdePkg and BaseTools (r14830), FatPkg (r67).

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14831 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoAdd BaseSmbusLibNull instance for SmbusLib. Add check in BootScriptExecutorDxe driver...
Shumin Qiu [Fri, 8 Nov 2013 02:59:05 +0000 (02:59 +0000)]
Add BaseSmbusLibNull instance for SmbusLib. Add check in BootScriptExecutorDxe driver for the return status of S3BootScriptExecute().

Signed-off-by: Shumin Qiu <shumin.qiu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14830 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoNot update the imageId for EXT1,2,4 type.
Eric Dong [Fri, 8 Nov 2013 02:23:27 +0000 (02:23 +0000)]
Not update the imageId for EXT1,2,4 type.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14829 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoUpdate the logic, based on the device path and formset guid to find the HiiHandle.
Eric Dong [Thu, 7 Nov 2013 07:38:05 +0000 (07:38 +0000)]
Update the logic, based on the device path and formset guid to find the HiiHandle.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14828 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoFix several bugs in DevicePathLib implementation regarding the device path node and...
Ruiyu Ni [Thu, 7 Nov 2013 02:30:13 +0000 (02:30 +0000)]
Fix several bugs in DevicePathLib implementation regarding the device path node and text conversion.

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14827 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoFix wrong parameter usage in GenericBdsLibConstructor
czhang46 [Thu, 7 Nov 2013 02:28:03 +0000 (02:28 +0000)]
Fix wrong parameter usage in GenericBdsLibConstructor

Signed-off-by : Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by   : Ni Ruiyu   <ruiyu.ni@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14826 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoOvmfPkg/build.sh: Use QEMU_COMMAND environment variable
Jordan Justen [Wed, 6 Nov 2013 19:29:09 +0000 (19:29 +0000)]
OvmfPkg/build.sh: Use QEMU_COMMAND environment variable

If the user has set the QEMU_COMMAND environment variable,
then use it when running QEMU. This can be useful for running
OVMF with development builds of QEMU.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14825 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoArmPlatformPkg: Added initial support for the FVP Base and Foundation Models
Olivier Martin [Tue, 5 Nov 2013 18:10:36 +0000 (18:10 +0000)]
ArmPlatformPkg: Added initial support for the FVP Base and Foundation Models

The FVP Base Model has GICv3 support.
UEFI SEC does limited configuration of GICv3 if present. This is required for Linux to use GICv3.
UEFI itself uses the GICv3 in legacy mode (GICv2).

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14824 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoSupport unhook notification function for Smst->SmmRegisterProtocolNotify() per PI...
Jeff Fan [Tue, 5 Nov 2013 13:32:32 +0000 (13:32 +0000)]
Support unhook notification function for Smst->SmmRegisterProtocolNotify() per PI specification.

Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14823 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg and SecurityPkg Variable: Enhance code to use the new variable data...
Star Zeng [Mon, 4 Nov 2013 03:13:54 +0000 (03:13 +0000)]
MdeModulePkg and SecurityPkg Variable: Enhance code to use the new variable data instead of old variable data when variable reclaim.

It can fix the potential failure to return EFI_OUT_OF_RESOURCES of the second variable set of large variable.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14822 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoOptionRomPkg: Corrected path for the FtdiUsbSerialDxe.inf in OptionRomPkg.dsc
Ashley DeSimone [Fri, 1 Nov 2013 17:01:23 +0000 (17:01 +0000)]
OptionRomPkg: Corrected path for the FtdiUsbSerialDxe.inf in OptionRomPkg.dsc

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ashley DeSimone <ashley.e.desimone@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14821 6f19259b-4bc3-4df7-8a09-765794883524

8 years agoMdeModulePkg Pool: Update the type of Size to UINTN for the potential more than 4GB...
Star Zeng [Wed, 30 Oct 2013 04:54:53 +0000 (04:54 +0000)]
MdeModulePkg Pool: Update the type of Size to UINTN for the potential more than 4GB buffer allocation.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14820 6f19259b-4bc3-4df7-8a09-765794883524