[edk2-devel] [PATCH 00/16] MtrrLib modules and Unit test Enhancement

Yuanhao Xie posted 16 patches 8 months, 1 week ago
Only 11 patches received!
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(-)
[edk2-devel] [PATCH 00/16] MtrrLib modules and Unit test Enhancement
Posted by Yuanhao Xie 8 months, 1 week ago
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 (#108556): https://edk2.groups.io/g/devel/message/108556
Mute This Topic: https://groups.io/mt/101331015/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [PATCH 00/16] MtrrLib modules and Unit test Enhancement
Posted by Ni, Ray 7 months, 3 weeks ago
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): https://edk2.groups.io/g/devel/message/109238
Mute This Topic: https://groups.io/mt/101331015/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/leave/3901457/1787277/102458076/xyzzy [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [edk2-devel] [PATCH 00/16] MtrrLib modules and Unit test Enhancement
Posted by Dong, Eric 7 months, 2 weeks ago
Reviewed-by: Eric Dong <eric.dong@intel.com>

-----Original Message-----
From: devel@edk2.groups.io <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 (#109434): https://edk2.groups.io/g/devel/message/109434
Mute This Topic: https://groups.io/mt/101331015/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-