Reviewed-by: Ray Ni Thanks, Ray ________________________________ From: devel@edk2.groups.io on behalf of Yuanhao Xie Sent: Wednesday, September 13, 2023 12:26 PM To: 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): https://edk2.groups.io/g/devel/message/109238 Mute This Topic: https://groups.io/mt/101331015/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/leave/12367111/7686176/1913456212/xyzzy [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-