summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-07-19Platform/RPi3: Reduce debug noise when using a USB network deviceMichael Brown
The design of the EFI_USB2_HC_PROTOCOL does not allow for long-lived bulk IN transactions as used by network devices, but instead requires the network driver to rely on repeatedly issuing bulk IN transactions with a very short timeout and in the expectation that most bulk IN transactions will time out since no packet will have been received. Timeouts are therefore normal and expected events when using a USB network device under UEFI. This currently results in a constant stream of spurious "Wait4Bit: set timeout" and "Channel %u did not halt" debug messages whenever the network device is open. All callers of Wait4Bit already report a meaningful error in the event of a timeout, so the Wait4Bit message may safely be removed without impacting the ability to debug the code. The "Channel %u did not halt" message may be moved to its sole call site and restricted to the situation in which the subsequent attempt to gracefully disable the channel did actually fail. Signed-off-by: Pete Batard <pete@akeo.ie> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2019-07-19Platform/RPi3: Gracefully disable USB channel after a timeoutMichael Brown
When a timeout occurs, attempt to gracefully disable the channel. Report a final status of EFI_TIMEOUT if the channel was disabled successfully, or EFI_DEVICE_ERROR if we were unable to disable the channel. Signed-off-by: Pete Batard <pete@akeo.ie> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2019-07-19Platform/RPi3: Use Wait4Bit return value consistentlyMichael Brown
There are multiple points in the existing code that take the UINT32 value returned by Wait4Bit and return it directly as an EFI_STATUS value. If Wait4Bit fails, this will result in a spurious EFI_STATUS value of 0x1 (EFI_WARN_UNKNOWN_GLYPH) being returned to the caller. A caller treating any non-zero value as an error will see this as a failure, but a caller using the EFI_ERROR macro will incorrectly see it as a success. Fix by defining the return type of Wait4Bit as EFI_STATUS and ensuring that a valid EFI_STATUS value is always returned. Signed-off-by: Pete Batard <pete@akeo.ie> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2019-07-19Platform/Rpi3: Add custom CPU frequency supportPete Batard
Allow users to set a custom CPU frequency [100 - 1600 MHz] in 'Device Manager' -> 'Raspberry Pi Configuration'. Signed-off-by: Pete Batard <pete@akeo.ie> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2019-07-19Platform/RPi3: Set the boot option of UEFI Shell as non-activePete Batard
This makes boot from SD/USB the default, which is what most users should expect. Pressing F1 at boot still boots to UEFI Shell. Signed-off-by: Pete Batard <pete@akeo.ie> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2019-07-19Silicon/Synopsys/DesignWare: DwEmacSnpDxe: Add DesignWare EMAC driverOoi Tzy Way
Add driver support for the Ethernet MAC based on Synopsys DesignWare 3504-0 Universal 10/100/1000 Ethernet MAC and KSZ9031 PHY Cc: Ard BieSheuvel <ard.biesheuvel@linaro.org> Cc: Leif Lindholm <leif.lindholm@linaro.org> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Loh Tien Hock <tien.hock.loh@intel.com> Signed-off-by: Ooi Tzy Way <tzy.way.ooi@intel.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2019-07-17ClevoOpenBoardPkg: Added NVMe boot supportAgyeman, Prince
Added NVMe dxe driver to enable N1xxWU platforms boot from NVMe Cc: Liming Gao <liming.gao@intel.com> Cc: Ankit Sinha <ankit.sinha@intel.com> Cc: Michael Kubacki <michael.a.kubacki@intel.com> Cc: Nate DeSimone <nathaniel.l.desimone@intel.com> Cc: Chasel Chiu <chasel.chiu@intel.com> Signed-off-by: Agyeman <prince.agyeman@intel.com> Reviewed-by: Chasel Chiu <chasel.chiu@intel.com> Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
2019-07-12Vlv2TbltDevicePkg: Update Readme.md for multiple reposMichael D Kinney
Update Readme.md with instructions to clone content from the edk2, edk2-platforms, and edk2-non-osi repositories and build Vlv2TbltDevicePkg for Windows and Linux. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Gary Lin <glin@suse.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com>
2019-07-12Vlv2TbltDevicePkg: Only build capsules for X64Michael D Kinney
Only build capsules for X64 builds. More changes are required to build IA32 capsules. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Gary Lin <glin@suse.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com>
2019-07-12Vlv2TbltDevicePkg: Clean up all build scriptsMichael D Kinney
* Remove cln.sh * Remove unused PlatformDefintions.h file * Remove unused defines from DSC files * Make Windows and Linux script more consistent * Remove unused options from Windows/Linux scripts * Remove unused defines from Windows/Linux scripts * Do not modify Target.txt in Conf directory. Instead, pass all build flags on the command line * Generate build report in the build output directory * Generate build logs in the build output directory * Do not delete files from Conf directory * Update clean operation to only clean one platform target * Do not generate AutoPlatformCFG.txt file anymore Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Gary Lin <glin@suse.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com>
2019-07-12Vlv2DeviceRefCodePlg/AcpiTablesPCAT: Fix ASL errorMichael D Kinney
Remove use of a method to read a register from a BAR and instead access the register directly. Resolves the following error from the latest iasl compiler. Or(ShiftLeft(Derefof(Index(CDCT, \_SB.PCI0.GFX0.MCHK.DCFE)), 21),PARM, PARM) Error 6163 - Object is created temporarily in another method and cannot be accessed ^ (\_SB.PCI0.GFX0.MCHK.DCFE) Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Gary Lin <glin@suse.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com>
2019-07-12Vlv2TbltDevicePkg: Reorganize the librariesGary Lin
* Simplify the logic of importing TpmMeasurementLib * Import BaseCryptLib, OpensslLib, and IntrinsicLib unconditionally since FmpDxe needs them * Import FileExplorerLib unconditionally since UiApp needs it * Update the import of TPM/TCG libraries Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg: Import TlsLib for HTTPS BootGary Lin
When setting NETWORK_TLS_ENABLE to TRUE, we need TlsLib. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Rebecca Cran <rebecca@bsdio.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg: Add GCC IA32 build supportMichael D Kinney
* Remove CpuIa32Lib that contains inline assembly that is not compatible with GCC builds. Use BaseLib functions for CPUID and MSR access and the CPUID and MSR defintions from the UefiCpuPkg. * Add PlatformPkgGccIa32.dsc * Add /IA32 flag to Build_IFWI.sh * Add /IA32 flag to bld_vlv.sh * Remove unused references to gEfiPlatformCpuInfoGuid Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Gary Lin <glin@suse.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com>
2019-07-12Vlv2TbltDevicePkg: Re-enable BIOS ID featureMichael D Kinney
Add back BIOSID feature using GenBiosId.py script and BiosIdLib from the BoardModulePkg. Remove the VLV2 specific BiosIdLib implementation. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Gary Lin <glin@suse.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com>
2019-07-12Vlv2TbltDevicePkg: Remove redundant gEfiSpiProtocolGuidMichael D Kinney
Remove redundant declaration of gEfiSpiProtocolGuid. This protocol is defined in Vlv2DeviceRefCodePkg. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Gary Lin <glin@suse.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com>
2019-07-12Vlv2DeviceRefCodePkg: Remove redundant gEfiSpiProtocolGuidMichael D Kinney
Remove redundant declaration of gEfiSpiProtocolGuid Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Gary Lin <glin@suse.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com>
2019-07-12Vlv2TbltDevicePkg/Build_IFWI.sh: Check the WORKSPACE env variableGary Lin
Check WORKSPACE before running the script and notify the user to export the variable if the variable doesn't exist Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlvt2TbltDevicePkg: Fix NULL pointer access in SmbiosMiscDxeMichael D Kinney
Handle case where no Simple Network Protocols are found. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Gary Lin <glin@suse.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com>
2019-07-12Vlv2TbltDevicePkg: Update Linux build scriptsMichael D Kinney
* Do not change WORKSPACE env var. Assume it is set before running script. * Access Conf dir relative to WORKSPACE * Run Build_IFWI.sh from the Vlv2Tbl2DevicePkg dir * run bld_vlv.sh from same dir as Build_IFWI.sh Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Gary Lin <glin@suse.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com>
2019-07-12Vlv2TbltDevicePkg: Import SD/MMC driversGary Lin
Import the SD card/MMC drivers from MdeModulePkg Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg/SmBiosMiscDxe: Fix the indentationGary Lin
Fix the indentation of MiscSystemManufacturerFunction.c to improve the readability. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg/AcpiPlatform: Fix the error from InstallAcpiTableGary Lin
The firmware crashed when installing ACPI tables: ASSERT_EFI_ERROR (Status = Invalid Parameter) ASSERT [AcpiPlatform] edk2-platforms/Platform/Intel/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c(1162): !EFI_ERROR (AcpiStatus) The 'Size' from ReadSection() is not the size of the ACPI table so InstallAcpiTable() returned EFI_INVALID_PARAMETER. Use the 'Length' from the header to avoid the crash. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg/AcpiPlatform: Remove a unused variableGary Lin
TableVersion in AcpiPlatformEntryPoint() is not used anymore. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg/GenerateCapsule: Fix the bash scriptsGary Lin
Adjust the paths to fit the current directory structure Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg/bld_vlv.sh: Create Vlv.ROMGary Lin
The scripts for PlatformCapsuleGcc.dsc need Vlv.ROM. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg/bld_vlv.sh: Fix path to PlatformCapsuleGcc.dscGary Lin
For the gcc build, we should use PlatformCapsuleGcc.dsc instead of PlatformCapsule.dsc. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg/bld_vlv.sh: Remove BiosId.env completelyGary Lin
Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg: Add the missing headers to inf filesGary Lin
Some headers files are not listed in the inf files. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg/bld_vlv.sh: Update the script to fit edk2-platformsGary Lin
https://bugzilla.tianocore.org/show_bug.cgi?id=1599 * Add "set -e" to exit immediately on error * Update the paths to fit the directory changes WORKSPACE +------edk2 (CORE) | +------edk2-platforms | | | +---Platform | | | | | +---Intel | | | | | +---Vlv2TbltDevicePkg (PLATFORM) | | | +---Silicon | | | +---Intel | | | +---Vlv2DeviceRefCodePkg (SILICON) | +------edk2-non-osi | +---Silicon | +---Intel | +---Vlv2SocBinPkg (BINARY) * Sync a part of bld_vlv.sh from the devel-MinnowBoardMax-UDK2017 branch to enable capsule building * Export TARGET and TOOL_CHAIN_TAG so that the GenerateCapsule scripts can use those variables Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg/bld_vlv.sh: Remove ECP completelyGary Lin
Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg/bld_vlv.sh: Update the gcc version detectionGary Lin
Borrow the logic from OvmfPkg/build.sh Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg/bld_vlv.sh: Fix the log nameGary Lin
Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg/Build_IFWI.sh: Change the root directory pathGary Lin
Also make Build_IFWI.sh executable Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg/Build_IFWI.sh: Add "set -e" to exit on errorGary Lin
https://bugzilla.tianocore.org/show_bug.cgi?id=1599 Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Rebecca Cran <rebecca@bsdio.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-10Readme.md: Change way of cloning edk2 repoJian J Wang
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1910 '--recursive' in cloning edk2 repo might cause failure on machine behind firewall. It's not actually necessary for edk2. This patch removed it from git command. A separate command $ git submodule update --init is added to retrieve repo specified via submodule. Cc: Leif Lindholm <leif.lindholm@linaro.org> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Jian J Wang <jian.j.wang@intel.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2019-07-03Platform/ARM: Disable deprecated APIsSami Mujawar
Add DISABLE_NEW_DEPRECATED_INTERFACES macro to the Arm platform build flags to disable the use of deprecated APIs. Signed-off-by: Sami Mujawar <sami.mujawar@arm.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2019-07-03Platform/ARM: Juno: Fix usage of deprecated macrosSami Mujawar
Replaced the use of unsafe/deprecated macros with alternate safe options. Signed-off-by: Sami Mujawar <sami.mujawar@arm.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2019-07-02ClevoOpenBoardPkg: Added OS boot supportAgyeman, Prince
These changes add OS boot support to N1xxWU platforms Test: N1xxWU currently boots to windows 10 Cc: Liming Gao <liming.gao@intel.com> Cc: David Y Wei <david.y.wei@intel.com> Cc: Michael Kubacki <michael.a.kubacki@intel.com> Cc: Nate DeSimone <nathaniel.l.desimone@intel.com> Cc: Chasel Chiu <chasel.chiu@intel.com> Co-authored-by: David Y Wei <david.y.wei@intel.com> Signed-off-by: Prince Agyeman <prince.agyeman@intel.com> Reviewed-by: Ankit Sinha <ankit.sinha@intel.com> Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
2019-07-02Platform/Intel:Change the way of getting the env file contentFan, Zhiju
The env file content can not be retrieved by using the original method, so we change the way to read the content. And we change the env file to original format. This patch is going to fix the issue. Cc: Liming Gao <liming.gao@intel.com> Cc: Bob Feng <bob.c.feng@intel.com> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Leif Lindholm <leif.lindholm@linaro.org> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
2019-07-02Silicon/Tools: Replace white spaces with tabs in GNUmakefileShenglei Zhang
The tools can't be complied successfully because of the white spaces in GNUmakefile. So replace them with tabs. Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
2019-07-02QuarkPlatformPkg: Remove Intel Framework dependenciesKinney, Michael D
* Add platform version of DataHubRecords.h to support creation of SMBIOS records. * Remove use of gEfiAcpiS3SaveProtocolGuid and EFI_ACPI_S3_SAVE_PROTOCOL * Add platform specific PcdBootState PCD * Remove unused AcpiS3SaveDxe module from IntelFramworkModulePkg * Remove unused FwVolDxe module from IntelFramworkModulePkg * Remove unused UpdateDriverDxe module from IntelFramworkModulePkg * Remove Quark specific boot script executor. Use MdeModulePkg one instead. * Update DebugLib mapping for DXE_RUNTIME_DRIVER modules to runtime safe DxeRuntimeDebugLibSerialPort. * Replace PcdS3AcpiReservedMemorySize from IntelFrameworkModulePkg with new PcdS3AcpiReservedMemorySize in QuarkPlatformPkg. * Add CpuS3DataDxe module to DSC/FDF * Remove unused includes and GUIDs from Intel Framework packages. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Cc: Kelly Steele <kelly.steele@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-02QuarkSocPkg: Remove Intel Framework dependenciesKinney, Michael D
* Add SMRAM Memory Reserve GUID to QuarkSocPkg * Add SMM ICHN Dispatch Protocol to QuarkSocPkg Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Cc: Kelly Steele <kelly.steele@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-02QuarkPkatformPkg: Update MemoryTypeInformation to reduce rebootsMichael D Kinney
Adjust size of bins in Memory Type Information HOB to eliminate extra reboot after first boot. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Cc: Kelly Steele <kelly.steele@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-02QuarkPlatformPkg: Update network library mappingsMichael D Kinney
Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Cc: Kelly Steele <kelly.steele@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-01Vlv2TbltDevicePkg/PlatformInitPei: Update MemoryTypeInformationMichael D Kinney
Reduce extra reboots when UEFI Shell is run followed by an OS boot. The extra reboot is due to use of EfiLoaderCode that exceeds the MemoryTypeInformation bin size. EfiLoaderCode should not be tracked. Remove all memory types that should not be tracked, and update the remaining bin sizes based on observed memory usage on an X64 DEBUG profile. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-By: Zailiang Sun <zailiang.sun@intel.com>
2019-07-01Vlv2TbltDevicePkg: Change to PI Spec ACPI Table ProtocolMichael D Kinney
Remove use of ACPI Support Protocol from IntelFrameworkPkg and use the ACPI Table Protocol and ACPI SDT Protocol from the MdePkg. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-By: Zailiang Sun <zailiang.sun@intel.com>
2019-07-01Vlv2TbltDevicePkg/PlatformSmm: Switch to PI SMM ProtocolsMichael D Kinney
Change use of Intel Framework SMM Protocols to PI SMM Protocols. This removes Intel Framework dependencies. The PI SMM Protocols added are: * gEfiSmmPowerButtonDispatch2ProtocolGuid * gEfiSmmSxDispatch2ProtocolGuid * gEfiSmmSwDispatch2ProtocolGuid Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-By: Zailiang Sun <zailiang.sun@intel.com>
2019-07-01Vlv2TbltDevicePkg: Update boot mode/state behaviorsMichael D Kinney
* Add platform specific PcdBootState PCD to remove Intel Framework dependency * Set PcdUserPhysicalPresence to TRUE to Enable UEFI Secure Boot Setup Menus * Remove unused code when NOCS_S3_SUPPORT is not set * Update PlatformBootManagerLib to not perform a connect all when FastBoot is enabled. * Add support for BOOT_ON_FLASH_UPDATE * Remove logic in CheckSystemConfigSave() that was generating an ASSERT() when setup changes were saved. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-By: Zailiang Sun <zailiang.sun@intel.com>
2019-07-01Vlv2TbltDevicePkg: Switch to MdeModulePkg BdsDxeMichael D Kinney
Switch from Intel Framework BDS module and libraries to the MdeModulePkg BdsDxe module and libraries. Update FLASH map for full 8MB FLASH size Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-By: Zailiang Sun <zailiang.sun@intel.com>