Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing pipeline for Host Unittest #193

Open
wants to merge 387 commits into
base: edk2-ci
Choose a base branch
from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Nov 22, 2019

  1. Mostly through documentation. Progress checkpoint.

    Bret Barkelew committed Nov 22, 2019
    Configuration menu
    Copy the full SHA
    d24b066 View commit details
    Browse the repository at this point in the history
  2. Finish the documentation.

    Bret Barkelew committed Nov 22, 2019
    Configuration menu
    Copy the full SHA
    19fbb7b View commit details
    Browse the repository at this point in the history
  3. TEMP: Workaround edk2toolext problem.

    Bret Barkelew committed Nov 22, 2019
    Configuration menu
    Copy the full SHA
    9749008 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2019

  1. BaseTools:fix regression issue for platform .map file

    BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=2363
    
    This patch is to fix a build tool regression issue which was introduced
    by commit b8ac0b7.This issue caused map file lost the line of IMAGE=***.
    For example,in Ovmf.map, there is no line of (IMAGE=<path to efi> ) under
    each of modules item.
    
    The path to the efi file generated by each module is written on this line
    The purpose of this line is add the debug image full path.
    there is no information about the module in the map file other than FVName,
    it allows us to quickly know which module this part corresponds to.
    
    In commit b8ac0b7,add a line ("self.BuildModules = []") in function,
    but it's used to calculate the variable ModuleList in the following code.
    
    Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com>
    
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Bob Feng <bob.c.feng@intel.com>
    Reviewed-by: Bob Feng <bob.c.feng@intel.com>
    zhijufan authored and mergify[bot] committed Nov 25, 2019
    Configuration menu
    Copy the full SHA
    e0f8261 View commit details
    Browse the repository at this point in the history
  2. StandaloneMmPkg: Fix build failure - Bug 2253

    The StandaloneMmPkg currently has code for supporting
    Arm architecture only. Support for X64 and IA32 is
    currently under development on a separate branch.
    
    However, StandaloneMmPkg/StandaloneMmPkg.dsc is
    indicating that support for X64 and IA32 is
    available which is causing build failures.
    This has been reported in
    https://bugzilla.tianocore.org/show_bug.cgi?id=2253
    
    This issue has been discussed earlier on the list:
    (1) https://edk2.groups.io/g/devel/message/47276
    
    (2) https://edk2.groups.io/g/devel/message/47283
    
    In light of the above, this patch removes IA32 and X64
    from SUPPORTED_ARCHITECTURES, until support for the
    respective architectures is merged into StandaloneMmPkg.
    
    Cc: Achin Gupta <achin.gupta@arm.com>
    Cc: Jiewen Yao <jiewen.yao@intel.com>
    Cc: Supreeth Venkatesh <supreeth.venkatesh@arm.com>
    Cc: Laszlo Ersek <lersek@redhat.com>
    Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
    Reviewed-by: Laszlo Ersek <lersek@redhat.com>
    Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
    samimujawar authored and mergify[bot] committed Nov 25, 2019
    Configuration menu
    Copy the full SHA
    290a485 View commit details
    Browse the repository at this point in the history
  3. MdeModulePkg/Variable: Initialize local variable "Variable"

    REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2364
    
    Fixes a new build warning in VS2012 introduced in f8ff4cc.
    
    This patch initializes the local variable "Variable" in
    VariableServiceGetNextVariableInternal ().
    
    This ensures the pointers in the structure are initialized
    in the case no variable stores exist in the list of variable
    stores.
    
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Michael D Kinney <michael.d.kinney@intel.com>
    Cc: Jian J Wang <jian.j.wang@intel.com>
    Cc: Hao A Wu <hao.a.wu@intel.com>
    Signed-off-by: Michael Kubacki <michael.a.kubacki@intel.com>
    Reviewed-by: Liming Gao <liming.gao@intel.com>
    Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
    Kubacki, Michael A authored and mergify[bot] committed Nov 25, 2019
    Configuration menu
    Copy the full SHA
    bbb5b0d View commit details
    Browse the repository at this point in the history
  4. MdeModulePkg/Variable: Initialize local variable "RtPtrTrack"

    REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2364
    
    Fixes a new build warning in VS2012 introduced in f8ff4cc.
    
    This patch initializes the local variable "RtPtrTrack" in
    FindVariableInRuntimeCache ().
    
    This ensures the pointers in the structure are initialized
    in the case no variable stores exist in the list of variable
    stores.
    
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Michael D Kinney <michael.d.kinney@intel.com>
    Cc: Jian J Wang <jian.j.wang@intel.com>
    Cc: Hao A Wu <hao.a.wu@intel.com>
    Signed-off-by: Michael Kubacki <michael.a.kubacki@intel.com>
    Reviewed-by: Liming Gao <liming.gao@intel.com>
    Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
    Kubacki, Michael A authored and mergify[bot] committed Nov 25, 2019
    Configuration menu
    Copy the full SHA
    bd85bf5 View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2019

  1. MdeModulePkg/VariableSmmRuntimeDxe.inf: list local header "Variable.h"

    Commit aab3b9b ("MdeModulePkg/Variable: Add RT GetVariable() cache
    support", 2019-11-05) added "VariableParsing.h" to
    "VariableSmmRuntimeDxe.inf".
    
    "VariableParsing.h" includes "Variable.h", so the "build" utility is right
    to warn us that "Variable.h" should be listed in [Sources] too.
    
    Cc: Hao A Wu <hao.a.wu@intel.com>
    Cc: Jian J Wang <jian.j.wang@intel.com>
    Cc: Leif Lindholm <leif.lindholm@linaro.org>
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Michael Kubacki <michael.a.kubacki@intel.com>
    Fixes: aab3b9b
    Signed-off-by: Laszlo Ersek <lersek@redhat.com>
    Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
    Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
    lersek authored and mergify[bot] committed Dec 2, 2019
    Configuration menu
    Copy the full SHA
    fe6142f View commit details
    Browse the repository at this point in the history
  2. CryptoPkg/OpensslLib: improve INF file consistency

    When diffing "OpensslLib.inf" against "OpensslLibCrypto.inf", the *only*
    differences should be:
    
    - BASE_NAME, MODULE_UNI_FILE, and FILE_GUID are expected to differ, in
      [Defines];
    
    - "OpensslLib.inf" is expected to list "$(OPENSSL_PATH)/ssl/..." source
      files in the auto-generated part of the [Sources] section.
    
    Commit 8906f07 ("CryptoPkg/OpensslLib: Add missing header files in
    INF file", 2019-08-16) broke that invariant, by adding "buildinf.h" and
    "rand_pool_noise.h" in different order to both INF files.
    
    Fix that order in "OpensslLib.inf" now. (Note that this does not
    re-establish full consistency between both INF files -- it just highlights
    another problem, which we'll fix in the next patch.)
    
    Cc: Jian J Wang <jian.j.wang@intel.com>
    Cc: Leif Lindholm <leif.lindholm@linaro.org>
    Cc: Shenglei Zhang <shenglei.zhang@intel.com>
    Cc: Xiaoyu Lu <xiaoyux.lu@intel.com>
    Fixes: 8906f07
    Signed-off-by: Laszlo Ersek <lersek@redhat.com>
    Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
    Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
    lersek authored and mergify[bot] committed Dec 2, 2019
    Configuration menu
    Copy the full SHA
    b49a6c8 View commit details
    Browse the repository at this point in the history
  3. CryptoPkg/OpensslLib.inf: list OpenSSL local header "ms/uplink.h"

    Commit 8906f07 ("CryptoPkg/OpensslLib: Add missing header files in
    INF file", 2019-08-16) incorrectly placed "ms/uplink.h" in the
    auto-generated part of [Sources], in "OpensslLib.inf".
    
    ("ms/uplink.h" was added in the right spot in "OpensslLibCrypto.inf".)
    
    Subsequently, when commit 9f4fbd5 ("CryptoPkg/OpensslLib: Update
    process_files.pl to generate .h files", 2019-10-30) re-generated that part
    of "OpensslLib.inf", the "ms/uplink.h" file reference was lost. This
    triggers a warning from the "build" utility now.
    
    Name the header file in the right spot in [Sources].
    
    This change makes "OpensslLib.inf" consistent with "OpensslLibCrypto.inf".
    
    Cc: Jian J Wang <jian.j.wang@intel.com>
    Cc: Leif Lindholm <leif.lindholm@linaro.org>
    Cc: Shenglei Zhang <shenglei.zhang@intel.com>
    Cc: Xiaoyu Lu <xiaoyux.lu@intel.com>
    Fixes: 8906f07
    Signed-off-by: Laszlo Ersek <lersek@redhat.com>
    Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
    Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
    lersek authored and mergify[bot] committed Dec 2, 2019
    Configuration menu
    Copy the full SHA
    4d613fe View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2019

  1. NetworkPkg: Fixes to static code analysis hits

    Introducing fixes to memory leak issues identified by static code analysis
    tool.
    
    Cc: Jiaxin Wu <jiaxin.wu@intel.com>
    Cc: Siyuan Fu <siyuan.fu@intel.com>
    Signed-off-by: Maciej Rabeda <maciej.rabeda@linux.intel.com>
    Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Reviewed-by: Siyuan Fu <siyuan.fu@intel.com>
    Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
    Maciej Rabeda authored and mergify[bot] committed Dec 4, 2019
    Configuration menu
    Copy the full SHA
    4f47eaf View commit details
    Browse the repository at this point in the history
  2. MdeModulePkg/MdeModulePkg.uni: Add missing strings for PCD

    Cc: Jian J Wang <jian.j.wang@intel.com>
    Cc: Hao A Wu <hao.a.wu@intel.com>
    Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
    Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
    shenglei10 authored and mergify[bot] committed Dec 4, 2019
    Configuration menu
    Copy the full SHA
    46f6752 View commit details
    Browse the repository at this point in the history
  3. NetworkPkg/NetworkPkg.uni: Add missing strings for PCD

    Cc: Jiaxin Wu <jiaxin.wu@intel.com>
    Cc: Siyuan Fu <siyuan.fu@intel.com>
    Cc: Maciej Rabeda <maciej.rabeda@intel.com>
    Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
    Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
    shenglei10 authored and mergify[bot] committed Dec 4, 2019
    Configuration menu
    Copy the full SHA
    0844a16 View commit details
    Browse the repository at this point in the history
  4. UefiCpuPkg/UefiCpuPkg.uni: Add missing strings for PCD

    Cc: Eric Dong <eric.dong@intel.com>
    Cc: Ray Ni <ray.ni@intel.com>
    Cc: Laszlo Ersek <lersek@redhat.com>
    Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
    Reviewed-by: Eric Dong <eric.dong@intel.com>
    shenglei10 authored and mergify[bot] committed Dec 4, 2019
    Configuration menu
    Copy the full SHA
    0a58c9a View commit details
    Browse the repository at this point in the history
  5. UefiCpuPkg: Update the coding styles

    In MpLib.c, remove the white space on a new line.
    In PageTbl.c and PiSmmCpuDxeSmm.h, update the comment style.
    
    Cc: Eric Dong <eric.dong@intel.com>
    Cc: Ray Ni <ray.ni@intel.com>
    Cc: Laszlo Ersek <lersek@redhat.com>
    Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
    Reviewed-by: Eric Dong <eric.dong@intel.com>
    Reviewed-by: Laszlo Ersek <lersek@redhat.com>
    shenglei10 authored and mergify[bot] committed Dec 4, 2019
    Configuration menu
    Copy the full SHA
    9c33f16 View commit details
    Browse the repository at this point in the history
  6. BaseTools:Enhance the way to handling included dsc file

    BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=2400
    
    In Dsc Parser, included dsc file is parsed always no matter
    if its condition is False
    
      gUefiOvmfPkgTokenSpaceGuid.test1|FALSE
    !if gUefiOvmfPkgTokenSpaceGuid.test1 == FALSE
      !include OvmfPkg/test1.dsc
    !else
      !include OvmfPkg/test2.dsc
    !endif
    
    The patch avoids processing redundant dsc files and improves
    the way Tool handles them.
    
    In the above case, since the conditional result is FALSE,
    "test2.dsc" is not parsed.
    
    Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com>
    
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Bob Feng <bob.c.feng@intel.com>
    Reviewed-by: Bob Feng <bob.c.feng@intel.com>
    zhijufan authored and mergify[bot] committed Dec 4, 2019
    Configuration menu
    Copy the full SHA
    c8ff8e0 View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2019

  1. MdeModulePkg: LzmaCustomDecompressLib.inf don't support EBC anymore

    After unifying the definition of size_t, EBC compiler has failure.
    So don't compile this inf file for EBC
    
    REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2398
    
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Jian J Wang <jian.j.wang@intel.com>
    Cc: Hao A Wu <hao.a.wu@intel.com>
    Cc: Leif Lindholm <leif.lindholm@linaro.org>
    Cc: Philippe Mathieu-Daude <philmd@redhat.com>
    Reviewed-by: Liming Gao <liming.gao@intel.com>
    Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
    LiuZhiguang001 authored and mergify[bot] committed Dec 5, 2019
    Configuration menu
    Copy the full SHA
    6cc63ae View commit details
    Browse the repository at this point in the history
  2. MdeModulePkg: Add ARM/Aarch64 support which were missing

    REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2382
    
    Add ARM/Aarch64 which were missing to VALID_ARCHITECTURES
     in LzmaCustomDecompressLib.inf
    
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Jian J Wang <jian.j.wang@intel.com>
    Cc: Hao A Wu <hao.a.wu@intel.com>
    Cc: Leif Lindholm <leif.lindholm@linaro.org>
    Reviewed-by: Liming Gao <liming.gao@intel.com>
    Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
    
    Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
    LiuZhiguang001 authored and mergify[bot] committed Dec 5, 2019
    Configuration menu
    Copy the full SHA
    c9416ef View commit details
    Browse the repository at this point in the history
  3. ShellPkg: acpiview: Add support for parsing FACS

    Add support for parsing the ACPI FACS table.
    
    The FADT parser has also been updated as it
    links the FACS table using the FIRMWARE_CTRL
    or X_FIRMWARE_CTRL fields.
    
    Since the FACS table does not follow the standard
    ACPI header, the FADT parser extracts the FACS
    signature, length and version fields before invoking
    the FACS parser.
    
    Cc: Ray Ni <ray.ni@intel.com>
    Cc: Zhichao Gao <zhichao.gao@intel.com>
    Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
    Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
    samimujawar authored and mergify[bot] committed Dec 5, 2019
    Configuration menu
    Copy the full SHA
    d5cf0fb View commit details
    Browse the repository at this point in the history
  4. ShellPkg: acpiview: IORT Spec Rev D updates

    Updated IORT parser to conform to the IO Remapping
    Table, Platform Design Document, Revision D, March 2018.
    
    The following structure parsers have been updated:
      1. SMMUv3 - added proximity domain and device Id
                  mapping index.
      2. RootComplex - added memory address size limit.
      2. PMCG - added page 1 support.
    
    Cc: Ray Ni <ray.ni@intel.com>
    Cc: Zhichao Gao <zhichao.gao@intel.com>
    Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
    Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
    samimujawar authored and mergify[bot] committed Dec 5, 2019
    Configuration menu
    Copy the full SHA
    965dbf9 View commit details
    Browse the repository at this point in the history
  5. ShellPkg/edit: typo "%d Lines Wrote"

    REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2379
    
    When a file is saved in the edit command a status message L"%d Lines Wrote"
    is displayed. The hexedit command suffers from the same typo.
    
    Change the message to L"%d Lines Written".
    
    Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
    Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
    xypron authored and mergify[bot] committed Dec 5, 2019
    Configuration menu
    Copy the full SHA
    2926498 View commit details
    Browse the repository at this point in the history
  6. ShellPkg/UefiHandleParsingLib: Fix error allocate pool

    REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1965
    
    For function InsertNewGuidNameMapping, it rellocate the
    mGuidList with new size
    "mGuidListCount+1 * sizeof(GUID_INFO_BLOCK)". That isn't
    its purpose and would cause a overflow operation in
    "mGuidList[mGuidListCount - 1].xxx = xxx". Its purpose
    is to increase 1 block size of mGuidList. Change it to
    "(mGuidListCount + 1) * sizeof (GUID_INFO_BLOCK)".
    
    Adjust the coding style of this function.
    
    Cc: Jaben Carsey <jaben.carsey@intel.com>
    Cc: Ray Ni <ray.ni@intel.com>
    Cc: Andrew Fish <afish@apple.com>
    Reviewed-by: Ray Ni <ray.ni@intel.com>
    Signed-off-by: Zhichao Gao <zhichao.gao@intel.com>
    ZhichaoGao authored and mergify[bot] committed Dec 5, 2019
    Configuration menu
    Copy the full SHA
    94d4efb View commit details
    Browse the repository at this point in the history
  7. ArmPkg: Dispatch deferred images after EndOfDxe

    Third party driver images loaded from Option ROM get queued
    for execution after EndOfDxe. These queued images need to be
    dispatched from the PlatformBootManagerLib.
    
    Since the queued images were not dispatched, the PCI Option
    ROM drivers were not getting loaded on Juno. Therefore,
    add call to EfiBootManagerDispatchDeferredImages() for
    dispatching deferred images from PlatformBootManagerLib.
    
    Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
    Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
    samimujawar authored and mergify[bot] committed Dec 5, 2019
    Configuration menu
    Copy the full SHA
    0f9395d View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2019

  1. .pytool: Avoid "is" with a literal Python 3.8 warnings in CI plugins

    REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2304
    
    To avoid SyntaxWarning with Python 3.8, change the 'is' operator
    by the conventional '==' comparator.
    
    Cc: Sean Brogan <sean.brogan@microsoft.com>
    Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
    Cc: Michael D Kinney <michael.d.kinney@intel.com>
    Cc: Liming Gao <liming.gao@intel.com>
    Reviewed-by: Bob Feng <bob.c.feng@intel.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    philmd authored and mergify[bot] committed Dec 6, 2019
    Configuration menu
    Copy the full SHA
    e8b9296 View commit details
    Browse the repository at this point in the history
  2. BaseTools: Avoid "is" with a literal Python 3.8 warnings

    REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2304
    
    The following statement produces a SyntaxWarning with Python 3.8:
    
      if str(FdRegion.RegionType) is 'FILE' and self.Platform.VpdToolGuid in \
        str(FdRegion.RegionDataList):
      BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py:168: SyntaxWarning: \
        "is" with a literal. Did you mean "=="?
    
    Change the 'is' operator by the conventional '==' comparator.
    
    Cc: Bob Feng <bob.c.feng@intel.com>
    Cc: Liming Gao <liming.gao@intel.com>
    Reviewed-by: Bob Feng <bob.c.feng@intel.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    philmd authored and mergify[bot] committed Dec 6, 2019
    Configuration menu
    Copy the full SHA
    490a62b View commit details
    Browse the repository at this point in the history
  3. UefiCpuPkg/PiSmmCpuDxeSmm: Avoid allocate Token every time

    REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2388
    
    Token is new introduced by MM MP Protocol. Current logic allocate Token
    every time when need to use it. The logic caused SMI latency raised to
    very high. Update logic to allocate Token buffer at driver's entry point.
    Later use the token from the allocated token buffer. Only when all the
    buffer have been used, then need to allocate new buffer.
    
    Reviewed-by: Ray Ni <ray.ni@intel.com>
    Signed-off-by: Eric Dong <eric.dong@intel.com>
    Acked-by: Laszlo Ersek <lersek@redhat.com>
    ydong10 authored and mergify[bot] committed Dec 6, 2019
    Configuration menu
    Copy the full SHA
    9caaa79 View commit details
    Browse the repository at this point in the history
  4. EmbeddedPkg/NonCoherentDmaLib: implement support for DMA range limits

    Implement support for driving peripherals with limited DMA ranges to
    NonCoherentDmaLib, by adding a device address limit, and taking it,
    along with the device offset, into account when allocating or mapping
    DMA buffers.
    
    Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
    Tested-by: Pete Batard <pete@akeo.ie>
    Acked-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Acked-by: Leif Lindholm <leif.lindholm@linaro.org>
    Ard Biesheuvel authored and mergify[bot] committed Dec 6, 2019
    Configuration menu
    Copy the full SHA
    62a7565 View commit details
    Browse the repository at this point in the history
  5. EmbeddedPkg: implement EDK2 IoMmu protocol wrapping DmaLib

    Implement a version of the EDK2 IoMmu protocol that is a simple wrapper
    around DmaLib. This is intended to be used to wrap NonCoherentDmaLib so
    that the generic PCI infrastructure can be used to implement support for
    non cache-coherent DMA.
    
    Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
    Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
    Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Tested-by: Pete Batard <pete@akeo.ie>
    Ard Biesheuvel authored and mergify[bot] committed Dec 6, 2019
    Configuration menu
    Copy the full SHA
    49054b6 View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2019

  1. Maintainers: assume co-maintainership of StandaloneMmPkg

    Achin has indicated that he no longer has the bandwidth available to
    co-maintain StandaloneMmPkg, and has asked Sami and me to step in.
    
    Reviewed-by: Laszlo Ersek <lersek@redhat.com>
    Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
    Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
    Reviewed-by: Jiewen Yao <Jiewen.Yao@intel.com>
    Reviewed-by: Achin Gupta <achin.gupta@arm.com>
    Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
    Ard Biesheuvel authored and mergify[bot] committed Dec 9, 2019
    Configuration menu
    Copy the full SHA
    804666c View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2019

  1. BaseTools: Add build option for dependency file generation

    BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2311
    
    Add /showIncludes for msvc and -MMD -MF $@.deps
    for GCC and CLANG
    
    Remove /MP for msvc since /MP does not work with
    /showIncludes
    
    Signed-off-by: Bob Feng <bob.c.feng@intel.com>
    
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Steven Shi <steven.shi@intel.com>
    Cc: Michael D Kinney <michael.d.kinney@intel.com>
    Reviewed-by: Liming Gao <liming.gao@intel.com>
    BobCF authored and mergify[bot] committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    13c5e34 View commit details
    Browse the repository at this point in the history
  2. BaseTools: Generate dependent files for ASL and ASM files

    BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2311
    
    Implement the function in Trim tool to get the included
    file list for ASL and ASM file.
    
    Signed-off-by: Bob Feng <bob.c.feng@intel.com>
    
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Steven Shi <steven.shi@intel.com>
    Reviewed-by: Liming Gao <liming.gao@intel.com>
    BobCF authored and mergify[bot] committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    e6edbe3 View commit details
    Browse the repository at this point in the history
  3. BaseTools: Update build_rule.txt to generate dependent files.

    BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2311
    
    Enable the dependent files generation function for compilers
    and Trim tool.
    
    Signed-off-by: Bob Feng <bob.c.feng@intel.com>
    
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Steven Shi <steven.shi@intel.com>
    Reviewed-by: Liming Gao <liming.gao@intel.com>
    BobCF authored and mergify[bot] committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    cb27781 View commit details
    Browse the repository at this point in the history
  4. BaseTools: Enhance Basetool for incremental build

    BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2311
    
    Include dependency file in Makefile to enhance
    incremental build
    
    Signed-off-by: Bob Feng <bob.c.feng@intel.com>
    
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Steven Shi <steven.shi@intel.com>
    Reviewed-by: Liming Gao <liming.gao@intel.com>
    BobCF authored and mergify[bot] committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    0c3e8e9 View commit details
    Browse the repository at this point in the history
  5. BaseTools: store more complete output files in binary cache

    Binary cache use the OutputFile method to return the module
    built output files needed to store in cache, but current
    OutputFile implementation doesn't return complete output files.
    Enhance the OutputFile method to return more complete output files.
    
    Signed-off-by: Steven Shi <steven.shi@intel.com>
    
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Bob Feng <bob.c.feng@intel.com>
    Reviewed-by: Bob Feng <bob.c.feng@intel.com>
    shijunjing authored and mergify[bot] committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    91f6c53 View commit details
    Browse the repository at this point in the history
  6. BaseTools: enhance the CacheCopyFile method arg names

    Enhance the CacheCopyFile method arg names to be more
    clear and readable
    
    Signed-off-by: Steven Shi <steven.shi@intel.com>
    
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Bob Feng <bob.c.feng@intel.com>
    Reviewed-by: Bob Feng <bob.c.feng@intel.com>
    shijunjing authored and mergify[bot] committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    3bfbc91 View commit details
    Browse the repository at this point in the history
  7. BaseTools: Leverage compiler output to optimize binary cache

    Redesign the binary cache and bases on the compiler to
    output the dependency header files info for every module.
    The binary cache will directly consume the dependency header
    files info and doesn't parse the C source code by iteself.
    Also redesign the dependency files list format for module
    and try to share the common lib hash result as more as
    possible in local process. Remove the unnecessary share data
    access across multiprocessing.
    
    Signed-off-by: Steven Shi <steven.shi@intel.com>
    
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Bob Feng <bob.c.feng@intel.com>
    Reviewed-by: Bob Feng <bob.c.feng@intel.com>
    shijunjing authored and mergify[bot] committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    fc8b8de View commit details
    Browse the repository at this point in the history
  8. BaseTools: Remove redundant binary cache file

    Redesign the binary cache and not need to save the
    cache intermediate result and state in memory as a
    ModuleBuildCacheIR class instance. So remove the
    CacheIR.py which define the ModuleBuildCacheIR class.
    
    Signed-off-by: Steven Shi <steven.shi@intel.com>
    
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Bob Feng <bob.c.feng@intel.com>
    Reviewed-by: Bob Feng <bob.c.feng@intel.com>
    shijunjing authored and mergify[bot] committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    a80032d View commit details
    Browse the repository at this point in the history
  9. SecurityPkg/Tcg2Smm: Measure the table before patch.

    REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1940
    
    According to TCG PFP specification: the ACPI table must be
    measured prior to any modification, and the measurement
    must be same cross every boot cycle.
    
    There is a fix 3a63c17
    for the HID data. However that is not enough.
    The LAML/LASA and PCD configuration change may also cause
    similar problem.
    
    We need measure the table before any update.
    
    Cc: Jian J Wang <jian.j.wang@intel.com>
    Cc: Chao Zhang <chao.b.zhang@intel.com>
    Signed-off-by: Jiewen Yao <Jiewen.Yao@intel.com>
    Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
    jyao1 authored and mergify[bot] committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    7e55cf6 View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2019

  1. IntelFsp2WrapperPkg: Fix various typos

    Fix various typos in comments and documentation.
    
    Cc: Chasel Chiu <chasel.chiu@intel.com>
    Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
    Cc: Star Zeng <star.zeng@intel.com>
    Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
    Reviewed-by: Chasel Chiu <chasel.chiu@intel.com>
    Reviewed-by: Star Zeng <star.zeng@intel.com>
    Coeur authored and mergify[bot] committed Dec 11, 2019
    Configuration menu
    Copy the full SHA
    97eedf5 View commit details
    Browse the repository at this point in the history
  2. MdeModulePkg PeiCore: Fix typos

    Cc: Dandan Bi <dandan.bi@intel.com>
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Jian J Wang <jian.j.wang@intel.com>
    Cc: Hao A Wu <hao.a.wu@intel.com>
    Signed-off-by: Michael Kubacki <michael.a.kubacki@intel.com>
    Reviewed-by: Liming Gao <liming.gao@intel.com>
    Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
    makubacki authored and mergify[bot] committed Dec 11, 2019
    Configuration menu
    Copy the full SHA
    d39d126 View commit details
    Browse the repository at this point in the history
  3. MdeModulePkg PeiCore: Improve comment semantics

    This patch clarifies wording in several PeiCore comments to improve
    reading comprehension.
    
    Cc: Dandan Bi <dandan.bi@intel.com>
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Jian J Wang <jian.j.wang@intel.com>
    Cc: Hao A Wu <hao.a.wu@intel.com>
    Signed-off-by: Michael Kubacki <michael.a.kubacki@intel.com>
    Reviewed-by: Liming Gao <liming.gao@intel.com>
    Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
    makubacki authored and mergify[bot] committed Dec 11, 2019
    Configuration menu
    Copy the full SHA
    d3add11 View commit details
    Browse the repository at this point in the history
  4. ArmPkg/MmCommunicationDxe: relay architected PI events to MM context

    PI defines a few architected events that have significance in the MM
    context as well as in the non-secure DXE context. So register notify
    handlers for these events, and relay them into the standalone MM world.
    
    Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
    Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
    Reviewed-by: Achin Gupta <achin.gupta@arm.com>
    Ard Biesheuvel authored and mergify[bot] committed Dec 11, 2019
    Configuration menu
    Copy the full SHA
    2fe25a7 View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2019

  1. MdePkg/Include: Add DCC and BCM2835 SPCR UART types

    As per the Microsoft Debug Port Table 2 (DBG2) documentation, that
    can be found online, we are missing 2 serial interface types for
    Arm DCC and Bcm2835 (the latter being used with the Raspberry Pi).
    
    These same types are present in DebugPort2Table.h so add them to
    SerialPortConsoleRedirectionTable.h too.
    
    Note that we followed the same idiosyncrasies as DebugPort2Table
    for naming these new macros.
    
    Signed-off-by: Pete Batard <pete@akeo.ie>
    Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
    Reviewed-by: Liming Gao <liming.gao@intel.com>
    pbatard authored and mergify[bot] committed Dec 12, 2019
    Configuration menu
    Copy the full SHA
    bfb141c View commit details
    Browse the repository at this point in the history
  2. Convert all strings from Unicode to ASCII.

    Bret Barkelew committed Dec 12, 2019
    Configuration menu
    Copy the full SHA
    8af0e76 View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2019

  1. Configuration menu
    Copy the full SHA
    d706274 View commit details
    Browse the repository at this point in the history
  2. Remove unnecessary pragmas.

    Bret Barkelew committed Dec 13, 2019
    Configuration menu
    Copy the full SHA
    f88bd23 View commit details
    Browse the repository at this point in the history
  3. Move the UnitTestPkg dependency to HOST-APPLICATION only.

    Bret Barkelew committed Dec 13, 2019
    Configuration menu
    Copy the full SHA
    150b758 View commit details
    Browse the repository at this point in the history
  4. Move all HostLibrary files into the Test directory.

    Bret Barkelew committed Dec 13, 2019
    Configuration menu
    Copy the full SHA
    58297b6 View commit details
    Browse the repository at this point in the history
  5. Move the Test DSC into the Test directory.

    Bret Barkelew committed Dec 13, 2019
    Configuration menu
    Copy the full SHA
    74913ff View commit details
    Browse the repository at this point in the history
  6. Drop extraneous package name strings. Can be assembled in the report …

    …lib, if wanted.
    Bret Barkelew committed Dec 13, 2019
    Configuration menu
    Copy the full SHA
    40bf9d3 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2019

  1. Change all Fws into Frameworks.

    Bret Barkelew committed Dec 14, 2019
    Configuration menu
    Copy the full SHA
    66aac12 View commit details
    Browse the repository at this point in the history
  2. Changes to build on GCC.

    Bret Barkelew committed Dec 14, 2019
    Configuration menu
    Copy the full SHA
    b4a8a27 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7f752fc View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2019

  1. BaseTools: Fix build failure when multiple build targets given

    BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2371
    
    This patch is to fix a regression issue that build fails
    if multiple build targets given.
    
    Two changes cause this regression issue.
    One is AutoGen object __hash__ function only
    hash file path and arch, missing ToolChain and build target.
    
    The other is changing the multiple-thread-genfds function as default
    build behavior. To generate the genffs command to Makefile, there
    is a global data set is used, GenFdsGlobalVariable, which cause build
    tool use the data of first build-target build in
    the second build-target build.
    
    Signed-off-by: Bob Feng <bob.c.feng@intel.com>
    
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Steven Shi <steven.shi@intel.com>
    Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
    Reviewed-by: Liming Gao <liming.gao@intel.com>
    BobCF authored and mergify[bot] committed Dec 18, 2019
    Configuration menu
    Copy the full SHA
    78fb6b0 View commit details
    Browse the repository at this point in the history
  2. BaseTools:replaces the two offending quotes by ascii quotes

    BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=2423
    
    That commit 13c5e34 introduces the first two UTF-8
    characters (the quote ') in an otherwise all-ascii file.
    
    In Conf\tools_def.template
    There is tow lines of
      Notes: Since this tool chain is obsolete, it doesn't enable
      the compiler option for included header file list generation,
    
    we replaces the two offending quotes by proper ascii quotes
    The patch is going to fix this issue
    
    Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com>
    
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Bob Feng <bob.c.feng@intel.com>
    Reviewed-by: Bob Feng <bob.c.feng@intel.com>
    zhijufan authored and mergify[bot] committed Dec 18, 2019
    Configuration menu
    Copy the full SHA
    69ebe82 View commit details
    Browse the repository at this point in the history
  3. Maintainers.txt: Update email address and role

    Created new email account that will not append legal disclaimers to
    my responses/patches.
    
    Switching to NetworkPkg maintainer.
    
    Cc: Jiaxin Wu <jiaxin.wu@intel.com>
    Cc: Siyuan Fu <siyuan.fu@intel.com>
    Signed-off-by: Maciej Rabeda <maciej.rabeda@linux.intel.com>
    Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
    Maciej Rabeda authored and mergify[bot] committed Dec 18, 2019
    Configuration menu
    Copy the full SHA
    c5d6a57 View commit details
    Browse the repository at this point in the history
  4. BaseTools: Resolve a issue of Incremental build

    BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2311
    
    In patch set 13c5e34 - 0c3e8e9, we implemented incremental build with
    using compiler/pre-processor generate dependent header file function.
    
    A issue is found for MSVC compiler, that the cl.exe /showIncludes
    build option generate header file list to either stdout or stderr.
    For .c file, the header file list is print out to stdout while for
    .vfr, .aslc and .nasm file, the file list is print out to stderr.
    
    The build tool use two threads to process the message from stdout and
    stderr, but to generate correct *.deps file, build tool need to
    combine the header file list from stderr and other messages from stdout
    together with correct time sequence order.
    
    So this patch is trying to combine the stdout and stderr together for
    the process which is for calling make program.
    
    The impact of this patch is that the output message of build with -q
    will be changed. The compiler error message will not print out.
    The build behavior of other log level setting will not be impacted.
    
    Signed-off-by: Bob Feng <bob.c.feng@intel.com>
    
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Steven Shi <steven.shi@intel.com>
    Cc: Michael D Kinney <michael.d.kinney@intel.com>
    Reviewed-by: Liming Gao <liming.gao@intel.com>
    BobCF authored and mergify[bot] committed Dec 18, 2019
    Configuration menu
    Copy the full SHA
    01b6090 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d2e70c3 View commit details
    Browse the repository at this point in the history
  6. Prepare for the big move.

    Bret Barkelew committed Dec 18, 2019
    Configuration menu
    Copy the full SHA
    233bf98 View commit details
    Browse the repository at this point in the history
  7. Add Cmocka as a submodule.

    Bret Barkelew committed Dec 18, 2019
    Configuration menu
    Copy the full SHA
    1c70c99 View commit details
    Browse the repository at this point in the history
  8. Drop EDK2_TEST as a CI dependency.

    Bret Barkelew committed Dec 18, 2019
    Configuration menu
    Copy the full SHA
    b7e4054 View commit details
    Browse the repository at this point in the history
  9. Add Cmocka as a RequiredSubmodule.

    Bret Barkelew committed Dec 18, 2019
    Configuration menu
    Copy the full SHA
    459ed82 View commit details
    Browse the repository at this point in the history
  10. Settle on an idea for the TerminationLib.

    Bret Barkelew committed Dec 18, 2019
    Configuration menu
    Copy the full SHA
    163e40e View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2019

  1. Configuration menu
    Copy the full SHA
    764386d View commit details
    Browse the repository at this point in the history
  2. MdePkg/Spdm: fix Nonce structure error.

    Align to SPDM 1.0.0 specification.
    Fix Nonce data structure error.
    
    Cc: Michael D Kinney <michael.d.kinney@intel.com>
    Cc: Liming Gao <liming.gao@intel.com>
    Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
    Reviewed-by: Liming Gao <liming.gao@intel.com>
    jyao1 authored and mergify[bot] committed Dec 19, 2019
    Configuration menu
    Copy the full SHA
    c7a0aca View commit details
    Browse the repository at this point in the history
  3. ShellPkg/ShellProtocol: Return error code while fail parsing cmd-line

    REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2395
    
    Errors happened in the arguments parsing is not a critical error.
    And it would miss the error status code in the release version of shell.
    So replace the ASSERT with returning error status code while fail
    parsing command-line in UpdateArgcArgv.
    
    Cc: Ray Ni <ray.ni@intel.com>
    Cc: Linson Augustine <linson.augustine@intel.com>
    Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Reviewed-by: Ray Ni <ray.ni@intel.com>
    Signed-off-by: Zhichao Gao <zhichao.gao@intel.com>
    ZhichaoGao authored and mergify[bot] committed Dec 19, 2019
    Configuration menu
    Copy the full SHA
    95bb203 View commit details
    Browse the repository at this point in the history
  4. TestBaseSafeIntLib builds again.

    Bret Barkelew committed Dec 19, 2019
    Configuration menu
    Copy the full SHA
    09816e2 View commit details
    Browse the repository at this point in the history
  5. Clean up a few more interfaces.

    Bret Barkelew committed Dec 19, 2019
    Configuration menu
    Copy the full SHA
    42cabb6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    af9d862 View commit details
    Browse the repository at this point in the history
  7. MdePkg PciExpress21: PCI_REG_PCIE_DEVICE_CONTROL2 struct has 17 bits

    Device Control 2 Structure have an issue.
     LtrMechanism - there is 2 bits instead of 1.
    
    Signed-off-by: Daniel Pawel Banaszek <daniel.pawel.banaszek@intel.com>
    Reviewed-by: Liming Gao <liming.gao@intel.com>
    Reviewed-by: Ray Ni <ray.ni@intel.com>
    dbanasze authored and mergify[bot] committed Dec 19, 2019
    Configuration menu
    Copy the full SHA
    665afcc View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2019

  1. Everything builds again! Only a few things left to check.

    Bret Barkelew committed Dec 20, 2019
    Configuration menu
    Copy the full SHA
    16acc61 View commit details
    Browse the repository at this point in the history
  2. Clarify sizes and update the way the dynamic structure elements are d…

    …one.
    Bret Barkelew committed Dec 20, 2019
    Configuration menu
    Copy the full SHA
    ec4bd55 View commit details
    Browse the repository at this point in the history
  3. MdePkg: Use __builtin_offset with CLANGPDB toolchain

    BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2393
    
    CLANGPDB does not define __GNUC__, but it does define __clang__. Check
    for the __clang__ preprocessor definition to use __builtin_offsetof to
    implement the OFFSET_OF macro.
    
    Cc: Michael D Kinney <michael.d.kinney@intel.com>
    Cc: Liming Gao <liming.gao@intel.com>
    Signed-off-by: Alex James <theracermaster@gmail.com>
    Reviewed-by: Liming Gao <liming.gao@intel.com>
    al3xtjames authored and mergify[bot] committed Dec 20, 2019
    Configuration menu
    Copy the full SHA
    796b380 View commit details
    Browse the repository at this point in the history
  4. MdePkg/Tcg: Add new definition in TCG PFP spec.

    The latest TCG PFP specification (TCG PC Client Platform Firmware Profile
    Specification, Revision 1.05) added new data structure. For example,
    the SPDM device measurement. This patch adds the new content.
    
    Cc: Michael D Kinney <michael.d.kinney@intel.com>
    Cc: Liming Gao <liming.gao@intel.com>
    Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
    Reviewed-by: Liming Gao <liming.gao@intel.com>
    jyao1 authored and mergify[bot] committed Dec 20, 2019
    Configuration menu
    Copy the full SHA
    ec8c74e View commit details
    Browse the repository at this point in the history
  5. Move the public files into the public.

    Bret Barkelew committed Dec 20, 2019
    Configuration menu
    Copy the full SHA
    33daa3c View commit details
    Browse the repository at this point in the history
  6. Expose the LogLib dependency.

    Bret Barkelew committed Dec 20, 2019
    Configuration menu
    Copy the full SHA
    c315c52 View commit details
    Browse the repository at this point in the history
  7. Fix the LogLib dependency.

    Bret Barkelew committed Dec 20, 2019
    Configuration menu
    Copy the full SHA
    09cf334 View commit details
    Browse the repository at this point in the history
  8. Clean up one last thing about how the Size works.

    Bret Barkelew committed Dec 20, 2019
    Configuration menu
    Copy the full SHA
    bf92129 View commit details
    Browse the repository at this point in the history
  9. Add documentation for building a single test.

    Bret Barkelew committed Dec 20, 2019
    Configuration menu
    Copy the full SHA
    6e9c3b0 View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2019

  1. edksetup.bat stuck on unicode locale Windows

    This issue happens under two conditions.
      1. Unicode language environment in Windows
      2. Python2 (Not reproducible with Python3)
    
    Step to reproduce
      C:\edk2>edksetup.bat forcerebuild
    The edksetup.bat stuck at 'nmake cleanall'.
    
    Signed-off-by: Aiden Park <aiden.park@intel.com>
    
    Reviewed-by: Bob Feng <bob.c.feng@intel.com>
    Park, Aiden authored and mergify[bot] committed Dec 23, 2019
    Configuration menu
    Copy the full SHA
    caa9174 View commit details
    Browse the repository at this point in the history

Commits on Dec 24, 2019

  1. UefiCpuPkg/PiSmmCpuDxeSmm: Remove dependence between APs

    REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2268
    
    In current implementation, when check whether APs called by StartUpAllAPs
    or StartUpThisAp, it checks the Tokens value used by other APs. Also the AP
    will update the Token value for itself if its task finished. In this
    case, the potential race condition  issues happens for the tokens.
    Because of this, system may trig ASSERT during cycling test.
    
    This change enhance the code logic, add new attributes for the token to
    remove the reference for the tokens belongs to other APs.
    
    Reviewed-by: Ray Ni <ray.ni@intel.com>
    Cc: Laszlo Ersek <lersek@redhat.com>
    Signed-off-by: Eric Dong <eric.dong@intel.com>
    ydong10 authored and mergify[bot] committed Dec 24, 2019
    Configuration menu
    Copy the full SHA
    a457823 View commit details
    Browse the repository at this point in the history
  2. UefiCpuPkg/PiSmmCpuDxeSmm: Fix buffer overflow issue.

    The size for the array of mSmmMpSyncData->CpuData[] is 0 ~
    mMaxNumberOfCpus -1. But current code may use
    mSmmMpSyncData->CpuData[mMaxNumberOfCpus].
    
    This patch fixed this issue.
    
    Reviewed-by: Ray Ni <ray.ni@intel.com>
    Cc: Laszlo Ersek <lersek@redhat.com>
    Signed-off-by: Eric Dong <eric.dong@intel.com>
    ydong10 authored and mergify[bot] committed Dec 24, 2019
    Configuration menu
    Copy the full SHA
    123b720 View commit details
    Browse the repository at this point in the history
  3. BaseTools/Scripts: Add sendemail.transferEncoding to SetupGit.py

    If git finds a '\r' character in the message, then it
    converts the entire message content into Quoted-Printable
    encoding. It appears that when groups.io converts the QP
    encoding back to text format, the '\r' characters somehow
    become '\n'. To workaround this, the SetupGit.py script
    will now explicitly set the sendemail.transferEncoding git
    config option to '8bit'
    
    Signed-off-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
    
    Cc: Bob Feng <bob.c.feng@intel.com>
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Leif Lindholm <leif.lindholm@linaro.org>
    Reviewed-by: Bob Feng <bob.c.feng@intel.com>
    nate-desimone authored and mergify[bot] committed Dec 24, 2019
    Configuration menu
    Copy the full SHA
    a5abd9c View commit details
    Browse the repository at this point in the history

Commits on Dec 31, 2019

  1. Move the Cmocka implementations of UnitTestLib and UnitTestAssertLib …

    …to the public folder.
    Bret Barkelew committed Dec 31, 2019
    Configuration menu
    Copy the full SHA
    0d6df2c View commit details
    Browse the repository at this point in the history
  2. Clean up a couple CI errors.

    Bret Barkelew committed Dec 31, 2019
    Configuration menu
    Copy the full SHA
    3e3b28b View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2020

  1. UefiCpuPkg/MpInitLib: Collect processors' CPUID & Platform ID info

    REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2429
    
    This commit will collect the CPUID and Platform ID information for each
    processor within system. They will be stored in the CPU_AP_DATA structure.
    
    These information will be used in the next commit to decide whether a
    microcode patch will be loaded into memory.
    
    Cc: Eric Dong <eric.dong@intel.com>
    Cc: Ray Ni <ray.ni@intel.com>
    Cc: Laszlo Ersek <lersek@redhat.com>
    Cc: Star Zeng <star.zeng@intel.com>
    Cc: Siyuan Fu <siyuan.fu@intel.com>
    Cc: Michael D Kinney <michael.d.kinney@intel.com>
    Signed-off-by: Hao A Wu <hao.a.wu@intel.com>
    Reviewed-by: Ray Ni <ray.ni@intel.com>
    Reviewed-by: Eric Dong <eric.dong@intel.com>
    hwu25 authored and mergify[bot] committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    999463c View commit details
    Browse the repository at this point in the history
  2. UefiCpuPkg/MpInitLib: Reduce the size when loading microcode patches

    REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2429
    
    This commit will attempt to reduce the copy size when loading the
    microcode patches data from flash into memory.
    
    Such optimization is done by a pre-process of the microcode patch headers
    (on flash). A microcode patch will be loaded into memory only when the
    below 3 criteria are met:
    
    A. With a microcode patch header (which means the data is not padding data
       between microcode patches);
    B. The 'ProcessorSignature' & 'ProcessorFlags' fields in the header match
       at least one processor within system;
    C. If the Extended Signature Table exists in a microcode patch, the
       'ProcessorSignature' & 'ProcessorFlag' fields in the table entries
       match at least one processor within system.
    
    Criterion B and C will require all the processors to be woken up once to
    collect their CPUID and Platform ID information. Hence, this commit will
    move the copy, detect and apply of microcode patch on BSP and APs after
    all the processors have been woken up.
    
    Cc: Eric Dong <eric.dong@intel.com>
    Cc: Ray Ni <ray.ni@intel.com>
    Cc: Laszlo Ersek <lersek@redhat.com>
    Cc: Star Zeng <star.zeng@intel.com>
    Cc: Siyuan Fu <siyuan.fu@intel.com>
    Cc: Michael D Kinney <michael.d.kinney@intel.com>
    Signed-off-by: Hao A Wu <hao.a.wu@intel.com>
    Reviewed-by: Eric Dong <eric.dong@intel.com>
    Reviewed-by: Ray Ni <ray.ni@intel.com>
    hwu25 authored and mergify[bot] committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    d786a17 View commit details
    Browse the repository at this point in the history
  3. UefiCpuPkg: Add definitions for EDKII microcode patch HOB

    REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2430
    
    This commit will add the definitions for EDKII microcode patch HOB.
    
    The intention of adding this HOB is to provide a scheme to store the below
    information:
    
    A. The base address and size of the microcode patches that are being
       loaded (from flash) into memory;
    B. The information of detected microcode patch for each processor within
       the system.
    
    The producer of the HOB will be the UefiCpuPkg/MpInitLib (where the load,
    detect and apply of the microcode happen). The consumer of the HOB can be
    modules that want to detect/apply the microcode patch by themselves again
    later during the boot flow.
    
    Cc: Eric Dong <eric.dong@intel.com>
    Cc: Ray Ni <ray.ni@intel.com>
    Cc: Laszlo Ersek <lersek@redhat.com>
    Cc: Star Zeng <star.zeng@intel.com>
    Cc: Siyuan Fu <siyuan.fu@intel.com>
    Cc: Michael D Kinney <michael.d.kinney@intel.com>
    Signed-off-by: Hao A Wu <hao.a.wu@intel.com>
    Reviewed-by: Ray Ni <ray.ni@intel.com>
    Reviewed-by: Eric Dong <eric.dong@intel.com>
    hwu25 authored and mergify[bot] committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    2539099 View commit details
    Browse the repository at this point in the history
  4. UefiCpuPkg/MpInitLib: Produce EDKII microcode patch HOB

    REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2430
    
    This commit will update the MpInitLib to:
    
    A. Collect the base address and size information after microcode patches
       being loaded into memory;
    B. Collect the detected microcode patch for each processor within system;
    C. Based on the collected information, produce the EDKII microcode patch
       HOB.
    
    Cc: Eric Dong <eric.dong@intel.com>
    Cc: Ray Ni <ray.ni@intel.com>
    Cc: Laszlo Ersek <lersek@redhat.com>
    Cc: Star Zeng <star.zeng@intel.com>
    Cc: Siyuan Fu <siyuan.fu@intel.com>
    Cc: Michael D Kinney <michael.d.kinney@intel.com>
    Signed-off-by: Hao A Wu <hao.a.wu@intel.com>
    Reviewed-by: Eric Dong <eric.dong@intel.com>
    Reviewed-by: Ray Ni <ray.ni@intel.com>
    hwu25 authored and mergify[bot] committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    e1ed557 View commit details
    Browse the repository at this point in the history
  5. UefiCpuPkg/MpInitLib: Relocate microcode patch fields in CPU_MP_DATA

    The below 2 microcode patch related fields in structure CPU_MP_DATA:
    
      UINT64                         MicrocodePatchAddress;
      UINT64                         MicrocodePatchRegionSize;
    
    They will be passed from PEI phase and be reused DXE phase.
    
    Previously, these 2 fields were placed after some fields with type
    'UINTN', this will lead to different field offset in different
    architecture for them.
    
    This commit will move them before the fields with different size in
    different architecture to ensure they can be properly used in DXE phase.
    
    Cc: Eric Dong <eric.dong@intel.com>
    Cc: Ray Ni <ray.ni@intel.com>
    Cc: Laszlo Ersek <lersek@redhat.com>
    Cc: Star Zeng <star.zeng@intel.com>
    Cc: Siyuan Fu <siyuan.fu@intel.com>
    Cc: Michael D Kinney <michael.d.kinney@intel.com>
    Signed-off-by: Hao A Wu <hao.a.wu@intel.com>
    Reviewed-by: Ray Ni <ray.ni@intel.com>
    Reviewed-by: Eric Dong <eric.dong@intel.com>
    hwu25 authored and mergify[bot] committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    88bd066 View commit details
    Browse the repository at this point in the history
  6. UefiCpuPkg/MpInitLib: Remove redundant microcode fields in CPU_MP_DATA

    Previous commits have introduced below fields in structure CPU_AP_DATA:
    
      UINT32                         ProcessorSignature;
      UINT8                          PlatformId;
      UINT64                         MicrocodeEntryAddr;
    
    which store the information of:
    
    A. CPUID
    B. Platform ID
    C. Detected microcode patch entry address (including the microcode patch
       header)
    
    for each processor within system.
    
    Therefore, the below fields in structure CPU_MP_DATA:
    
      UINT32                         ProcessorSignature;
      UINT32                         ProcessorFlags;
      UINT64                         MicrocodeDataAddress;
      UINT32                         MicrocodeRevision;
    
    which store the BSP's information of:
    
    A. CPUID
    B. Platform ID
    C. The address and revision of detected microcode patch
    
    are redundant and can be removed.
    
    Cc: Eric Dong <eric.dong@intel.com>
    Cc: Ray Ni <ray.ni@intel.com>
    Cc: Laszlo Ersek <lersek@redhat.com>
    Cc: Star Zeng <star.zeng@intel.com>
    Cc: Siyuan Fu <siyuan.fu@intel.com>
    Cc: Michael D Kinney <michael.d.kinney@intel.com>
    Signed-off-by: Hao A Wu <hao.a.wu@intel.com>
    Reviewed-by: Eric Dong <eric.dong@intel.com>
    Reviewed-by: Ray Ni <ray.ni@intel.com>
    hwu25 authored and mergify[bot] committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    fd30b00 View commit details
    Browse the repository at this point in the history
  7. UefiPayloadPkg/BootManager: Add PS2 keyboard support

    Add PS2 keyboard support.
    REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2316
    
    This patch adds PS2 keyboard support in boot manager, and
    add a build flag PS2_KEYBOARD_ENABLE for PS2 keyboard to
    build PS2 keyboard driver and SIO driver. Be default the
    build flag is not enabled since PS2 keyboard is not common
    used. could use -DPS2_KEYBOARD_ENABLE to enable build it
    if need this feature.
    
    Signed-off-by: Guo Dong <guo.dong@intel.com>
    Reviewed-by: Maurice Ma <maurice.ma@intel.com>
    Reviewed-by: Benjamin You <benjamin.you@intel.com>
    Dong, Guo authored and mergify[bot] committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    33a3293 View commit details
    Browse the repository at this point in the history
  8. UefiCpuPkg/PiSmmCpuDxeSmm: Pre-allocate PROCEDURE_TOKEN buffer

    REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2388
    
    Token is new introduced by MM MP Protocol. Current logic allocate Token
    every time when need to use it. The logic caused SMI latency raised to
    very high. Update logic to allocate Token buffer at driver's entry point.
    Later use the token from the allocated token buffer. Only when all the
    buffer have been used, then need to allocate new buffer.
    
    Former change (9caaa79) missed
    PROCEDURE_TOKEN part, this change covers it.
    
    Reviewed-by: Ray Ni <ray.ni@intel.com>
    Cc: Laszlo Ersek <lersek@redhat.com>
    Signed-off-by: Eric Dong <eric.dong@intel.com>
    ydong10 authored and mergify[bot] committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    b948a49 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    1014f94 View commit details
    Browse the repository at this point in the history
  10. Drop the Cmocka submodule to prepare for library moving.

    Bret Barkelew committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    1f66b17 View commit details
    Browse the repository at this point in the history
  11. Combine FrameworkLibrary and Library directories.

    Bret Barkelew committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    cbcd135 View commit details
    Browse the repository at this point in the history
  12. Consolidate and reorganize Framework Libraries.

    Bret Barkelew committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    0739585 View commit details
    Browse the repository at this point in the history
  13. UnitTestFrameworkPkg/UnitTestAssertLibcomcka: Use snprintf()

    Replace sprintf() with Use snprintf() that is considered safe for
    both VS20xx and GCCx tool chains.
    
    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    571a88c View commit details
    Browse the repository at this point in the history
  14. UnitTestFrameworkPkg/OsServiceLibHost: Fix GCC build issue

    Add missing include for getpagesize().
    
    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    1525c7d View commit details
    Browse the repository at this point in the history
  15. UnitTestFrameworkPkg/UniTestLib: Fix GCC build issue

    Use correct parameter type for FreeUnitTestFramework()
    
    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    2275128 View commit details
    Browse the repository at this point in the history
  16. UnitTestFrameworkPkg/UniTestLibcmocha: Fix GCC build issue

    * Use correct parameter type for FreeUnitTestFramework()
    * Disable use of assembly trampoline logic that breaks GCC X64.
    * Remove *ParentFramework local variable that is set but not used.
    
    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    dc5f1d2 View commit details
    Browse the repository at this point in the history
  17. UnitTestFrameworkPkg/UnitTestAssertLibcmocha: Remove [BuildOptions]

    With the change to use snprintf() instead of sprintf(), the [BuildOptions]
    that override the MSFT specific CC_FLAGS are no longer required.
    
    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    cccd10a View commit details
    Browse the repository at this point in the history
  18. MdePkg/Test: Improve MdePkgTest.dsc compiler compatibility

    Add compatibility with VS2015, VS2015x86, VS2017, GCC5, CLANG9, XCODE.
    
      NOTE: VS2015, CLANG9, XCODE not tested yet.
    
    Cleanup lib mappings for all components and reduce use of host
    specific libraries.
    
    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    52f3558 View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2020

  1. Remove OsServiceLib class and instance

    Also remove assembly trampline code.
    
    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 3, 2020
    Configuration menu
    Copy the full SHA
    c8de68b View commit details
    Browse the repository at this point in the history
  2. MdePkg/Test: Remove BaseLibHost and BaseMemoryLibHost

    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 3, 2020
    Configuration menu
    Copy the full SHA
    76b4fae View commit details
    Browse the repository at this point in the history
  3. UnitTestFrameworkPkg/Library: Add Posix libs

    Move DebugLib for Posix host evncironments to UnitTestFrameworkPkg
    Move BaseMemoryLib for Posix host evncironments to UnitTestFrameworkPkg
    
    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 3, 2020
    Configuration menu
    Copy the full SHA
    76cba4b View commit details
    Browse the repository at this point in the history
  4. UnitTestFrameworkPkg: Rename FrameworkInclude to PrivateInclude

    Rename private include directory to match other packages.
    
    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 3, 2020
    Configuration menu
    Copy the full SHA
    218299f View commit details
    Browse the repository at this point in the history
  5. UnitTestFrameworkPkg/Library: Rename UEFI to Uefi

    Rename UnitTestFrameworkPkg/Library/UEFI to
    UnitTestFrameworkPkg/Library/Uefi to follow EFK II C
    Coding Style.
    
    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 3, 2020
    Configuration menu
    Copy the full SHA
    eecfd41 View commit details
    Browse the repository at this point in the history
  6. UnitTestFrameworkPkg: Make case of 'Cmocka' consistent

    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 3, 2020
    Configuration menu
    Copy the full SHA
    bd77e86 View commit details
    Browse the repository at this point in the history
  7. UnitTestFrameworkPkg: Fix trailing whitespace and line endings

    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 3, 2020
    Configuration menu
    Copy the full SHA
    a414332 View commit details
    Browse the repository at this point in the history
  8. MdePkg/Test: Fix trailing whitespace and line endings

    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 3, 2020
    Configuration menu
    Copy the full SHA
    110af9c View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2020

  1. MdePkg/Test: Fix code style issues

    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 4, 2020
    Configuration menu
    Copy the full SHA
    8d62b6f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8c885c6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9dea978 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5794bf7 View commit details
    Browse the repository at this point in the history
  5. UnitTestFrameworkPkg: Tem disable build of Posix libs

    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 4, 2020
    Configuration menu
    Copy the full SHA
    584632e View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2020

  1. MdeModulePkg/SdMmcPciHcDxe: Hook SwitchClockFreq after SD clock start

    For eMMC modules we used to notify the platform about frequency
    change only after sending CMD13 which meant that platform
    might not get a chance to apply required post frequency
    change fixes to get the clock stable. To fix this
    notification has been moved to SdMmcHcClockSupply function
    just after we start the SD clock. During first time setup
    the notification won't be sent to avoid changing old behavior.
    
    Cc: Hao A Wu <hao.a.wu@intel.com>
    Cc: Marcin Wojtas <mw@semihalf.com>
    Cc: Zhichao Gao <zhichao.gao@intel.com>
    Cc: Liming Gao <liming.gao@intel.com>
    
    Signed-off-by: Mateusz Albecki <mateusz.albecki@intel.com>
    Tested-by: Marcin Wojtas <mw@semihalf.com>
    Tested-by: Hao A Wu <hao.a.wu@intel.com>
    Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
    malbecki authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    49accde View commit details
    Browse the repository at this point in the history
  2. MdeModulePkg/SdMmcPciHcDxe: Add function to start SD clock

    In SD card voltage switch flow we used to redo the
    entire internal clock setup after voltage switch.
    Since internal clock has already been setup this
    is wasting time on polling the internal clock stable.
    This commit changes it to only start the SD clock.
    
    Cc: Hao A Wu <hao.a.wu@intel.com>
    Cc: Marcin Wojtas <mw@semihalf.com>
    Cc: Zhichao Gao <zhichao.gao@intel.com>
    Cc: Liming Gao <liming.gao@intel.com>
    
    Signed-off-by: Mateusz Albecki <mateusz.albecki@intel.com>
    Tested-by: Marcin Wojtas <mw@semihalf.com>
    Tested-by: Hao A Wu <hao.a.wu@intel.com>
    Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
    malbecki authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    f68cb23 View commit details
    Browse the repository at this point in the history
  3. SecurityPkg/Guid: Add TCG 800-155 event GUID definition.

    REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2439
    
    The PEIM can produce the 800-155 event and the event
    will be recorded to TCG event log by the TCG2 DXE.
    
    Cc: Jian J Wang <jian.j.wang@intel.com>
    Cc: Chao Zhang <chao.b.zhang@intel.com>
    Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
    Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
    jyao1 authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    df73a69 View commit details
    Browse the repository at this point in the history
  4. SecurityPkg/Tcg2Dxe: Add Tcg2Dxe to support 800-155 event.

    REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2439
    
    The TCG2 DXE supports to parse the 800-155 event GUID from PEI
    and puts to the beginning of the TCG2 event.
    
    The TCG2 DXE also supports a DXE driver produces 800-155 event
    and let TCG2 DXE driver record.
    
    The 800-155 is a NO-ACTION event which does not need extend
    anything to TPM2. The TCG2 DXE also supports that.
    
    Multiple 800-155 events are supported. All of them will be put
    to the beginning of the TCG2 event, just after the SpecId event.
    
    Cc: Jian J Wang <jian.j.wang@intel.com>
    Cc: Chao Zhang <chao.b.zhang@intel.com>
    Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
    Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
    jyao1 authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    4fa2585 View commit details
    Browse the repository at this point in the history
  5. MdeModulePkg/Smbios: Done measure Smbios multiple times.

    REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2439
    
    In current implementation, the SMBIOS table is measured multiple
    time in every readytoboot event.
    
    This causes Smbios Table record appears multiple time in the TCG event log
    and confuses people.
    
    This issue makes it hard to implement 800-155 reference measurement.
    
    This patch closes the event to make sure Smbios is measured only once.
    
    Cc: Jian J Wang <jian.j.wang@intel.com>
    Cc: Hao A Wu <hao.a.wu@intel.com>
    Cc: Dandan Bi <dandan.bi@intel.com>
    Cc: Star Zeng <star.zeng@intel.com>
    Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
    Reviewed-by: Star Zeng <star.zeng@intel.com>
    jyao1 authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    f273905 View commit details
    Browse the repository at this point in the history
  6. MdeModulePkg/dec: add PcdTcgPfpMeasurementRevision PCD

    REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2439
    
    This PCD is to control the TCG PFP spec revision.
    
    The PFP 105 added new event type to support NIST SP800-155,
    and deprecated old event type.
    
    Cc: Jian J Wang <jian.j.wang@intel.com>
    Cc: Hao A Wu <hao.a.wu@intel.com>
    Cc: Chao Zhang <chao.b.zhang@intel.com>
    Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
    Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
    jyao1 authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    166830d View commit details
    Browse the repository at this point in the history
  7. MdeModulePkg/Smbios: Add TCG PFP rev 105 support.

    REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2439
    
    Report EV_EFI_HANDOFF_TABLES2 if the platform chooses PFP >= 105.
    
    Cc: Jian J Wang <jian.j.wang@intel.com>
    Cc: Hao A Wu <hao.a.wu@intel.com>
    Cc: Dandan Bi <dandan.bi@intel.com>
    Cc: Star Zeng <star.zeng@intel.com>
    Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
    Reviewed-by: Star Zeng <star.zeng@intel.com>
    jyao1 authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    40801ac View commit details
    Browse the repository at this point in the history
  8. SecurityPkg/Tcg2Pei: Add TCG PFP 105 support.

    REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2439
    
    Use EV_EFI_PLATFORM_FIRMWARE_BLOB2 if the TCG PFP revision is >= 105.
    Use FvName as the description for the FV.
    
    Cc: Jian J Wang <jian.j.wang@intel.com>
    Cc: Chao Zhang <chao.b.zhang@intel.com>
    Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
    Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
    jyao1 authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    0286fe8 View commit details
    Browse the repository at this point in the history
  9. MdeModulePkg/Usb/EfiKey: Fix endpoint selection

    The endpoint selected by the driver needs to not
    only be an interrupt type, but have direction IN
    as required to set up an asynchronous interrupt transfer.
    
    Currently, the driver assumes that the first INT endpoint
    will be of type IN, but that is not true of all devices,
    and will silently fail on devices which have the OUT endpoint
    before the IN. Adjust the endpoint selection loop to explictly
    check for direction IN.
    
    Test: detachable keyboard on Google Pixel Slate now works.
    
    Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
    Reviewed-by: GuoMinJ <newexplorerj@gmail.com>
    Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
    MrChromebox authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    f9c2c71 View commit details
    Browse the repository at this point in the history
  10. MdeModulePkg/Usb/UsbMouse: Fix endpoint selection

    The endpoint selected by the driver needs to not
    only be an interrupt type, but have direction IN
    as required to set up an asynchronous interrupt transfer.
    
    Currently, the driver assumes that the first INT endpoint
    will be of type IN, but that is not true of all devices,
    and will silently fail on devices which have the OUT endpoint
    before the IN. Adjust the endpoint selection loop to explictly
    check for direction IN.
    
    Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
    Reviewed-by: GuoMinJ <newexplorerj@gmail.com>
    Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
    MrChromebox authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    d0d38ce View commit details
    Browse the repository at this point in the history
  11. MdeModulePkg/UsbMouseAbsolutePointer: Fix endpoint selection

    The endpoint selected by the driver needs to not
    only be an interrupt type, but have direction IN
    as required to set up an asynchronous interrupt transfer.
    
    Currently, the driver assumes that the first INT endpoint
    will be of type IN, but that is not true of all devices,
    and will silently fail on devices which have the OUT endpoint
    before the IN. Adjust the endpoint selection loop to explictly
    check for direction IN.
    
    Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
    Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
    MrChromebox authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    6cfb6da View commit details
    Browse the repository at this point in the history
  12. .mailmap: Add a stub with documentation

    The .mailmap git feature helps fixing commit mistakes (in name/email).
    
    The easiest way to use it is with the --use-mailmap flag:
    
      $ git log --use-mailmap
    
    See:
    * https://git-scm.com/docs/git-shortlog#_mapping_authors
    * https://git-scm.com/docs/git-check-mailmap#_mapping_authors
    
    Reviewed-by: Laszlo Ersek <lersek@redhat.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-2-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    4a1aeca View commit details
    Browse the repository at this point in the history
  13. .mailmap: Add an entry for Aaron Li

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Aaron Li to have his/her name and email address
    displayed properly in the git history.
    
    Cc: Aaron Li <aaron.li@intel.com>
    Cc: Songpeng Li <songpeng.li@intel.com>
    Reviewed-by: Aaron Li <aaron.li@intel.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-3-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    ba54103 View commit details
    Browse the repository at this point in the history
  14. .mailmap: Add an entry for Antoine Coeur

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Antoine Cœur to have his/her name and email
    address displayed properly in the git history.
    
    Cc: Antoine Cœur <coeur@gmx.fr>
    Reviewed-by: Antoine Cœur <coeur@gmx.fr>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-4-philmd@redhat.com>
    [lersek@redhat.com: fix up valid PatchCheck.py error in Reviewed-by]
    [lersek@redhat.com: translit subject to ASCII to suppress PatchCheck.py]
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    0ce7f25 View commit details
    Browse the repository at this point in the history
  15. .mailmap: Add an entry for Ard Biesheuvel

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Ard Biesheuvel to have his/her name and email
    address displayed properly in the git history.
    
    Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
    Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-5-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    83e78fe View commit details
    Browse the repository at this point in the history
  16. .mailmap: Add an entry for Ashley DeSimone

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Ashley DeSimone to have his/her name and email
    address displayed properly in the git history.
    
    Cc: Ashley DeSimone <ashley.e.desimone@intel.com>
    Reviewed-by: Ashley DeSimone <ashley.e.desimone@intel.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-6-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    caa6584 View commit details
    Browse the repository at this point in the history
  17. .mailmap: Add an entry for Baraneedharan Anbazhagan

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Baraneedharan Anbazhagan to have his/her name
    and email address displayed properly in the git history.
    
    Cc: Baraneedharan Anbazhagan <anbazhagan@hp.com>
    Reviewed-by: Baraneedharan Anbazhagan <anbazhagan@hp.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-7-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    d42046e View commit details
    Browse the repository at this point in the history
  18. .mailmap: Add an entry for Chasel Chiu

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Chasel Chiu to have his/her name and email
    address displayed properly in the git history.
    
    Cc: Chasel Chiu <chasel.chiu@intel.com>
    Reviewed-by: Chasel Chiu <chasel.chiu@intel.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-8-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    31d60b9 View commit details
    Browse the repository at this point in the history
  19. .mailmap: Add an entry for Christopher J Zurcher

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Christopher J Zurcher to have his/her name and
    email address displayed properly in the git history.
    
    Cc: Christopher J Zurcher <christopher.j.zurcher@intel.com>
    Reviewed-by: Christopher J Zurcher <christopher.j.zurcher@intel.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-9-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    0d141df View commit details
    Browse the repository at this point in the history
  20. .mailmap: Add an entry for Eric Dong

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Eric Dong to have his/her name and email
    address displayed properly in the git history.
    
    Cc: Eric Dong <eric.dong@intel.com>
    Reviewed-by: Eric Dong <eric.dong@intel.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-10-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    52b6a7c View commit details
    Browse the repository at this point in the history
  21. .mailmap: Add an entry for Erik Bjorge

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Erik Bjorge to have his/her name and email
    address displayed properly in the git history.
    
    Cc: Erik Bjorge <erik.c.bjorge@intel.com>
    Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-11-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    e2a8eae View commit details
    Browse the repository at this point in the history
  22. .mailmap: Add an entry for Hao Wu

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Hao Wu to have his/her name and email address
    displayed properly in the git history.
    
    Cc: Hao Wu <hao.a.wu@intel.com>
    Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-12-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    082208a View commit details
    Browse the repository at this point in the history
  23. .mailmap: Add an entry for Hot Tian

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Hot Tian to have his/her name and email address
    displayed properly in the git history.
    
    Cc: Hot Tian <hot.tian@intel.com>
    Reviewed-by: Hot Tian <hot.tian@intel.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-13-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    59bbab3 View commit details
    Browse the repository at this point in the history
  24. .mailmap: Add an entry for Jiewen Yao

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Jiewen Yao to have his/her name and email
    address displayed properly in the git history.
    
    Cc: Jiewen Yao <jiewen.yao@intel.com>
    Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-14-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    1bbbd6a View commit details
    Browse the repository at this point in the history
  25. .mailmap: Add an entry for Jim Dailey

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Jim Dailey to have his/her name and email
    address displayed properly in the git history.
    
    Cc: Jim Dailey <Jim.Dailey@Dell.com>
    Reviewed-by: Jim Dailey <Jim.Dailey@Dell.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-15-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    5556529 View commit details
    Browse the repository at this point in the history
  26. .mailmap: Add an entry for Laszlo Ersek

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Laszlo Ersek to have his/her name and email
    address displayed properly in the git history.
    
    Cc: Laszlo Ersek <lersek@redhat.com>
    Reviewed-by: Laszlo Ersek <lersek@redhat.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-16-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    f235838 View commit details
    Browse the repository at this point in the history
  27. .mailmap: Add an entry for Liming Gao

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Liming Gao to have his/her name and email
    address displayed properly in the git history.
    
    Cc: Liming Gao <liming.gao@intel.com>
    Reviewed-by: Liming Gao <liming.gao@intel.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-17-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    44c9a93 View commit details
    Browse the repository at this point in the history
  28. .mailmap: Add an entry for Maciej Rabeda

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Maciej Rabeda to have his/her name and email
    address displayed properly in the git history.
    
    Cc: Maciej Rabeda <maciej.rabeda@intel.com>
    Reviewed-by: Maciej Rabeda <maciej.rabeda@intel.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-18-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    a85cdb9 View commit details
    Browse the repository at this point in the history
  29. .mailmap: Add an entry for Marc-Andre Lureau

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Marc-André Lureau to have his/her name and email
    address displayed properly in the git history.
    
    Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
    Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-19-philmd@redhat.com>
    [lersek@redhat.com: translit subject to ASCII to suppress PatchCheck.py]
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    9b2e99e View commit details
    Browse the repository at this point in the history
  30. .mailmap: Add an entry for Marvin Haeuser

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Marvin Häuser to have his/her name and email
    address displayed properly in the git history (in particular,
    commit 62ec4a5).
    
    Cc: Marvin Häuser <Marvin.Haeuser@outlook.de>
    Cc: Marvin Häuser <Marvin.Haeuser@outlook.com>
    Reviewed-by: Marvin Häuser <mhaeuser@outlook.de>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-20-philmd@redhat.com>
    [lersek@redhat.com: translit subject to ASCII to suppress PatchCheck.py]
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    76fc038 View commit details
    Browse the repository at this point in the history
  31. .mailmap: Add an entry for Maurice Ma

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Maurice Ma to have his/her name and email
    address displayed properly in the git history.
    
    Cc: Maurice Ma <maurice.ma@intel.com>
    Reviewed-by: Maurice Ma <maurice.ma@intel.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-21-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    8ef8175 View commit details
    Browse the repository at this point in the history
  32. .mailmap: Add an entry for Michael Kubacki

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Michael Kubacki to have his/her name and email
    address displayed properly in the git history.
    
    Cc: Michael Kubacki <michael.a.kubacki@intel.com>
    Reviewed-by: Michael Kubacki <michael.a.kubacki@intel.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-22-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    43f2c9f View commit details
    Browse the repository at this point in the history
  33. .mailmap: Add an entry for Ming Tan

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Ming Tan to have his/her name and email address
    displayed properly in the git history.
    
    Cc: Ming Tan <ming.tan@intel.com>
    Reviewed-by: Ming Tan <ming.tan@intel.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-23-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    266efa6 View commit details
    Browse the repository at this point in the history
  34. .mailmap: Add an entry for Nikolai Saoukh

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Nikolai Saoukh to have his/her name and email
    address displayed properly in the git history.
    
    Cc: Nikolai Saoukh <nms@otdel-1.org>
    Reviewed-by: Nikolai Saoukh <nms@otdel-1.org>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-24-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    21429c1 View commit details
    Browse the repository at this point in the history
  35. .mailmap: Add an entry for Philippe Mathieu-Daude

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Philippe Mathieu-Daudé to have his/her name and
    email address displayed properly in the git history.
    
    Reviewed-by: Laszlo Ersek <lersek@redhat.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-25-philmd@redhat.com>
    [lersek@redhat.com: translit subject to ASCII to suppress PatchCheck.py]
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    a292d6c View commit details
    Browse the repository at this point in the history
  36. .mailmap: Add an entry for Ray Ni

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Ray Ni to have his/her name and email address
    displayed properly in the git history.
    
    Cc: Ray Ni <ray.ni@intel.com>
    Reviewed-by: Ray Ni <ray.ni@intel.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-26-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    80f7c1b View commit details
    Browse the repository at this point in the history
  37. .mailmap: Add an entry for Samer El-Haj-Mahmoud

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Samer El-Haj-Mahmoud to have his/her name and
    email address displayed properly in the git history.
    
    Cc: Samer El-Haj-Mahmoud <elhaj@hpe.com>
    Cc: Samer El-Haj-Mahmoud  <samer@elhajmahmoud.com>
    Reviewed-by: Samer El-Haj-Mahmoud  <samer@elhajmahmoud.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-27-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    ad12178 View commit details
    Browse the repository at this point in the history
  38. .mailmap: Add an entry for Shenglei Zhang

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Shenglei Zhang to have his/her name and email
    address displayed properly in the git history.
    
    Cc: Shenglei Zhang <shenglei.zhang@intel.com>
    Reviewed-by: Shenglei Zhang <shenglei.zhang@intel.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-28-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    088573c View commit details
    Browse the repository at this point in the history
  39. .mailmap: Add an entry for Star Zeng

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Star Zeng to have his/her name and email address
    displayed properly in the git history.
    
    Cc: Star Zeng <star.zeng@intel.com>
    Reviewed-by: Star Zeng <star.zeng@intel.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-29-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    0e660ee View commit details
    Browse the repository at this point in the history
  40. .mailmap: Add an entry for Vitaly Cheptsov

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Vitaly Cheptsov to have his/her name and email
    address displayed properly in the git history.
    
    Cc: Vitaly Cheptsov <vit9696@protonmail.com>
    Reviewed-by: Vitaly Cheptsov <vit9696@protonmail.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-30-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    76b5158 View commit details
    Browse the repository at this point in the history
  41. .mailmap: Add an entry for Vladimir Olovyannikov

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Vladimir Olovyannikov to have his/her name and
    email address displayed properly in the git history.
    
    Cc: Vladimir Olovyannikov <vladimir.olovyannikov@broadcom.com>
    Reviewed-by: Vladimir Olovyannikov <vladimir.olovyannikov@broadcom.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-31-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    c751368 View commit details
    Browse the repository at this point in the history
  42. .mailmap: Add an entry for Yonghong Zhu

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Yonghong Zhu to have his/her name and email
    address displayed properly in the git history.
    
    Cc: Yonghong Zhu <yonghong.zhu@intel.com>
    Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-32-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    d96c7be View commit details
    Browse the repository at this point in the history
  43. .mailmap: Add an entry for Yu-Chen Lin

    We use .mailmap to display contributors email addresses in an
    uniform format.
    
    Add an entry for Yu-Chen Lin to have his/her name and email
    address displayed properly in the git history.
    
    Cc: Yu-Chen Lin <yuchenlin@synology.com>
    Reviewed-by: Yu-Chen Lin <yuchenlin@synology.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Message-Id: <20200106115415.11624-33-philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    0ef6fbb View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2020

  1. edksetup.bat: Simplify the step to use CLANGPDB

    REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2404
    
    Set the below two environment variables in edksetup.bat:
      set CLANG_HOST_BIN=n
      set CLANG_BIN=C:\Program Files\LLVM\bin\
    In Windows, set CLANG_HOST_BIN=n to use nmake command
    The CLANG_BIN is only be set if it is not defined.
    
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Ray Ni <ray.ni@intel.com>
    Cc: Laszlo Ersek <lersek@redhat.com>
    Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
    LiuZhiguang001 authored and mergify[bot] committed Jan 7, 2020
    Configuration menu
    Copy the full SHA
    cc617b6 View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2020

  1. Revert "UefiCpuPkg/PiSmmCpuDxeSmm: Fix buffer overflow issue."

    This reverts commit 123b720.
    
    The commit message for commit 123b720 is not correct.
    
    Cc: Ray Ni <ray.ni@intel.com>
    Reviewed-by: Laszlo Ersek <lersek@redhat.com>
    Signed-off-by: Eric Dong <eric.dong@intel.com>
    ydong10 authored and mergify[bot] committed Jan 8, 2020
    Configuration menu
    Copy the full SHA
    4bb34b6 View commit details
    Browse the repository at this point in the history
  2. UefiCpuPkg/PiSmmCpuDxeSmm: improve the coding style

    REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2434
    
    Current code use below loops to enumerate the CPUs:
      for (Index = mMaxNumberOfCpus; Index-- > 0;) {
    it has no issue but not easy for the developers to read the code.
    
    Update above code to below style,
      for (Index = 0; Index < mMaxNumberOfCpus; Index++) {
    It make the developers easy to read and consistent with other
    similar cases in this driver.
    
    Reviewed-by: Laszlo Ersek <lersek@redhat.com>
    Cc: Ray Ni <ray.ni@intel.com>
    Signed-off-by: Eric Dong <eric.dong@intel.com>
    ydong10 authored and mergify[bot] committed Jan 8, 2020
    Configuration menu
    Copy the full SHA
    70911f1 View commit details
    Browse the repository at this point in the history
  3. UefiCpuPkg: Remove alignment check when calculate microcode size.

    This patch removes the unnecessary alignment check on microcode patch
    TotalSize introduced by commit d786a17. The TotalSize has already been
    checked with 1K alignment and MAX_ADDRESS in previous code as below:
    
        if ( (UINTN)MicrocodeEntryPoint > (MAX_ADDRESS - TotalSize) ||
             ((UINTN)MicrocodeEntryPoint + TotalSize) > MicrocodeEnd ||
             (DataSize & 0x3) != 0 ||
             (TotalSize & (SIZE_1KB - 1)) != 0 ||
             TotalSize < DataSize
           ) {
    
    Cc: Eric Dong <eric.dong@intel.com>
    Cc: Ray Ni <ray.ni@intel.com>
    Cc: Hao A Wu <hao.a.wu@intel.com>
    Signed-off-by: Siyuan Fu <siyuan.fu@intel.com>
    Reviewed-by: Ray Ni <ray.ni@intel.com>
    Reviewed-by: Eric Dong <eric.dong@intel.com>
    sfu5 authored and mergify[bot] committed Jan 8, 2020
    Configuration menu
    Copy the full SHA
    08a475d View commit details
    Browse the repository at this point in the history
  4. UefiCpuPkg: Always load microcode patch on AP processor.

    This patch updates the microcode loader to always perform a microcode
    detect and load on both BSP and AP processor. This is to fix a potential
    microcode revision mismatch issue in below situation:
    1. Assume there are two microcode co-exists in flash: one production
       version and one debug version microcode.
    2. FIT loads production microcode to BSP and all AP.
    3. UefiCpuPkg loader loads debug microcode to BSP, and skip the loading
       on AP.
    As a result, different microcode patches are loaded to BSP and AP, and
    trigger microcode mismatch error during OS boot.
    
    BZ link: https://bugzilla.tianocore.org/show_bug.cgi?id=2431
    
    Cc: Eric Dong <eric.dong@intel.com>
    Cc: Ray Ni <ray.ni@intel.com>
    Signed-off-by: Siyuan Fu <siyuan.fu@intel.com>
    Reviewed-by: Eric Dong <eric.dong@intel.com>
    sfu5 authored and mergify[bot] committed Jan 8, 2020
    Configuration menu
    Copy the full SHA
    396e791 View commit details
    Browse the repository at this point in the history
  5. CryptoPkg: Support for SHA384 & SHA512 RSA signing schemes

    BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2389
    
    Currently RSA signing scheme support is available for MD5, SHA-1 or
    SHA-256 algorithms.The fix is to extend this support for SHA384 and
    SHA512.
    
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Jian J Wang <jian.j.wang@intel.com>
    Cc: Bob Feng <bob.c.feng@intel.com>
    
    Signed-off-by: Pavana.K <pavana.k@intel.com>
    Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
    gar-pk9 authored and mergify[bot] committed Jan 8, 2020
    Configuration menu
    Copy the full SHA
    c9d7262 View commit details
    Browse the repository at this point in the history
  6. MdeModulePkg: Add EDK2 Platform Boot Manager Protocol

    Add edk2 platform boot manager protocol which would have platform
    specific refreshes to the auto enumerated as well as NV boot options
    for the platform.
    
    Signed-off-by: Ashish Singhal <ashishsingha@nvidia.com>
    Reviewed-by: Ray Ni <ray.ni@intel.com>
    ashishsingha authored and mergify[bot] committed Jan 8, 2020
    Configuration menu
    Copy the full SHA
    972d887 View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2020

  1. UnitTestFrameworkPkg/Library/HostCmocha: Simplify build options

    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    Michael D Kinney authored and mdkinney committed Jan 9, 2020
    Configuration menu
    Copy the full SHA
    fb8e74b View commit details
    Browse the repository at this point in the history
  2. UnitTestFrameworkPkg: Clean ups

    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 9, 2020
    Configuration menu
    Copy the full SHA
    b6cd657 View commit details
    Browse the repository at this point in the history
  3. BaseTools/PatchCheck.py: Ignore CR and LF characters in subject length

    REF: https://bugzilla.tianocore.org/show_bug.cgi?id=113
    
    Strip the trailing characters before checking the subject line is
    less than 72 characters.
    
    Fixes: e614067
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Jordan Justen <jordan.l.justen@intel.com>
    Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
    Reviewed-by: Bob Feng <bob.c.feng@intel.com>
    
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 9, 2020
    Configuration menu
    Copy the full SHA
    2649a73 View commit details
    Browse the repository at this point in the history
  4. OvmfPkg: reorganize TPM2 support in DSC/FDF files

    Put the TPM2 related DXE modules together in the DSC, and add a
    TPM2 support header comment while at it.
    
    Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
    Reviewed-by: Laszlo Ersek <lersek@redhat.com>
    Ard Biesheuvel authored and mergify[bot] committed Jan 9, 2020
    Configuration menu
    Copy the full SHA
    cf3ad97 View commit details
    Browse the repository at this point in the history
  5. OvmfPkg: use HII type PCDs for TPM2 config related variables

    The HII pages that are part of Tcg2ConfigDxe expect the following PCDs
    to be of dynamic HII type, so declare them as such.
    
      gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer
      gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev
    
    Currently, the TPM2 ACPI table is not produced, since we do not
    incorporate the Tcg2Smm module, which implements the SMI based
    physical presence interface exposed to the OS.
    
    Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
    Reviewed-by: Laszlo Ersek <lersek@redhat.com>
    Ard Biesheuvel authored and mergify[bot] committed Jan 9, 2020
    Configuration menu
    Copy the full SHA
    f55477f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    04bee6d View commit details
    Browse the repository at this point in the history
  7. Standardize all copyrights and headers.

    Bret Barkelew committed Jan 9, 2020
    Configuration menu
    Copy the full SHA
    49a1aab View commit details
    Browse the repository at this point in the history
  8. Remove an unnecessary package dependency.

    Bret Barkelew committed Jan 9, 2020
    Configuration menu
    Copy the full SHA
    5897511 View commit details
    Browse the repository at this point in the history
  9. Get back to CI parity.

    Bret Barkelew committed Jan 9, 2020
    Configuration menu
    Copy the full SHA
    3c1f52e View commit details
    Browse the repository at this point in the history
  10. Comment on all of UnitTestLib.h

    Bret Barkelew committed Jan 9, 2020
    Configuration menu
    Copy the full SHA
    a09d24a View commit details
    Browse the repository at this point in the history
  11. Revert the ignore for the new Test examples and drop into the main pa…

    …ckage DSC.
    Bret Barkelew committed Jan 9, 2020
    Configuration menu
    Copy the full SHA
    4633143 View commit details
    Browse the repository at this point in the history
  12. Clean up the UnitTestFrameworkPkg.dsc file and move the Samples into …

    …the Test directory.
    Bret Barkelew committed Jan 9, 2020
    Configuration menu
    Copy the full SHA
    d7f039f View commit details
    Browse the repository at this point in the history
  13. Combine all existing samples into a single source file.

    Bret Barkelew committed Jan 9, 2020
    Configuration menu
    Copy the full SHA
    324c255 View commit details
    Browse the repository at this point in the history
  14. Add a DXE instance of the SampleTest.

    Bret Barkelew committed Jan 9, 2020
    Configuration menu
    Copy the full SHA
    089f090 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2020

  1. UefiCpuPkg/PiSmmCpuDxeSmm: Add missed comments for parameter.

    This issue caused by below change:
      SHA-1: b948a49
      * UefiCpuPkg/PiSmmCpuDxeSmm: Pre-allocate PROCEDURE_TOKEN buffer
      REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2388
    
    Reviewed-by: Ray Ni <ray.ni@intel.com>
    Acked-by: Laszlo Ersek <lersek@redhat.com>
    Signed-off-by: Eric Dong <eric.dong@intel.com>
    ydong10 authored and mergify[bot] committed Jan 10, 2020
    Configuration menu
    Copy the full SHA
    e187925 View commit details
    Browse the repository at this point in the history
  2. MdePkg: Do not use CreateEventEx unless required

    REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2446
    
    There are many firmwares in the wild not supporting CreateEventEx,
    including devices less than 5 years old.
    
    Signed-off-by: Vitaly Cheptsov <vit9696@protonmail.com>
    Reviewed-by: Liming Gao <liming.gao@intel.com>
    Vitaly Cheptsov via Groups.Io authored and mergify[bot] committed Jan 10, 2020
    Configuration menu
    Copy the full SHA
    df851da View commit details
    Browse the repository at this point in the history
  3. MdePkg BaseLib.h: Update IA32_CR4 strut to include all public fields

    Based on Intel Software Develeper's Manual, add all fields in IA32_CR4.
    
    Signed-off-by: Jason Voelz <jason.voelz@intel.com>
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Ray Ni <ray.ni@intel.com>
    Reviewed-by: Ray Ni <ray.ni@intel.com>
    jlvoelz authored and mergify[bot] committed Jan 10, 2020
    Configuration menu
    Copy the full SHA
    859046e View commit details
    Browse the repository at this point in the history
  4. UefiCpuPkg/CpuCommonFeaturesLib: SMXE bit of CR4 should set

    Add code to set SMXE in CR4 in the SmxInitialize flow when SMX is enabled.
    
    Signed-off-by: Jason Voelz <jason.voelz@intel.com>
    Cc: Ray Ni <ray.ni@intel.com>
    Reviewed-by: Ray Ni <ray.ni@intel.com>
    jlvoelz authored and mergify[bot] committed Jan 10, 2020
    Configuration menu
    Copy the full SHA
    1f0d809 View commit details
    Browse the repository at this point in the history
  5. BaseTools/PatchCheck.py: Extract email check code to EmailAddressCheck

    As we are going to reuse this code out of the CommitMessageCheck
    class, extract it in a new class: EmailAddressCheck.
    
    Cc: Bob Feng <bob.c.feng@intel.com>
    Cc: Liming Gao <liming.gao@intel.com>
    Reviewed-by: Bob Feng <bob.c.feng@intel.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 10, 2020
    Configuration menu
    Copy the full SHA
    8ffa47f View commit details
    Browse the repository at this point in the history
  6. BaseTools/PatchCheck.py: Check the committer email address

    To avoid patches committed with incorrect email address,
    use the EmailAddressCheck class on the committer email too.
    
    Cc: Bob Feng <bob.c.feng@intel.com>
    Cc: Liming Gao <liming.gao@intel.com>
    Reviewed-by: Bob Feng <bob.c.feng@intel.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 10, 2020
    Configuration menu
    Copy the full SHA
    8f38b08 View commit details
    Browse the repository at this point in the history
  7. BaseTools/PatchCheck.py: Let EmailAddressCheck describe email checked

    We are checking different emails from the signature list. We are
    going to check more. To be able to differency, add a description
    field, so the error reported is clearer.
    
    Cc: Bob Feng <bob.c.feng@intel.com>
    Cc: Liming Gao <liming.gao@intel.com>
    Reviewed-by: Bob Feng <bob.c.feng@intel.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 10, 2020
    Configuration menu
    Copy the full SHA
    8120390 View commit details
    Browse the repository at this point in the history
  8. BaseTools/PatchCheck.py: Check the patch author email address

    To avoid patches committed with incorrect email address,
    use the EmailAddressCheck class on the author email too.
    
    Example:
    
      $ python BaseTools/Scripts/PatchCheck.py 1a04951
      Checking git commit: 1a04951
      The 'Author' email address is not valid:
      * The email address cannot contain a space: /o=Intel/ou=External \
        (FYDIBOHF25SPDLT)/cn=Recipients/cn=fe425ca7e5f4401abed22b904fe5d964
    
    Cc: Bob Feng <bob.c.feng@intel.com>
    Cc: Liming Gao <liming.gao@intel.com>
    Reviewed-by: Bob Feng <bob.c.feng@intel.com>
    Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
    philmd authored and mergify[bot] committed Jan 10, 2020
    Configuration menu
    Copy the full SHA
    c0328cf View commit details
    Browse the repository at this point in the history
  9. Add a host-based test DSC for UnitTestFrameworkPkg.

    Bret Barkelew committed Jan 10, 2020
    Configuration menu
    Copy the full SHA
    e3ccf1c View commit details
    Browse the repository at this point in the history
  10. MdePkg: Add header file for Firmware Interface Table specification.

    This patch add FirmwareInterfaceTable.h for the Firmware Interface Table
    BIOS specification.
    
    This is to remove future edk2 dependency on edk2-platforms repo. The file
    content comes from
     edk2-platforms\Silicon\Intel\IntelSiliconPkg\Include\IndustryStandard
    
    BZ link: https://tianocore.acgmultimedia.com/show_bug.cgi?id=2449
    
    Cc: Michael D Kinney <michael.d.kinney@intel.com>
    Cc: Liming Gao <liming.gao@intel.com>
    Signed-off-by: Siyuan Fu <siyuan.fu@intel.com>
    Reviewed-by: Liming Gao <liming.gao@intel.com>
    sfu5 authored and mergify[bot] committed Jan 10, 2020
    Configuration menu
    Copy the full SHA
    c7c964b View commit details
    Browse the repository at this point in the history
  11. UefiCpuPkg: Shadow microcode patch according to FIT microcode entry.

    The existing MpInitLib will shadow the microcode update patches from
    flash to memory and this is done by searching microcode region specified
    by PCD PcdCpuMicrocodePatchAddress and PcdCpuMicrocodePatchRegionSize.
    This brings a limition to platform FW that all the microcode patches must
    be placed in one continuous flash space.
    
    This patch shadows microcode update according to FIT microcode entries if
    it's present, otherwise it will fallback to original logic (by PCD).
    
    A new featured PCD gUefiCpuPkgTokenSpaceGuid.PcdCpuShadowMicrocodeByFit
    is added for enabling/disabling this support.
    
    TEST: Tested on FIT enabled platform.
    BZ: https://tianocore.acgmultimedia.com/show_bug.cgi?id=2449
    
    Cc: Eric Dong <eric.dong@intel.com>
    Cc: Ray Ni <ray.ni@intel.com>
    Cc: Laszlo Ersek <lersek@redhat.com>
    Signed-off-by: Siyuan Fu <siyuan.fu@intel.com>
    Reviewed-by: Eric Dong <eric.dong@intel.com>
    Reviewed-by: Laszlo Ersek <lersek@redhat.com>
    sfu5 authored and mergify[bot] committed Jan 10, 2020
    Configuration menu
    Copy the full SHA
    dd01704 View commit details
    Browse the repository at this point in the history
  12. MdeModulePkg: remove EnterS3WithImmediateWake () from ResetSystemLib

    EnterS3WithImmediateWake () no longer has any callers, so remove it
    from ResetSystemLib.
    
    Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
    Reviewed-by: Ray Ni <ray.ni@intel.com>
    Ard Biesheuvel authored and mergify[bot] committed Jan 10, 2020
    Configuration menu
    Copy the full SHA
    7d3d87e View commit details
    Browse the repository at this point in the history
  13. PcAtChipsetPkg: remove EnterS3WithImmediateWake () from ResetSystemLib

    EnterS3WithImmediateWake () no longer has any callers, so remove it
    from ResetSystemLib.
    
    Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
    Reviewed-by: Ray Ni <ray.ni@intel.com>
    Ard Biesheuvel authored and mergify[bot] committed Jan 10, 2020
    Configuration menu
    Copy the full SHA
    6eacb85 View commit details
    Browse the repository at this point in the history
  14. UefiPayloadPkg: remove EnterS3WithImmediateWake () from ResetSystemLib

    EnterS3WithImmediateWake () no longer has any callers, so remove it
    from ResetSystemLib.
    
    Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
    Reviewed-by: Guo Dong <guo.dong@intel.com>
    Ard Biesheuvel authored and mergify[bot] committed Jan 10, 2020
    Configuration menu
    Copy the full SHA
    eaea26b View commit details
    Browse the repository at this point in the history
  15. OvmfPkg: remove EnterS3WithImmediateWake () from ResetSystemLib

    EnterS3WithImmediateWake () no longer has any callers, so remove it
    from ResetSystemLib.
    
    Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
    Reviewed-by: Laszlo Ersek <lersek@redhat.com>
    Ard Biesheuvel authored and mergify[bot] committed Jan 10, 2020
    Configuration menu
    Copy the full SHA
    2d9950a View commit details
    Browse the repository at this point in the history
  16. ArmVirtPkg: remove EnterS3WithImmediateWake () from ResetSystemLib

    EnterS3WithImmediateWake () no longer has any callers, so remove it
    from ResetSystemLib.
    
    Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
    Reviewed-by: Laszlo Ersek <lersek@redhat.com>
    Ard Biesheuvel authored and mergify[bot] committed Jan 10, 2020
    Configuration menu
    Copy the full SHA
    9d1c9d0 View commit details
    Browse the repository at this point in the history
  17. Fix compat between teardown functions and Cmocka.

    Bret Barkelew committed Jan 10, 2020
    Configuration menu
    Copy the full SHA
    953260b View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2020

  1. Standardize the AssertCmocka calls.

    Bret Barkelew committed Jan 11, 2020
    Configuration menu
    Copy the full SHA
    269de47 View commit details
    Browse the repository at this point in the history
  2. MdePkg/Include/Library: Rollback UnitTestLib change

    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 11, 2020
    Configuration menu
    Copy the full SHA
    38c56a3 View commit details
    Browse the repository at this point in the history
  3. UnitTestFrameworkPkg/UnitTestLib: Add cmocka gasket

    Add gasket between UnitTestLib unit tests APIs and the
    cmocka unit test APIs.
    
    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 11, 2020
    Configuration menu
    Copy the full SHA
    05c517f View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2020

  1. MdeModulePkg/SdMmcPciHcDxe: Fix unknown doxygen tag error

    Changed @rtval to @RetVal in SdMmcHcStartSdClock
    function description.
    
    Signed-off-by: Mateusz Albecki <mateusz.albecki@intel.com>
    Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
    malbecki authored and mergify[bot] committed Jan 13, 2020
    Configuration menu
    Copy the full SHA
    27f44ea View commit details
    Browse the repository at this point in the history
  2. BaseTools:Change the case rules for ECC check pointer names

    BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=2087
    
    In CryptHkdf.c  line 42
    
      EVP_PKEY_CTX *pHkdfCtx;
    
    Variable pHkdfCtx begins with lower case 'p',
    which should be acceptable because it it is a pointer.
    (Refer to CCS_2_1_Draft, 4.3.3.3)
    
    So ECC tool should be improved to handle issues like this.
    
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Bob Feng <bob.c.feng@intel.com>
    Reviewed-by: Bob Feng <bob.c.feng@intel.com>
    
    Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com>
    zhijufan authored and mergify[bot] committed Jan 13, 2020
    Configuration menu
    Copy the full SHA
    072b9c2 View commit details
    Browse the repository at this point in the history
  3. BaseTools:Fix GenFds issue for BuildOption replace GenFdsOption

    BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=2455
    
    BuildOption is used by TargetTxtClassObj.py
    GenFdsOption is used by GenFds.py
    When the GenFds tool is used alone (e.g. python3 -m GenFds.GenFds -h)
    With the OptionParser function, the first detected function
    prints the help message
    
    import TargetTxtClassObj to GenFds,
    The BuildOption will be executed and replace GenFdsOption
    
    We removed all objects associated with this problem that
    were created directly during the import process
    (e.g. BuildOption, BuildTarget = MyOptionParser(),
     TargetTxt = TargetTxtDict())
    
    The Patch is going to fix this issue
    
    Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com>
    
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Bob Feng <bob.c.feng@intel.com>
    Reviewed-by: Bob Feng <bob.c.feng@intel.com>
    zhijufan authored and mergify[bot] committed Jan 13, 2020
    Configuration menu
    Copy the full SHA
    4465cd1 View commit details
    Browse the repository at this point in the history
  4. Update Cmocka gasket to set the CurrentTest in the Framework so that …

    …Logs will work correctly.
    Bret Barkelew committed Jan 13, 2020
    Configuration menu
    Copy the full SHA
    e8a1d85 View commit details
    Browse the repository at this point in the history
  5. Add a log message to the SampleUnitTest.

    Bret Barkelew committed Jan 13, 2020
    Configuration menu
    Copy the full SHA
    46ad45e View commit details
    Browse the repository at this point in the history
  6. BaseTools/Scripts/PatchCheck: Address false error conditions

    https://bugzilla.tianocore.org/show_bug.cgi?id=2406
    
    * Always print subject line after the git commit id to make
      it easier to know the context of warnings or errors.
    * Allow UTF-8 characters in subject line
    * Error if subject line length > 75 without CVE-xxx-xxxxx present
    * Error if subject line length > 92 with CVE-xxxx-xxxxx present
    * If body line length is > 75, then print warning instead of error.
    
    Cc: Bob Feng <bob.c.feng@intel.com>
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Laszlo Ersek <lersek@redhat.com>
    Cc: Jordan Justen <jordan.l.justen@intel.com>
    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    Reviewed-by: Bob Feng <bob.c.feng@intel.com>
    Tested-by: Laszlo Ersek <lersek@redhat.com>
    mdkinney authored and mergify[bot] committed Jan 13, 2020
    Configuration menu
    Copy the full SHA
    b112ec2 View commit details
    Browse the repository at this point in the history
  7. Resolve Python 3.8 warnings.

    Bret Barkelew committed Jan 13, 2020
    Configuration menu
    Copy the full SHA
    64c91e8 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2020

  1. MdeModulePkg/UefiBootManagerLib: log reserved mem allocation failure

    The LoadFile protocol can report such a large buffer size that we cannot
    allocate enough reserved pages for. This particularly affects HTTP(S)
    Boot, if the remote file is very large (for example, an ISO image).
    
    While the TianoCore wiki mentions this at
    <https://github.com/tianocore/tianocore.github.io/wiki/HTTP-Boot#ram-disk-image-size>:
    
    > The maximum RAM disk image size depends on how much continuous reserved
    > memory block the platform could provide.
    
    it's hard to remember; so log a DEBUG_ERROR message when the allocation
    fails.
    
    This patch produces error messages such as:
    
    > UiApp:BmExpandLoadFile: failed to allocate reserved pages:
    > BufferSize=4501536768
    > LoadFile="PciRoot(0x0)/Pci(0x3,0x0)/MAC(5254001B103E,0x1)/
    >      IPv4(0.0.0.0,TCP,DHCP,192.168.124.106,192.168.124.1,255.255.255.0)/
    >      Dns(192.168.124.1)/
    >      Uri(https://ipv4-server/RHEL-7.7-20190723.1-Server-x86_64-dvd1.iso)"
    > FilePath=""
    
    (Manually rewrapped here for keeping PatchCheck.py happy.)
    
    Cc: Hao A Wu <hao.a.wu@intel.com>
    Cc: Jian J Wang <jian.j.wang@intel.com>
    Cc: Ray Ni <ray.ni@intel.com>
    Cc: Zhichao Gao <zhichao.gao@intel.com>
    Signed-off-by: Laszlo Ersek <lersek@redhat.com>
    Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Reviewed-by: Siyuan Fu <siyuan.fu@intel.com>
    Acked-by: Hao A Wu <hao.a.wu@intel.com>
    lersek authored and mergify[bot] committed Jan 14, 2020
    Configuration menu
    Copy the full SHA
    a56af23 View commit details
    Browse the repository at this point in the history
  2. NetworkPkg/HttpDxe: fix 32-bit truncation in HTTPS download

    When downloading over TLS, each TLS message ("APP packet") is returned as
    a (decrypted) fragment table by EFI_TLS_PROTOCOL.ProcessPacket().
    
    The TlsProcessMessage() function in "NetworkPkg/HttpDxe/HttpsSupport.c"
    linearizes the fragment table into a single contiguous data block. The
    resultant flat data block contains both TLS headers and data.
    
    The HttpsReceive() function parses the actual application data -- in this
    case: decrypted HTTP data -- out of the flattened TLS data block, peeling
    off the TLS headers.
    
    The HttpResponseWorker() function in "NetworkPkg/HttpDxe/HttpImpl.c"
    propagates this HTTP data outwards, implementing the
    EFI_HTTP_PROTOCOL.Response() function.
    
    Now consider the following documentation for EFI_HTTP_PROTOCOL.Response(),
    quoted from "MdePkg/Include/Protocol/Http.h":
    
    > It is the responsibility of the caller to allocate a buffer for Body and
    > specify the size in BodyLength. If the remote host provides a response
    > that contains a content body, up to BodyLength bytes will be copied from
    > the receive buffer into Body and BodyLength will be updated with the
    > amount of bytes received and copied to Body. This allows the client to
    > download a large file in chunks instead of into one contiguous block of
    > memory.
    
    Note that, if the caller-allocated buffer is larger than the
    server-provided chunk, then the transfer length is limited by the latter.
    This is in fact the dominant case when downloading a huge file (for which
    UefiBootManagerLib allocated a huge contiguous RAM Disk buffer) in small
    TLS messages.
    
    For adjusting BodyLength as described above -- i.e., to the application
    data chunk that has been extracted from the TLS message --, the
    HttpResponseWorker() function employs the following assignment:
    
        HttpMsg->BodyLength = MIN (Fragment.Len, (UINT32) HttpMsg->BodyLength);
    
    The (UINT32) cast is motivated by the MIN() requirement -- in
    "MdePkg/Include/Base.h" -- that both arguments be of the same type.
    
    "Fragment.Len" (NET_FRAGMENT.Len) has type UINT32, and
    "HttpMsg->BodyLength" (EFI_HTTP_MESSAGE.BodyLength) has type UINTN.
    Therefore a cast is indeed necessary.
    
    Unfortunately, the cast is done in the wrong direction. Consider the
    following circumstances:
    
    - "Fragment.Len" happens to be consistently 16KiB, dictated by the HTTPS
      Server's TLS stack,
    
    - the size of the file to download is 4GiB + N*16KiB, where N is a
      positive integer.
    
    As the download progresses, each received 16KiB application data chunk
    brings the *next* input value of BodyLength closer down to 4GiB. The cast
    in MIN() always masks off the high-order bits from the input value of
    BodyLength, but this is no problem because the low-order bits are nonzero,
    therefore the MIN() always permits progress.
    
    However, once BodyLength reaches 4GiB exactly on input, the MIN()
    invocation produces a zero value. HttpResponseWorker() adjusts the output
    value of BodyLength to zero, and then passes it to HttpParseMessageBody().
    
    HttpParseMessageBody() (in "NetworkPkg/Library/DxeHttpLib/DxeHttpLib.c")
    rejects the zero BodyLength with EFI_INVALID_PARAMETER, which is fully
    propagated outwards, and aborts the HTTPS download. HttpBootDxe writes the
    message "Error: Unexpected network error" to the UEFI console.
    
    For example, a file with size (4GiB + 197MiB) terminates after downloading
    just 197MiB.
    
    Invert the direction of the cast: widen "Fragment.Len" to UINTN.
    
    Cc: Jiaxin Wu <jiaxin.wu@intel.com>
    Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com>
    Cc: Siyuan Fu <siyuan.fu@intel.com>
    Signed-off-by: Laszlo Ersek <lersek@redhat.com>
    Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Reviewed-by: Siyuan Fu <siyuan.fu@intel.com>
    Reviewed-by: Maciej Rabeda <maciej.rabeda@linux.intel.com>
    lersek authored and mergify[bot] committed Jan 14, 2020
    Configuration menu
    Copy the full SHA
    4cca792 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f550dac View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c0d545c View commit details
    Browse the repository at this point in the history
  5. ArmPkg/ArmSmcPsciResetSystemLib: remove EnterS3WithImmediateWake ()

    EnterS3WithImmediateWake () no longer has any callers, so remove it
    from ResetSystemLib. Note that this means the hack to support warm
    reboot by jumping to the SEC entry point with the MMU and caches off
    is also no longer used, and can be removed as well, along with the PCD
    PcdArmReenterPeiForCapsuleWarmReboot that was introduced for this
    purpose.
    
    Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
    Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
    Ard Biesheuvel authored and mergify[bot] committed Jan 14, 2020
    Configuration menu
    Copy the full SHA
    e3756ba View commit details
    Browse the repository at this point in the history
  6. ArmPlatformPkg/PrePeiCore: enable VFP at startup

    While the alternative PEI-less SEC implementation in PrePi already
    takes the EnableVFP PCD into account, the PrePeiCore code does not,
    and so we may end up triggering synchronous exception when code
    attempts to use FP or SIMD registers, which is permitted on AARCH64
    by the spec.
    
    So enable the VFP as early as feasible if the associated PCD is set.
    
    Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
    Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
    Ard Biesheuvel authored and mergify[bot] committed Jan 14, 2020
    Configuration menu
    Copy the full SHA
    a6a835b View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2020

  1. MdeModulePkg/Setup: Update opcode number variable type to UINTN

    Update data type of variables which save the opcode numbers
    to UINTN, in case some configuration module has lots of
    configuration items.
    
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Eric Dong <eric.dong@intel.com>
    Signed-off-by: Brian R Haug <brian.r.haug@intel.com>
    Reviewed-by: Dandan Bi <dandan.bi@intel.com>
    Reviewed-by: Liming Gao <liming.gao@intel.com>
    Reviewed-by: Laszlo Ersek <lersek@redhat.com>
    Reviewed-by: Eric Dong <eric.dong@intel.com>
    brianrhaug-intel authored and mergify[bot] committed Jan 15, 2020
    Configuration menu
    Copy the full SHA
    94057f7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    07352d7 View commit details
    Browse the repository at this point in the history
  3. BaseTools/Capsule: Add capsule dependency support

    REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2412
    
    Capsule generate tool support encode capsule dependencies through '-j'
    command with a JSON file. To enable dependency feature, "Dependencies"
    field for each payload in JSON file is required.
    The value of "Dependencies" field is C style infix notation expression.
    For example:
      "Dependencies":"72E2945A-00DA-448E-9AA7-075AD840F9D4 > 0x00000001"
    
    The relation of Dependency Expression Opcode in UEFI2.8 chap 23.2 and
    infix notation expression value is as follows:
    +-----------------------------+--------------------------+
    | OPCODE                      | INFIX EXPRESSION VALUE   |
    +-----------------------------+--------------------------+
    | 0x00 (PUSH_GUID)            | {GUID}                   |
    | 0x01 (PUSH_VERSION)         | {UINT32}                 |
    | 0x02 (DECLEAR_VERSION_NAME} | DECLEAR "{VERSION_NAME}" |
    | 0x03 (AND)                  | &&                       |
    | 0x04 (OR)                   | ||                       |
    | 0x05 (NOT)                  | ~                        |
    | 0x06 (TRUE)                 | TRUE                     |
    | 0x07 (FALSE)                | FALSE                    |
    | 0x08 (EQ)                   | ==                       |
    | 0x09 (GT)                   | >                        |
    | 0x0A (GTE)                  | >=                       |
    | 0x0B (LT)                   | <                        |
    | 0x0C (LTE)                  | <=                       |
    +-----------------------------+--------------------------+
    
    Cc: Bob Feng <bob.c.feng@intel.com>
    Cc: Liming Gao <liming.gao@intel.com>
    
    Signed-off-by: Aaron Li <aaron.li@intel.com>
    
    Reviewed-by: Bob Feng <bob.c.feng@intel.com>
    Li-Aaron authored and mergify[bot] committed Jan 15, 2020
    Configuration menu
    Copy the full SHA
    f6f66e0 View commit details
    Browse the repository at this point in the history
  4. ShellPkg: acpiview: Update SRAT parser to ACPI 6.3

    Add support for revision 3 of System Resource Affinity Table (SRAT).
    
    Decode and dump the new Generic Initiator Affinity Structure.
    
    Validate the Device Handle Type field inside the Generic Initiator
    Affinity Structure.
    
    Reviewed-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
    Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
    Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
    Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
    Tested-by: Sudipto Paul <sudipto.paul@arm.com>
    Signed-off-by: Krzysztof Koch <krzysztof.koch@arm.com>
    KrzysztofKoch1 authored and mergify[bot] committed Jan 15, 2020
    Configuration menu
    Copy the full SHA
    710ff74 View commit details
    Browse the repository at this point in the history
  5. Tweak the documentation to align with new state of code.

    Bret Barkelew committed Jan 15, 2020
    Configuration menu
    Copy the full SHA
    7d180f9 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2020

  1. MdePkg Base.h: Use correct style to check the defined macro

    #if MACRO is not good style. It should be changed to
    #ifdef MACRO style or #if defined (MACRO) style.
    
    Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
    Reviewed-by: Liming Gao <liming.gao@intel.com>
    lgao4 authored and mergify[bot] committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    63653ff View commit details
    Browse the repository at this point in the history
  2. Add inital port of BaseLib UnitTest that supports base64 encode/decod…

    …e. Test currently aborts due to memory corruption.
    
    (cherry picked from commit 2af6abf)
    spbrogan authored and Bret Barkelew committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    3756d3a View commit details
    Browse the repository at this point in the history
  3. Update Base64 Unit Test

    * Resolve memory corruption caused by improper test code
    * Change test descriptions to be more meaningful
    * Add error test case for encode
    * Remove duplicate encode test case
    
    (cherry picked from commit 2901689)
    spbrogan authored and Bret Barkelew committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    4cfb180 View commit details
    Browse the repository at this point in the history
  4. Bug fix for reallocate pool

    (cherry picked from commit 47dbf42)
    spbrogan authored and Bret Barkelew committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    97fb055 View commit details
    Browse the repository at this point in the history
  5. Add more context to cmocka log hack

    (cherry picked from commit 689d596)
    spbrogan authored and Bret Barkelew committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    1862a36 View commit details
    Browse the repository at this point in the history
  6. MdeModulePkg/Variable: Fix VarErrorFlag RT cache offset calculation

    REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2457
    
    This commit fixes an offset calculation that is used to write the
    VarErrorFlag UEFI variable to the UEFI variable runtime cache.
    
    Currently a physical address is used instead of an offset. This
    commit changes the offset to zero with a length of the entire
    non-volatile variable store so the entire non-volatile variable
    store buffer in SMRAM (with the variable update modification) is
    copied to the runtime variable cache. This follows the same pattern
    used in other SynchronizeRuntimeVariableCache () calls for
    consistency.
    
    * Observable symptom: An exception in SMM will most likely occur
      due to the invalid memory reference when the VarErrorFlag variable
      is written. The variable is most commonly written when the UEFI
      variable store is full.
    
    * The issue only occurs when the variable runtime cache is enabled
      by the following PCD being set to TRUE:
      gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache
    
    Fixes: aab3b9b
    
    Cc: Liming Gao <liming.gao@intel.com>
    Cc: Michael D Kinney <michael.d.kinney@intel.com>
    Cc: Michael Turner <michael.turner@microsoft.com>
    Cc: Jian J Wang <jian.j.wang@intel.com>
    Cc: Hao A Wu <hao.a.wu@intel.com>
    Signed-off-by: Michael Kubacki <michael.a.kubacki@intel.com>
    Reviewed-by: Liming Gao <liming.gao@intel.com>
    Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
    makubacki authored and mergify[bot] committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    302eb57 View commit details
    Browse the repository at this point in the history
  7. Add a Cmocka test for DxeResetSystem to demo mocking and advanced fea…

    …tures.
    Bret Barkelew committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    8064a0a View commit details
    Browse the repository at this point in the history
  8. Rather than depend on a "Framework" local variable, change the Assert…

    …ion and Logging macros to us GetActiveFrameworkHandle() function.
    Bret Barkelew committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    27cd81f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d438fc8 View commit details
    Browse the repository at this point in the history
  10. UefiCpuPkg/PiSmmCpuDxeSmm: fix 2M->4K page splitting regression for PDEs

    In commit 4eee0cc ("UefiCpuPkg/PiSmmCpu: Enable 5 level paging when
    CPU supports", 2019-07-12), the Page Directory Entry setting was regressed
    (corrupted) when splitting a 2MB page to 512 4KB pages, in the
    InitPaging() function.
    
    Consider the following hunk, displayed with
    
    $ git show --function-context --ignore-space-change 4eee0cc
    
    >            //
    >            // If it is 2M page, check IsAddressSplit()
    >            //
    >            if (((*Pd & IA32_PG_PS) != 0) && IsAddressSplit (Address)) {
    >              //
    >              // Based on current page table, create 4KB page table for split area.
    >              //
    >              ASSERT (Address == (*Pd & PHYSICAL_ADDRESS_MASK));
    >
    >              Pt = AllocatePageTableMemory (1);
    >              ASSERT (Pt != NULL);
    >
    > +            *Pd = (UINTN) Pt | IA32_PG_RW | IA32_PG_P;
    > +
    >              // Split it
    > -          for (PtIndex = 0; PtIndex < SIZE_4KB / sizeof(*Pt); PtIndex++) {
    > -            Pt[PtIndex] = Address + ((PtIndex << 12) | mAddressEncMask | PAGE_ATTRIBUTE_BITS);
    > +            for (PtIndex = 0; PtIndex < SIZE_4KB / sizeof(*Pt); PtIndex++, Pt++) {
    > +              *Pt = Address + ((PtIndex << 12) | mAddressEncMask | PAGE_ATTRIBUTE_BITS);
    >              } // end for PT
    >              *Pd = (UINT64)(UINTN)Pt | mAddressEncMask | PAGE_ATTRIBUTE_BITS;
    >            } // end if IsAddressSplit
    >          } // end for PD
    
    First, the new assignment to the Page Directory Entry (*Pd) is
    superfluous. That's because (a) we set (*Pd) after the Page Table Entry
    loop anyway, and (b) here we do not attempt to access the memory starting
    at "Address" (which is mapped by the original value of the Page Directory
    Entry).
    
    Second, appending "Pt++" to the incrementing expression of the PTE loop is
    a bug. It causes "Pt" to point *right past* the just-allocated Page Table,
    once we finish the loop. But the PDE assignment that immediately follows
    the loop assumes that "Pt" still points to the *start* of the new Page
    Table.
    
    The result is that the originally mapped 2MB page disappears from the
    processor's view. The PDE now points to a "Page Table" that is filled with
    garbage. The random entries in that "Page Table" will cause some virtual
    addresses in the original 2MB area to fault. Other virtual addresses in
    the same range will no longer have a 1:1 physical mapping, but be
    scattered over random physical page frames.
    
    The second phase of the InitPaging() function ("Go through page table and
    set several page table entries to absent or execute-disable") already
    manipulates entries in wrong Page Tables, for such PDEs that got split in
    the first phase.
    
    This issue has been caught as follows:
    
    - OVMF is started with 2001 MB of guest RAM.
    
    - This places the main SMRAM window at 0x7C10_1000.
    
    - The SMRAM management in the SMM Core links this SMRAM window into
      "mSmmMemoryMap", with a FREE_PAGE_LIST record placed at the start of the
      area.
    
    - At "SMM Ready To Lock" time, PiSmmCpuDxeSmm calls InitPaging(). The
      first phase (quoted above) decides to split the 2MB page at 0x7C00_0000
      into 512 4KB pages, and corrupts the PDE. The new Page Table is
      allocated at 0x7CE0_D000, but the PDE is set to 0x7CE0_E000 (plus
      attributes 0x67).
    
    - Due to the corrupted PDE, the second phase of InitPaging() already looks
      up the PTE for Address=0x7C10_1000 in the wrong place. The second phase
      goes on to mark bogus PTEs as "NX".
    
    - PiSmmCpuDxeSmm calls SetMemMapAttributes(). Address 0x7C10_1000 is at
      the base of the SMRAM window, therefore it happens to be listed in the
      SMRAM map as an EfiConventionalMemory region. SetMemMapAttributes()
      calls SmmSetMemoryAttributes() to mark the region as XP. However,
      GetPageTableEntry() in ConvertMemoryPageAttributes() fails -- address
      0x7C10_1000 is no longer mapped by anything! -- and so the attribute
      setting fails with RETURN_UNSUPPORTED. This error goes unnoticed, as
      SetMemMapAttributes() ignores the return value of
      SmmSetMemoryAttributes().
    
    - When SetMemMapAttributes() reaches another entry in the SMRAM map,
      ConvertMemoryPageAttributes() decides it needs to split a 2MB page, and
      calls SplitPage().
    
    - SplitPage() calls AllocatePageTableMemory() for the new Page Table,
      which takes us to InternalAllocMaxAddress() in the SMM Core.
    
    - The SMM core attempts to read the FREE_PAGE_LIST record at 0x7C10_1000.
      Because this virtual address is no longer mapped, the firmware crashes
      in InternalAllocMaxAddress(), when accessing (Pages->NumberOfPages).
    
    Remove the useless assignment to (*Pd) from before the loop. Revert the
    loop incrementing and the PTE assignment to the known good version.
    
    Cc: Eric Dong <eric.dong@intel.com>
    Cc: Ray Ni <ray.ni@intel.com>
    Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1789335
    Fixes: 4eee0cc
    Signed-off-by: Laszlo Ersek <lersek@redhat.com>
    Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Reviewed-by: Ray Ni <ray.ni@intel.com>
    lersek authored and mergify[bot] committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    a523556 View commit details
    Browse the repository at this point in the history
  11. Merge branch 'master' into edk2-host-test_v2

    Bret Barkelew committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    80e3d15 View commit details
    Browse the repository at this point in the history
  12. Drop a test case that no longer aligns with upstream.

    Bret Barkelew committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    47873d6 View commit details
    Browse the repository at this point in the history
  13. Add a valid dependency to fix CI tests.

    Bret Barkelew committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    61278d5 View commit details
    Browse the repository at this point in the history
  14. Remove GetActiveFrameworkHandle from the public interface.

    Bret Barkelew committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    335851f View commit details
    Browse the repository at this point in the history
  15. Fix the ADO jobs.

    Bret Barkelew committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    078df5e View commit details
    Browse the repository at this point in the history
  16. UnitTestFrameworkPkg/UnitTestLib: Simplify assert APIs

    Move Framwork into internal API.
    Fix code style issues
    
    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    4f9db3c View commit details
    Browse the repository at this point in the history
  17. MdePkg/Include/UnitTestLib: Make all handle types unique

    * Add a unique type for each handle type to generate compiler
      error if wrong handle is used with anu unit test API
    * Fix incorrect handle type in RunAllTestSuites()
    * Fix incorrect handle type in FreeUnitTestFramework()
    * Start clean up of function headers
    
    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    5a675d8 View commit details
    Browse the repository at this point in the history
  18. UnitTestFrameworkPlg/UnitTestLib: Clean up handle usage

    * UnitTestLogInit() - Use UNIT_TEST * instead of UNIT_TEST_HANDLE.
      This is internal API that does not need to use handle.
    * Add ASSERT() to GetActiveFrameworkHandle() to make sure
      mFrameworkHandle is not NULL.  This catches a call to a unit test
      without using RunAllTestCases().
    * Fix incorrect handle type usage.
    
    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    2c073bc View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2020

  1. MdeModulePkg/DxeResetSystemLib/UnitTest: Add UefiRuntimeServicesLib i…

    …nstance
    
    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 18, 2020
    Configuration menu
    Copy the full SHA
    e7dda6a View commit details
    Browse the repository at this point in the history
  2. UnitTestFrameworkPkg: Remove MockLibraryClassLibNull

    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 18, 2020
    Configuration menu
    Copy the full SHA
    9a1a021 View commit details
    Browse the repository at this point in the history
  3. Remove UNIT_TEST_FRAMEWORK_HANDLE parameter

    Remove the UNIT_TEST_FRAMEWORK_HANDLE from the 5 function
    prototype for the Suite Setup, Suite Teardown, Unit Test
    Prerequiisite, Unit Test Function, Unit Test Cleanup.
    
    Update UnitTestLib test runners to remove this parameter.
    
    Remove parameter from all unit test cases.
    
    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 18, 2020
    Configuration menu
    Copy the full SHA
    67e9484 View commit details
    Browse the repository at this point in the history
  4. Fix misspelling

    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 18, 2020
    Configuration menu
    Copy the full SHA
    6e1ebc6 View commit details
    Browse the repository at this point in the history
  5. Complete fix of misplelled word 'Moch' to 'Mock'

    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 18, 2020
    Configuration menu
    Copy the full SHA
    c458e7e View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2020

  1. Add Mock library to the HostApplication DSC.

    Bret Barkelew committed Jan 21, 2020
    Configuration menu
    Copy the full SHA
    966e3a5 View commit details
    Browse the repository at this point in the history
  2. Fix a spelling error.

    Bret Barkelew committed Jan 21, 2020
    Configuration menu
    Copy the full SHA
    24c158d View commit details
    Browse the repository at this point in the history
  3. Update BaseSafeIntLib test cases to reflect the correct implementatio…

    …ns of SafeInt<x>ToChar8().
    Bret Barkelew committed Jan 21, 2020
    Configuration menu
    Copy the full SHA
    598c0fe View commit details
    Browse the repository at this point in the history
  4. UnitTestFrameworkPkg: General cleanups

    * Change DEC PACKAGE_NAME from UnitTestPkg to UnitTestFrameworkPkg.
    * CHange token space guid name from UnitTestPkgTokenSpaceGuid to
      UnitTestFrameworkPkgTokenSpaceGuid
    * Add detailed description of PcdUnitTestLogLevel
    * Add package UNI file with description of package and PcdUnitTestLogLevel.
    * Remove use of defines from DebugLib and add unit test specific defines
      for logging levels.
    * Change "PREREQ" and "PreReq" to "PREREQUISITE" and "Prerequisite"
    * Change param/field "ClassName" to "Name"
    * Change param/field "Package" to "Name"
    * Change param/field "Func" to "Function"
    * Complete UnitTestLib.h class function/macro descriptions
    * Update function headers for UnitTestLib instance to match class.
    * CreateUnitTestSuite() - Check if SuiteHandle is NULL
    * AddTestCase() - Check if Function is NULL.
    * AddTestCase() - Check of NewTestEntry->UT.Name is NULL.
    * UintTestLog() - Remove LogLevel local variable.
    * UnitTestAssertMemEqual() - Change ValueA and ValueB to BufferA and
      BufferB and make them VOID* instead of UINTN.  Update macro to use
      (VOID *)(UINTN) typecase for max compat with possible input params.
    * UnitTestLib/Assert.c - Use UT_LOG_ERROR() instead of UnitTestLog()
    
    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 21, 2020
    Configuration menu
    Copy the full SHA
    f7449d6 View commit details
    Browse the repository at this point in the history
  5. UnitTestFrameworkPkg/UnitTestLib: Remove unused local Framework

    Remove local variable Framework that is set but not used.
    Resolves GCC build failure.
    
    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 21, 2020
    Configuration menu
    Copy the full SHA
    4523df7 View commit details
    Browse the repository at this point in the history
  6. MdeModulePkg/DxeResetSystemLib/Test: Update mock ResetSystem() API to…

    … be EFIAPI
    
    Resolves GCC build failure.
    
    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 21, 2020
    Configuration menu
    Copy the full SHA
    ef82a8f View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2020

  1. UnitTestFrameworkPkg: More clean ups

    * EDK II code style issues
    * CR/LF line endings
    * Copyright updates
    
    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 22, 2020
    Configuration menu
    Copy the full SHA
    1f0a850 View commit details
    Browse the repository at this point in the history
  2. Fix spelling errors

    Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
    mdkinney committed Jan 22, 2020
    Configuration menu
    Copy the full SHA
    007cc2b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7b4972e View commit details
    Browse the repository at this point in the history