Reviewed-by: Ray Ni <ray.ni@intel.com>

Thanks,
Ray

From: devel@edk2.groups.io <devel@edk2.groups.io> on behalf of Yuanhao Xie <yuanhao.xie@intel.com>
Sent: Wednesday, September 13, 2023 12:26 PM
To: devel@edk2.groups.io <devel@edk2.groups.io>
Subject: [edk2-devel] [PATCH 00/16] MtrrLib modules and Unit test Enhancement
 
Update MtrrLib modules to handle the absense of Fixed MTRRs
Update unit test of Update for the absense of Fixed MTRRs

Ray Ni (6):
  UefiCpuPkg/MtrrLib: Add internal function MtrrLibIsMtrrSupported.
  UefiCpuPkg/MtrrUnitTest: Update test to cover no-fixed-mtrr cases.
  UefiCpuPkg/MtrrLib: Fix MtrrGetAllMtrrs to return correct MTRR
    setting.
  UefiCpuPkg/MtrrLib: Fix MtrrSetAllMtrrs to handle absent fixed MTRRs.
  UefiCpuPkg/MtrrLib: Update APIs related to set memory attributes.
  UefiCpuPkg/CpuDxe: Update RefreshMemoryAttributesFromMtrr.

YuanhaoXie (10):
  UefiCpuPkg/MtrrUnitTest: Update the Unit Test for IsMtrrSupported().
  UefiCpuPkg/MtrrUnitTest: Update UnitTestGetFirmwareVariableMtrrCount.
  UefiCpuPkg/MtrrUnitTest: Update UnitTestMtrrGetDefaultMemoryType.
  UefiCpuPkg/MtrrUnitTest: Update UnitTestMtrrGetAllMtrrs().
  UefiCpuPkg/MtrrLib: Update MtrrGetFixedMtrr().
  UefiCpuPkg/MtrrUnitTest: Update UnitTestMtrrGetFixedMtrr().
  UefiCpuPkg/MtrrUnitTest: Update UnitTestMtrrSetAllMtrrs().
  UefiCpuPkg/MtrrLib: Add API MtrrGetMemoryAttributesInMtrrSettings.
  UefiCpuPkg/MtrrLib: Improve MtrrDebugPrintAllMtrrsWorker.
  UefiCpuPkg/MtrrUnitTest: Add Unit test of setting/getting memory
    attributes

 UefiCpuPkg/CpuDxe/CpuDxe.c                            | 309 ++++++++++++++++++++++++++++++++++++---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 UefiCpuPkg/Include/Library/MtrrLib.h                  |  32 +++++++++++++++++++++++++++++---
 UefiCpuPkg/Library/MtrrLib/MtrrLib.c                  | 391 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------------------------------------------------------------------------------
 UefiCpuPkg/Library/MtrrLib/UnitTest/MtrrLibUnitTest.c | 244 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------
 UefiCpuPkg/Library/MtrrLib/UnitTest/Support.c         |  24 +++++++++++++++---------
 5 files changed, 532 insertions(+), 468 deletions(-)

--
2.36.1.windows.1






_._,_._,_

Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#109238) | | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_