mirror_edk2.git
6 years agoVlv2TbltDevicePkg: Use the new PCDs defined in MdePkg and MdeModulePkg.
Ruiyu Ni [Wed, 6 May 2015 04:45:53 +0000 (04:45 +0000)]
Vlv2TbltDevicePkg: Use the new PCDs defined in MdePkg and MdeModulePkg.

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

6 years agoCorebootPayloadPkg: Use the new PCDs defined in MdePkg.
Ruiyu Ni [Wed, 6 May 2015 04:45:08 +0000 (04:45 +0000)]
CorebootPayloadPkg: Use the new PCDs defined in MdePkg.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Maurice Ma <maurice.ma@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17325 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoArmPlatformPkg: Use the new PCDs defined in MdePkg and MdeModulePkg.
Ruiyu Ni [Wed, 6 May 2015 04:44:43 +0000 (04:44 +0000)]
ArmPlatformPkg: Use the new PCDs defined in MdePkg and MdeModulePkg.

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

6 years agoMdeModulePkg: Remove GetBootMode() at FirmwarePerformancePeiEntryPoint
Hao Wu [Wed, 6 May 2015 03:31:28 +0000 (03:31 +0000)]
MdeModulePkg: Remove GetBootMode() at FirmwarePerformancePeiEntryPoint

Boot mode maybe changed at any point during the PEI phase, therefore, boot
mode should be checked later rather at entry point.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17323 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdePkg: Modify specification number encoding
Hao Wu [Wed, 6 May 2015 03:30:52 +0000 (03:30 +0000)]
MdePkg: Modify specification number encoding

Change the PEI, DXE, and SMM service table revisions to 1.4.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17322 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdePkg: EFI_FIRMWARE_MANAGEMENT_PROTOCOL.CheckImage() Description Update
Hao Wu [Wed, 6 May 2015 03:30:27 +0000 (03:30 +0000)]
MdePkg: EFI_FIRMWARE_MANAGEMENT_PROTOCOL.CheckImage() Description Update

Update description comments for IMAGE_UPDATABLE_VALID.
Add new definition IMAGE_UPDATABLE_VALID_WITH_VENDOR_CODE to FMP
CheckImage.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17321 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdePkg: Update the UEFI version to reflect new revision
Hao Wu [Wed, 6 May 2015 03:30:04 +0000 (03:30 +0000)]
MdePkg: Update the UEFI version to reflect new revision

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17320 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoEmulatorPkg: Use the new PCDs defined in MdePkg.
Ruiyu Ni [Wed, 6 May 2015 03:28:12 +0000 (03:28 +0000)]
EmulatorPkg: Use the new PCDs defined in MdePkg.

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

6 years agoOvmfPkg: Use the new PCDs defined in MdePkg and MdeModulePkg.
Ruiyu Ni [Wed, 6 May 2015 03:27:42 +0000 (03:27 +0000)]
OvmfPkg: Use the new PCDs defined in MdePkg and MdeModulePkg.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17318 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoDuetPkg: Use the new PCDs defined in MdePkg.
Ruiyu Ni [Wed, 6 May 2015 03:26:49 +0000 (03:26 +0000)]
DuetPkg: Use the new PCDs defined in MdePkg.

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

6 years agoEdkCompatibilityPkg: Use the new PCDs defined in MdePkg.
Ruiyu Ni [Wed, 6 May 2015 03:24:35 +0000 (03:24 +0000)]
EdkCompatibilityPkg: Use the new PCDs defined in MdePkg.

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

6 years agoNt32Pkg: Use the new PCDs defined in MdePkg and MdeModulePkg.
Ruiyu Ni [Wed, 6 May 2015 03:23:58 +0000 (03:23 +0000)]
Nt32Pkg: Use the new PCDs defined in MdePkg and MdeModulePkg.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Shumin Qiu <shumin.qiu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17315 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoIntelFrameworkModulePkg: Change BdsDxe to use new PCDs defined in MdePkg and MdeModul...
Ruiyu Ni [Wed, 6 May 2015 03:23:06 +0000 (03:23 +0000)]
IntelFrameworkModulePkg: Change BdsDxe to use new PCDs defined in MdePkg and MdeModulePkg.

Contributed-under: TianoCore Contribution Agreement 1.0
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@17314 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoCopy PCD from IntelFrameworkModulePkg to MdePkg and MdeModulePkg
Ruiyu Ni [Wed, 6 May 2015 03:22:26 +0000 (03:22 +0000)]
Copy PCD from IntelFrameworkModulePkg to MdePkg and MdeModulePkg

to MdePkg: PcdHardwareErrorRecordLevel, PcdPlatformBootTimeout
to MdeModulePkg: PcdSetupConOutColumn, PcdSetupConOutRow, PcdSetupVideoHorizontalResolution, PcdSetupVideoVerticalResolution

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

6 years agoMdePkg: Add bluetooth devicepath handling in device path library.
Qiu Shumin [Wed, 6 May 2015 02:41:37 +0000 (02:41 +0000)]
MdePkg: Add bluetooth devicepath handling in device path library.

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

6 years agoMdePkg: Add UEFI2.5 bluetooth protocol/devicepath definition in MdePkg.
Qiu Shumin [Wed, 6 May 2015 02:21:48 +0000 (02:21 +0000)]
MdePkg: Add UEFI2.5 bluetooth protocol/devicepath definition in MdePkg.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17311 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoAdd ASSERT comment for SafeString API in BaseLib for MdePkg.
Yao, Jiewen [Wed, 6 May 2015 00:46:51 +0000 (00:46 +0000)]
Add ASSERT comment for SafeString API in BaseLib for MdePkg.

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

6 years agoEmbeddedPkg: do not ASSERT() on valid external input
Ard Biesheuvel [Tue, 5 May 2015 15:51:44 +0000 (15:51 +0000)]
EmbeddedPkg: do not ASSERT() on valid external input

Since ASSERT()s are enabled even on all ArmPlatformPkg RELEASE
builds, ASSERT()ing on a valid FDT header will crash the firmware
if the user selects an incorrect file. Since ASSERT() is meant to
catch internal inconsistencies in the firmware, its use here is
inappropriate.

Instead, handle it as a normal error condition.

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

6 years agoEmbeddedPkg/PrePiLib: Ensure the FFS files are always 8-byte aligned
Olivier Martin [Tue, 5 May 2015 15:48:59 +0000 (15:48 +0000)]
EmbeddedPkg/PrePiLib: Ensure the FFS files are always 8-byte aligned

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

6 years agoEmbeddedPkg/FdtPlatformDxe: Changed the driver from DXE to UEFI driver
Olivier Martin [Tue, 5 May 2015 15:47:07 +0000 (15:47 +0000)]
EmbeddedPkg/FdtPlatformDxe: Changed the driver from DXE to UEFI driver

The driver does not really require to be a DXE driver.
By moving it as a UEFI driver it also implies it is dispatcged after
the DXE drivers at boot time.

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

6 years agoArmPlatformPkg: Removed duplicate PCD settings
Olivier Martin [Tue, 5 May 2015 15:45:20 +0000 (15:45 +0000)]
ArmPlatformPkg: Removed duplicate PCD settings

PcdOverridePlatformFdt was set with its default value.

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

6 years agoArmPlatformPkg: Move the FDT platform driver at the end of the driver list
Olivier Martin [Tue, 5 May 2015 15:43:48 +0000 (15:43 +0000)]
ArmPlatformPkg: Move the FDT platform driver at the end of the driver list

The Fdt platform driver has been moved at the end of the list
of the DXE/UEFI drivers to ensure the device drivers have been
dispatched prior to load the FDT platform driver.

For instance, if we want to load FDT from TFTP we must have
the ethernet driver to be already loaded.

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

6 years agoEmbeddedPkg/FdtPlatformDxe: Update the uni file
Ronald Cron [Tue, 5 May 2015 15:40:46 +0000 (15:40 +0000)]
EmbeddedPkg/FdtPlatformDxe: Update the uni file

The updated uni file reflects the latest EFI shell command updates.

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

6 years agoEmbeddedPkg/FdtPlatformDxe: Introduce EFI Shell command 'dumfdt'
Olivier Martin [Tue, 5 May 2015 15:31:11 +0000 (15:31 +0000)]
EmbeddedPkg/FdtPlatformDxe: Introduce EFI Shell command 'dumfdt'

This command dumps the Flat Device Tree currently installed
in the EFI Configuration Table.

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

6 years agoEmbeddedPkg/FdtPlatformDxe: Move 'setfdt' Shell command into a separate file
Olivier Martin [Tue, 5 May 2015 15:27:41 +0000 (15:27 +0000)]
EmbeddedPkg/FdtPlatformDxe: Move 'setfdt' Shell command into a separate file

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

6 years agoEmbeddedPkg/FdtPlatformDxe: 'setfdt' command, display the successful device path
Ronald Cron [Tue, 5 May 2015 15:25:43 +0000 (15:25 +0000)]
EmbeddedPkg/FdtPlatformDxe: 'setfdt' command, display the successful device path

Display in the EFI Shell the device path from which
the FDT was retrieved when the installation process
triggered by the "-i" option is successful.

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

6 years agoEmbeddedPkg/FdtPlatformDxe: 'setfdt' command, add deletion of the UEFI variable ...
Ronald Cron [Tue, 5 May 2015 15:24:17 +0000 (15:24 +0000)]
EmbeddedPkg/FdtPlatformDxe: 'setfdt' command, add deletion of the UEFI variable "Fdt"

Add deletion of the "Fdt" UEFI variable used to specify
a development FDT device path when the 'setfdt' command
is called with an empty string as file path.

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

6 years agoArmPlatformPkg/FdtPlatformDxe: 'setfdt' command, add display of FDT device paths.
Ronald Cron [Tue, 5 May 2015 15:23:02 +0000 (15:23 +0000)]
ArmPlatformPkg/FdtPlatformDxe: 'setfdt' command, add display of FDT device paths.

Add the display of the device paths that the FDT installation
process goes through when the 'setfdt' EFI Shell command is
called without any parameter.

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

6 years agoEmbeddedPkg/FdtPlatformDxe: Run FDT installation process at TPL_APPLICATION level
Olivier Martin [Tue, 5 May 2015 15:12:58 +0000 (15:12 +0000)]
EmbeddedPkg/FdtPlatformDxe: Run FDT installation process at TPL_APPLICATION level

The current mechanism relies on EndOfDxe event that runs at TPL_CALLBACK level.
It prevents some protocols to run as excepted because they require TPL_CALLBACK
(eg: TFTP transfer).

This change moves FDT installation in the driver entrypoint (that is called at
TPL_APPLICATION level).

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

6 years agoArmPkg/BdsLib: Exposed ShutdownUefiBootServices() in the BdsLib interface
Olivier Martin [Tue, 5 May 2015 14:58:57 +0000 (14:58 +0000)]
ArmPkg/BdsLib: Exposed ShutdownUefiBootServices() in the BdsLib interface

Other libraries/modules could use it (eg: EFI Shell command `runaxf`).

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

6 years agoArmPlatformPkg/Scripts/Makefile: Added support to automatically update the FIP
Olivier Martin [Tue, 5 May 2015 14:56:51 +0000 (14:56 +0000)]
ArmPlatformPkg/Scripts/Makefile: Added support to automatically update the FIP

Some ARM development platforms use ARM Trusted Firmware to boot.
ARM Trusted Firmware encapsulates UEFI into the FIP (Firmware
Image Package) binary.
This change allows to update the FIP binary after building UEFI.

Example to build UEFI for FVP Base model:
$ make -f ArmPlatformPkg/Scripts/Makefile \
   EDK2_DSC=ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-FVP-AArch64.dsc \
   EDK2_ARCH=AARCH64 EDK2_TOOLCHAIN=GCC49 \
   FIP_BIN=~/arm-trusted-firmware/build/fvp/release/fip.bin

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

6 years agoMdePkg: Add UEFI2.5 USB Function I/O protocol definitions
Feng Tian [Tue, 5 May 2015 07:29:56 +0000 (07:29 +0000)]
MdePkg: Add UEFI2.5 USB Function I/O protocol definitions

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

6 years agoMdePkg: Add UEFI2.5 Smart Card Edge protocol definitions
Feng Tian [Tue, 5 May 2015 07:28:48 +0000 (07:28 +0000)]
MdePkg: Add UEFI2.5 Smart Card Edge protocol definitions

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

6 years agoMdePkg: Add UEFI2.5 Smart Card Reader protocol definitions
Feng Tian [Tue, 5 May 2015 07:28:18 +0000 (07:28 +0000)]
MdePkg: Add UEFI2.5 Smart Card Reader protocol definitions

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

6 years agoMdePkg: Add UEFI2.5 Inline Cryptographic Interface definition
Feng Tian [Tue, 5 May 2015 07:27:52 +0000 (07:27 +0000)]
MdePkg: Add UEFI2.5 Inline Cryptographic Interface definition

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

6 years agoFixed SOURCE_DEBUG_ENABLE build error.
Shifei Lu [Tue, 5 May 2015 02:58:51 +0000 (02:58 +0000)]
Fixed SOURCE_DEBUG_ENABLE build error.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Shifei Lu <shifeix.a.lu@intel.com>
Reviewed-by: David Wei <david.wei@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17291 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoIntelFrameworkModulePkg: Modify IsaSerialDxe to follow driver rules
Hao Wu [Tue, 5 May 2015 02:34:20 +0000 (02:34 +0000)]
IntelFrameworkModulePkg: Modify IsaSerialDxe to follow driver rules

IsaSerialDxe creates child handles and wishes to retrieve the name for
those child controllers.

However, in the IsaSerialComponentNameGetControllerName() function, it
directly return EFI_UNSUPPORTED when ChildHandle != NULL.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17289 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoAdd UEFI2.5 HASH protocol implementation.
Yao, Jiewen [Tue, 5 May 2015 01:40:16 +0000 (01:40 +0000)]
Add UEFI2.5 HASH protocol implementation.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <Jiewen.Yao@intel.com>
Reviewed-by: "Long, Qin" <Qin.Long@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17288 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoAdd UEFI2.5 HASH protocol definition.
Yao, Jiewen [Tue, 5 May 2015 01:34:39 +0000 (01:34 +0000)]
Add UEFI2.5 HASH protocol definition.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <Jiewen.Yao@intel.com>
Reviewed-by: "Long, Qin" <Qin.Long@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17287 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdeModulePkg/NvmExpressDxe: Expose EFI_NVM_EXPRESS_PASS_THRU protocol
Feng Tian [Mon, 4 May 2015 11:08:09 +0000 (11:08 +0000)]
MdeModulePkg/NvmExpressDxe: Expose EFI_NVM_EXPRESS_PASS_THRU protocol

This patch produces a EFI_NVM_EXPRESS_PASS_THRU protocol instance
on device handle to provide upper user a way to send cmd to NVMe
device.

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

6 years agoMdePkg: Add UEFI2.5 EFI_NVM_EXPRESS_PASS_THRU_PROTOCOL definitions
Feng Tian [Mon, 4 May 2015 11:07:25 +0000 (11:07 +0000)]
MdePkg: Add UEFI2.5 EFI_NVM_EXPRESS_PASS_THRU_PROTOCOL definitions

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

6 years agoenhancement to tool to generate the comments along with offsets in the .h file.
Mudusuru, Giri P [Fri, 1 May 2015 23:09:53 +0000 (23:09 +0000)]
enhancement to tool to generate the comments along with offsets in the .h file.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Mudusuru, Giri P" <giri.p.mudusuru@intel.com>
Reviewed-by: "Yao, Jiewen" <Jiewen.Yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17282 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoFix FSP GCC error on FspApiCallingCheck().
Yao, Jiewen [Fri, 1 May 2015 01:05:00 +0000 (01:05 +0000)]
Fix FSP GCC error on FspApiCallingCheck().

Add comment for ASM.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <Jiewen.Yao@intel.com>
Reviewed-by: "Mudusuru, Giri P" <giri.p.mudusuru@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17281 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdePkg/BaseLib: Preserve EBX register and fix stack offset to LinearAddress in AsmFlu...
Michael Kinney [Thu, 30 Apr 2015 07:25:07 +0000 (07:25 +0000)]
MdePkg/BaseLib: Preserve EBX register and fix stack offset to LinearAddress in AsmFlushCacheLine()

The value of EBX must be preserved to follow IA32 cdecl calling convention in the assembly
implementation of AsmFlushCacheLine(). The CPUID instruction modifies the EBX register.
The EBX register value is saved onto the stack before CPUID and restored from the stack
after CPUID.

The update to the inline assembly implementation of AsmFlushCacheLine() changed the location of the
LinearAddress parameter value on the stack.  The hardcoded lookup using [esp + 4] is not correct.
Use the parameter name LinearAddress instead of the hard coded [esp + 4] stack location to prevent
this issue from occurring again if there are changes to the inline assembly in the future.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17279 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoAdd IPV6 support from UNDI
Ye Ting [Thu, 30 Apr 2015 02:57:10 +0000 (02:57 +0000)]
Add IPV6 support from UNDI

Add new information block ‘IPV6 support from UNDI’ in AIP protocol and provide sample implementation in UNDI driver.
Update PXE driver to get ‘Ipv6Available’ of PXE BC Mode data from UNDI driver, if unsupported then not to start PXE over IPv6 path.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17275 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoAdd FSP_FSPP_SIGNATURE in 1.1.
Yao, Jiewen [Thu, 30 Apr 2015 01:57:25 +0000 (01:57 +0000)]
Add FSP_FSPP_SIGNATURE in 1.1.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <Jiewen.Yao@intel.com>
Reviewed-by: "Mudusuru, Giri P" <giri.p.mudusuru@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17273 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoClean update API name for ASM function.
Yao, Jiewen [Thu, 30 Apr 2015 01:18:30 +0000 (01:18 +0000)]
Clean update API name for ASM function.

Add FSP_INFO_HEADER_SIGNATURE and FSP_INFO_EXTENDED_HEADER_SIGNATURE.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <Jiewen.Yao@intel.com>
Reviewed-by: "Ma, Maurice" <maurice.ma@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17271 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdeModulePkg: Update comments for PcdMemoryProfileMemoryType
Liming Gao [Wed, 29 Apr 2015 08:12:11 +0000 (08:12 +0000)]
MdeModulePkg: Update comments for PcdMemoryProfileMemoryType

PcdMemoryProfileMemoryType also includes EfiPersistentMemory.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-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@17267 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoShellPkg: Update CopyRight to 2015
Liming Gao [Wed, 29 Apr 2015 08:11:45 +0000 (08:11 +0000)]
ShellPkg: Update CopyRight to 2015

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

6 years agoRemove duplicate DAD entry in IP6 driver to fix DAD fail issue.
Fu Siyuan [Wed, 29 Apr 2015 05:47:03 +0000 (05:47 +0000)]
Remove duplicate DAD entry in IP6 driver to fix DAD fail issue.

The IP6 driver may create duplicate IP6_DAD_ENTRY in DupAddrDetectList in some situation like:
1. Address policy switch but not clear the delay node list, OR
2. Set manual address repeatedly before the previous DAD is finished.
The NS sent out by duplicate DAD entry will mix up with the loop back multicast packet, result in DAD fail.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17263 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdeModulePkg: PI1.4 DxeCore GetMemoryMap() update
Liming Gao [Wed, 29 Apr 2015 05:11:21 +0000 (05:11 +0000)]
MdeModulePkg: PI1.4 DxeCore GetMemoryMap() update

PI1.4: Updates DxeCore to add all EfiGcdMemoryTypeReserved memory
into UEFI memory map.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-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@17253 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoEdkCompatibilityPkg: Add PersistentMemory definition
Liming Gao [Wed, 29 Apr 2015 05:10:41 +0000 (05:10 +0000)]
EdkCompatibilityPkg: Add PersistentMemory definition

Include this definition to make sure EfiMaxMemoryType be same value in EDKII and ECP code.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-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@17252 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoAdd dual FSP binaries support.
Ma, Maurice [Wed, 29 Apr 2015 03:50:20 +0000 (03:50 +0000)]
Add dual FSP binaries support.

There are two FSP images at different locations in a flash (one factory version is read only and other in updatable version)
TempRamInit, FspMemoryInit and TempRamExit are executed from factory version and FspSiliconInit/NotifyPhase will be executed from updatable version.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Ma, Maurice" <maurice.ma@intel.com>
Reviewed-by: "Yao, Jiewen" <Jiewen.Yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17249 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoAdd dual FSP binaries support.
Ma, Maurice [Wed, 29 Apr 2015 03:10:24 +0000 (03:10 +0000)]
Add dual FSP binaries support.

There are two FSP images at different locations in a flash (one factory version is read only and other in updatable version)
TempRamInit, FspMemoryInit and TempRamExit are executed from factory version and FspSiliconInit/NotifyPhase will be executed from updatable version.

Also update FSP specification version to v1.1.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Ma, Maurice" <maurice.ma@intel.com>
Reviewed-by: "Yao, Jiewen" <Jiewen.Yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17248 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdeModulePkg: fix some issues in ScsiDisk to co-work with UFS stack
Feng Tian [Wed, 29 Apr 2015 02:44:42 +0000 (02:44 +0000)]
MdeModulePkg: fix some issues in ScsiDisk to co-work with UFS stack

The changes in ScsiDisk include:
1. Add UFS disk info support.
2. Remove the wrong block size calculation.
3. Get sense data for TEST_UNIT_READY cmd immediately rather than sending a REQUEST_SENSE cmd again.

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

6 years agoMdeModulePkg: Add UFS (Universal Flash Storage) Stack
Feng Tian [Wed, 29 Apr 2015 02:42:58 +0000 (02:42 +0000)]
MdeModulePkg: Add UFS (Universal Flash Storage) Stack

It includes 4 drivers:
1. UfsPassThruDxe, which is a UEFI driver and consumes EFI_UFS_HOST_CONTROLLER_PROTOCOL and produces EFI_EXT_SCSI_PASS_THRU_PROTOCOL
2. UfsPciHcDxe, which is specific for pci-based UFS HC implementation and is a UEFI driver to produce EFI_UFS_HOST_CONTROLLER_PROTOCOL.
3. UfsBlockIoPei, which is a PEI driver and consumes EFI_UFS_HOST_CONTROLLER_PPI and produces EFI_PEI_VIRTUAL_BLOCK_IO_PPI.
4. UfsPciHcPei, which is specific for pci-based UFS HC implementation and is a PEI driver to produce EFI_UFS_HOST_CONTROLLER_PPI.

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

6 years agoMdePkg: Add UFS (Universal Flash Storage) related definitions
Feng Tian [Wed, 29 Apr 2015 02:37:30 +0000 (02:37 +0000)]
MdePkg: Add UFS (Universal Flash Storage) related definitions

These definitions are defined in UEFI2.5/PI1.4 spec.

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

6 years agoIntelFrameworkModulePkg: Add UEFI2.5 PersistentMemory support in LegacyBios
Liming Gao [Wed, 29 Apr 2015 01:38:01 +0000 (01:38 +0000)]
IntelFrameworkModulePkg: Add UEFI2.5 PersistentMemory support in LegacyBios

LegacyBiosDxe converts EfiPersistentMemory to E820 EfiAddressRangePersistentMemory.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-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@17244 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoShellPkg: Update Shell MemMap command to show PersistentMemory range
Liming Gao [Wed, 29 Apr 2015 01:37:32 +0000 (01:37 +0000)]
ShellPkg: Update Shell MemMap command to show PersistentMemory range

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

6 years agoMdeModulePkg: Add support for UEFI2.5 and PI1.4 PersistentMemory feature
Liming Gao [Wed, 29 Apr 2015 01:37:05 +0000 (01:37 +0000)]
MdeModulePkg: Add support for UEFI2.5 and PI1.4 PersistentMemory feature

Update DxeCore to collect PersistentMemory resource and report them
in EFI memory map.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-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@17242 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdePkg: Add UEFI2.5 and PI1.4 PersistentMemory definition
Liming Gao [Wed, 29 Apr 2015 01:36:16 +0000 (01:36 +0000)]
MdePkg: Add UEFI2.5 and PI1.4 PersistentMemory definition

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-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@17241 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdePkg: Trim trailing whitespaces for ESRT related files
Hao Wu [Tue, 28 Apr 2015 07:34:02 +0000 (07:34 +0000)]
MdePkg: Trim trailing whitespaces for ESRT related files

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17236 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdePkg: Add ESRT Interface Definitions
Hao Wu [Tue, 28 Apr 2015 07:28:27 +0000 (07:28 +0000)]
MdePkg: Add ESRT Interface Definitions

Add EFI System Resource Table (ESRT) interface (API only).

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17235 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdePkg: Add the header file for UEFI PI Multi-processor PPI
Hao Wu [Tue, 28 Apr 2015 07:24:16 +0000 (07:24 +0000)]
MdePkg: Add the header file for UEFI PI Multi-processor PPI

The MP Services PPI is installed by some platform or chipset-specific PEIM
that abstracts handling multiprocessor support.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17234 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdePkg: Add PI 1.4 Graphics HOB and PPI header files
Hao Wu [Tue, 28 Apr 2015 07:18:15 +0000 (07:18 +0000)]
MdePkg: Add PI 1.4 Graphics HOB and PPI header files

The PeiGraphicsPpi is the main interface exposed by the Graphics PEIM to
be used by the other firmware modules.

When graphics capability is included in PEI, it produces a
EFI_PEI_GRAPHICS_INFO_HOB which provides information about the graphics
mode and the framebuffer.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17233 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMove microcode to offset 0 of BIOS region.
Mang Guo [Tue, 28 Apr 2015 03:31:12 +0000 (03:31 +0000)]
Move microcode to offset 0 of BIOS region.

Move microcode, whose address is fixed by SEC binary, to offset 0 of BIOS region.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Mang Guo <mang.guo@intel.com>
Reviewed-by: David Wei <david.wei@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17224 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoReplace SetPower2 by EDKII baselib - GetPowerOfTwo64.
Yao, Jiewen [Tue, 28 Apr 2015 02:48:57 +0000 (02:48 +0000)]
Replace SetPower2 by EDKII baselib - GetPowerOfTwo64.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <Jiewen.Yao@intel.com>
Reviewed-by: "Ma, Maurice" <Maurice.Ma@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17222 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoUefiCpuPkg/CpuExceptionHandlerLib: Support IA32 processors without DE or FXSAVE/FXRESTOR
Michael Kinney [Mon, 27 Apr 2015 19:54:52 +0000 (19:54 +0000)]
UefiCpuPkg/CpuExceptionHandlerLib: Support IA32 processors without DE or FXSAVE/FXRESTOR

Use CPUID Leaf 01 to detect support for debug extensions and FXSAVE/FXRESTOR instructions.
Do not enable those features in CR4 if they are not supported.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17221 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoSourceLevelDebugPkg/DebugAgent: Support IA32 processors without DE or FXSAVE/FXRESTOR
Michael Kinney [Mon, 27 Apr 2015 19:53:36 +0000 (19:53 +0000)]
SourceLevelDebugPkg/DebugAgent: Support IA32 processors without DE or FXSAVE/FXRESTOR

Use CPUID Leaf 01 to detect support for debug extensions and FXSAVE/FXRESTOR instructions.
Do not enable those features in CR4 if they are not supported.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17220 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoSourceLevelDebugPkg/PeCoffExtraActionLibDebug: Support IA32 processors without debug...
Michael Kinney [Mon, 27 Apr 2015 19:51:46 +0000 (19:51 +0000)]
SourceLevelDebugPkg/PeCoffExtraActionLibDebug: Support IA32 processors without debug extensions

Use CPUID Leaf 01 to detect support for debug extensions.
Force use of software breakpoints if debug extensions are not supported.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17219 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdePkg/DebugAgent: Support IA32 processors without MSR_IA32_APIC_BASE_ADDRESS
Michael Kinney [Mon, 27 Apr 2015 19:49:25 +0000 (19:49 +0000)]
MdePkg/DebugAgent: Support IA32 processors without MSR_IA32_APIC_BASE_ADDRESS

Avoid use of Local APIC Base Address MSR (MSR_IA32_APIC_BASE_ADDRESS) if there is only 1 CPU present.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17218 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdePkg/BaseXApicX2ApicLib: Support IA32 processors without MSR_IA32_APIC_BASE_ADDRESS
Michael Kinney [Mon, 27 Apr 2015 19:48:00 +0000 (19:48 +0000)]
MdePkg/BaseXApicX2ApicLib: Support IA32 processors without MSR_IA32_APIC_BASE_ADDRESS

Use Family from CPUID 01 to detect support for the Local APIC Base Address MSR (MSR_IA32_APIC_BASE_ADDRESS).
If this MSR is not supported, then use Local APIC Base Address from the PCD PcdCpuLocalApicBaseAddress.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17217 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdePkg/BaseXApicLib: Support IA32 processors without MSR_IA32_APIC_BASE_ADDRESS
Michael Kinney [Mon, 27 Apr 2015 19:47:26 +0000 (19:47 +0000)]
MdePkg/BaseXApicLib: Support IA32 processors without MSR_IA32_APIC_BASE_ADDRESS

Use Family from CPUID 01 to detect support for the Local APIC Base Address MSR (MSR_IA32_APIC_BASE_ADDRESS).
If this MSR is not supported, then use Local APIC Base Address from the PCD PcdCpuLocalApicBaseAddress.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17216 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdePkg/BaseSerialPortLib16550: Support UARTs with a register stride greater than...
Michael Kinney [Mon, 27 Apr 2015 19:44:40 +0000 (19:44 +0000)]
MdePkg/BaseSerialPortLib16550: Support UARTs with a register stride greater than 1 byte.

Add stride PCD to MdeModulePkg to support 16550 UARTs with a register stride that is not 1 byte.
The default value is 1 byte.
Quark SoC uses a stride of 4 bytes.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17215 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdePkg/BaseMemoryLibRepStr: Support IA32 processors without CMOVx
Michael Kinney [Mon, 27 Apr 2015 19:41:19 +0000 (19:41 +0000)]
MdePkg/BaseMemoryLibRepStr: Support IA32 processors without CMOVx

Remove use of CMOVx instruction from IA32 assembly files in BaseMemoryLibRepStr.
This matches compiler flags for all supported C compilers.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17214 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdePkg/BaseLib: Support IA32 processors without CMOVx
Michael Kinney [Mon, 27 Apr 2015 19:38:39 +0000 (19:38 +0000)]
MdePkg/BaseLib: Support IA32 processors without CMOVx

Remove use of CMOVx instruction from IA32 assembly files in BaseLib.
This matches compiler flags for all supported C compilers.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17213 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdePkg/BaseLib: Support IA32 processors without CLFLUSH
Michael Kinney [Mon, 27 Apr 2015 19:37:15 +0000 (19:37 +0000)]
MdePkg/BaseLib: Support IA32 processors without CLFLUSH

Use CPUID Leaf 01 to detect support for CLFLUSH instruction.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17212 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdePkg/BaseCacheMaintenanceLib: Support IA32 processors without CLFLUSH
Michael Kinney [Mon, 27 Apr 2015 19:35:32 +0000 (19:35 +0000)]
MdePkg/BaseCacheMaintenanceLib: Support IA32 processors without CLFLUSH

Use CPUID Leaf 01 to detect support for CLFLUSH instruction.
If CLFLUSH is supported, use CPUID to determine the cache line size to use with CLFLUSH.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17211 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoFix typo - FSP_INFO_EXTENDED_HEADER.
Yao, Jiewen [Mon, 27 Apr 2015 13:27:30 +0000 (13:27 +0000)]
Fix typo - FSP_INFO_EXTENDED_HEADER.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <Jiewen.Yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17210 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdeModulePkg/NvmExpressDxe: fix build error
Feng Tian [Mon, 27 Apr 2015 06:16:07 +0000 (06:16 +0000)]
MdeModulePkg/NvmExpressDxe: fix build error

Add missing parentheses due to typo.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17209 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdeModulePkg/NvmExpressDxe: Correct Prp list creation algorithm.
Feng Tian [Mon, 27 Apr 2015 05:36:16 +0000 (05:36 +0000)]
MdeModulePkg/NvmExpressDxe: Correct Prp list creation algorithm.

The number of the Prp lists and the number of the entries in last Prp list may be calculated wrongly.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Baban Devkate <baban.devkate@seagate.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17208 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdeModulePkg: fix completed xfer length in XhciDxe and XhciPei drivers
Feng Tian [Mon, 27 Apr 2015 05:27:20 +0000 (05:27 +0000)]
MdeModulePkg: fix completed xfer length in XhciDxe and XhciPei drivers

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Baraneedharan Anbazhagan <anbazhagan@hp.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17207 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoSourceLevelDebugPkg/DebugAgent: Add some comments and debug message
Jeff Fan [Mon, 27 Apr 2015 05:26:03 +0000 (05:26 +0000)]
SourceLevelDebugPkg/DebugAgent: Add some comments and debug message

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

6 years agoMdeModulePkg/XhciDxe: rename "Lenth" to "Length" in TRB structs
Feng Tian [Mon, 27 Apr 2015 05:25:03 +0000 (05:25 +0000)]
MdeModulePkg/XhciDxe: rename "Lenth" to "Length" in TRB structs

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Baraneedharan Anbazhagan <anbazhagan@hp.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17205 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoSourceLevelDebugPkg/DebugAgent: Clear/Restore EFLAGS.IF
Jeff Fan [Mon, 27 Apr 2015 05:23:43 +0000 (05:23 +0000)]
SourceLevelDebugPkg/DebugAgent: Clear/Restore EFLAGS.IF

Clear EFLAGS.IF before executing Stepping command and save original
value in DEBUG_AGENT_FLAG. It could avoid pending interrupt issued
during executing Stepping command. Restore EFLAGS.IF after Stepping
command execution finished.

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

6 years agoSourceLevelDebugPkg/DebugAgent: Add InterruptFlag field
Jeff Fan [Mon, 27 Apr 2015 05:21:17 +0000 (05:21 +0000)]
SourceLevelDebugPkg/DebugAgent: Add InterruptFlag field

Add InterruptFlag field in DEBUG_AGENT_FLAG. This field is used to
save/restore EFLAGS.IF across Stepping command execution.

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

6 years agoSourceLevelDebugPkg/DebugCommunicationLibUsb3: Fix the completed transfer length
Feng Tian [Mon, 27 Apr 2015 05:18:42 +0000 (05:18 +0000)]
SourceLevelDebugPkg/DebugCommunicationLibUsb3: Fix the completed transfer length

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Baraneedharan Anbazhagan <anbazhagan@hp.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17202 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoShellPkg: Refine the logic about allocating memory for variable name and data.
Qiu Shumin [Mon, 27 Apr 2015 03:09:34 +0000 (03:09 +0000)]
ShellPkg: Refine the logic about allocating memory for variable name and data.

The run time service 'QueryVariableInfo' is not proper to be used to get the variable name size. This patch refine the logic about allocating memory for variable name and data.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Ruiyu Ni <Ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17201 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoFix FSP_INFO_EXTENTED_HEADER.
Yao, Jiewen [Sat, 25 Apr 2015 12:15:44 +0000 (12:15 +0000)]
Fix FSP_INFO_EXTENTED_HEADER.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <Jiewen.Yao@intel.com>
Reviewed-by: "Rangarajan, Ravi P" <ravi.p.rangarajan@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17200 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoShellPkg: Remove memory leak when printing help and there are dynamic commands installed
Jaben Carsey [Thu, 23 Apr 2015 20:28:36 +0000 (20:28 +0000)]
ShellPkg: Remove memory leak when printing help and there are dynamic commands installed

The list of handles needs to be freed.

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

6 years agoShellPkg/HandleParsingLib: Caller should free memory from 2 functions
Jaben Carsey [Thu, 23 Apr 2015 20:27:53 +0000 (20:27 +0000)]
ShellPkg/HandleParsingLib: Caller should free memory from 2 functions

Add a comment for GetHandleListByProtocol and GetHandleListByProtocolList to tell the caller they are responsible for freeing the returned memory.

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

6 years agoIntelFspWrapperPkg update for FSP1.1
Yao, Jiewen [Thu, 23 Apr 2015 08:53:39 +0000 (08:53 +0000)]
IntelFspWrapperPkg update for FSP1.1

-- Add BootLoaderTolumSize support
-- Fix LibraryClasses declaration in DEC file.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <Jiewen.Yao@intel.com>
Reviewed-by: "Ma, Maurice" <maurice.ma@intel.com>
Reviewed-by: "Rangarajan, Ravi P" <ravi.p.rangarajan@intel.com>
Reviewed-by: "Mudusuru, Giri P" <giri.p.mudusuru@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17197 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoUpdate IntelFspPkg to support FSP1.1
Yao, Jiewen [Thu, 23 Apr 2015 08:52:21 +0000 (08:52 +0000)]
Update IntelFspPkg to support FSP1.1

-- Add BootLoaderTolumSize support
-- Extend FspApiCallingCheck with ApiParam for BootLoaderTolumSize
-- Rename all Bootloader to BootLoader as official name
-- Rename Ucode to Microcode
-- Remove FspSelfCheck API, because it is merged into SecPlatformInit
-- Add GetFspVpdDataPointer() in FspCommonLib.h
-- Document FspSecPlatformLib.h
-- Reorg FSP_PLAT_DATA data structure to let it match FSP spec.
-- Move helper function in FspSecCore to reduce platform enabling effort
-- Fix LibraryClasses declaration in DEC file.
-- Enhance PatchFv to check if it is valid FSP bin.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <Jiewen.Yao@intel.com>
Reviewed-by: "Ma, Maurice" <maurice.ma@intel.com>
Reviewed-by: "Rangarajan, Ravi P" <ravi.p.rangarajan@intel.com>
Reviewed-by: "Mudusuru, Giri P" <giri.p.mudusuru@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17196 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoMdeModulePkg/ScsiDisk: Set correct value to the Media->IoAlign field of BlockIo proto...
Feng Tian [Thu, 23 Apr 2015 01:42:57 +0000 (01:42 +0000)]
MdeModulePkg/ScsiDisk: Set correct value to the Media->IoAlign field of BlockIo protocol instance.

Media->IoAlign field of BlockIo protocol instance installed by this driver should be set to the value of ScsiIo->IoAlign.

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

6 years agoShellPkg: Remove "ProtocolGuid" from the string for protocol names
Jaben Carsey [Wed, 22 Apr 2015 19:53:43 +0000 (19:53 +0000)]
ShellPkg: Remove "ProtocolGuid" from the string for protocol names

Some protocols still had this at the end of protocol name.  remove to standardize.

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

6 years agoMaintainers.txt: update SecurityPkg maintainer
Hot Tian [Tue, 21 Apr 2015 07:58:45 +0000 (07:58 +0000)]
Maintainers.txt: update SecurityPkg maintainer

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hot Tian <hot.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17193 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoACPI5.1 definition bug fix.
Yao, Jiewen [Tue, 21 Apr 2015 03:45:01 +0000 (03:45 +0000)]
ACPI5.1 definition bug fix.

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

6 years agoAdd ACPI6.0 header file.
Yao, Jiewen [Tue, 21 Apr 2015 03:44:17 +0000 (03:44 +0000)]
Add ACPI6.0 header file.

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

6 years agoSourceLevelDebugPkg: Clear Stepping flag as early as possible
Jeff Fan [Tue, 21 Apr 2015 03:14:29 +0000 (03:14 +0000)]
SourceLevelDebugPkg: Clear Stepping flag as early as possible

It will avoid that exception issued by Debug Agent itself was skipped.

Contributed-under: TianoCore Contribution Agreement 1.0
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@17190 6f19259b-4bc3-4df7-8a09-765794883524

6 years agoUpdate the logic for action opcode, also support user input a empty string for Questi...
Eric Dong [Mon, 20 Apr 2015 04:26:39 +0000 (04:26 +0000)]
Update the logic for action opcode, also support user input a empty string for QuestionConfig part.

Contributed-under: TianoCore Contribution Agreement 1.0
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@17189 6f19259b-4bc3-4df7-8a09-765794883524