[edk2] [PATCH 0/4] Update MTRR algorithm to calculate optimal settings

Ruiyu Ni posted 4 patches 6 years, 6 months ago
Failed in applying to current master (apply log)
UefiCpuPkg/Include/Library/MtrrLib.h |   45 +-
UefiCpuPkg/Library/MtrrLib/MtrrLib.c | 2605 ++++++++++++++++++++--------------
2 files changed, 1550 insertions(+), 1100 deletions(-)
[edk2] [PATCH 0/4] Update MTRR algorithm to calculate optimal settings
Posted by Ruiyu Ni 6 years, 6 months ago
Ruiyu Ni (4):
  UefiCpuPkg/MtrrLib: refine MtrrLibProgramFixedMtrr()
  UefiCpuPkg/MtrrLib: Optimize MtrrLibLeastAlignment()
  UefiCpuPkg/MtrrLib: Update algorithm to calculate optimal settings
  UefiCpuPkg/MtrrLib: Skip Base MSR access when the pair is invalid

 UefiCpuPkg/Include/Library/MtrrLib.h |   45 +-
 UefiCpuPkg/Library/MtrrLib/MtrrLib.c | 2605 ++++++++++++++++++++--------------
 2 files changed, 1550 insertions(+), 1100 deletions(-)

-- 
2.12.2.windows.2

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
Re: [edk2] [PATCH 0/4] Update MTRR algorithm to calculate optimal settings
Posted by Yao, Jiewen 6 years, 6 months ago
Thanks.

Would you mind to share to all of us on which platform has been tested and which unit test has been done?
As such people can have more confidence.

With the test description message added, reviewed-by: Jiewen.yao@intel.com

Thank you
Yao Jiewen

> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Ni,
> Ruiyu
> Sent: Thursday, October 12, 2017 4:48 PM
> To: edk2-devel@lists.01.org
> Subject: [edk2] [PATCH 0/4] Update MTRR algorithm to calculate optimal settings
> 
> Ruiyu Ni (4):
>   UefiCpuPkg/MtrrLib: refine MtrrLibProgramFixedMtrr()
>   UefiCpuPkg/MtrrLib: Optimize MtrrLibLeastAlignment()
>   UefiCpuPkg/MtrrLib: Update algorithm to calculate optimal settings
>   UefiCpuPkg/MtrrLib: Skip Base MSR access when the pair is invalid
> 
>  UefiCpuPkg/Include/Library/MtrrLib.h |   45 +-
>  UefiCpuPkg/Library/MtrrLib/MtrrLib.c | 2605
> ++++++++++++++++++++--------------
>  2 files changed, 1550 insertions(+), 1100 deletions(-)
> 
> --
> 2.12.2.windows.2
> 
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
Re: [edk2] [PATCH 0/4] Update MTRR algorithm to calculate optimal settings
Posted by Ni, Ruiyu 6 years, 6 months ago
I have tested to boot OVMF 32PEI+64DXE.
I have tested using random memory settings:
  1. Generate random memory settings and tried to convert the settings to MTRRs.
  2. Read back the MTRRs and verify the settings match to the desired memory settings.



Thanks/Ray

> -----Original Message-----
> From: Yao, Jiewen
> Sent: Monday, October 16, 2017 11:03 AM
> To: Ni, Ruiyu <ruiyu.ni@intel.com>; edk2-devel@lists.01.org
> Subject: RE: [edk2] [PATCH 0/4] Update MTRR algorithm to calculate optimal
> settings
> 
> Thanks.
> 
> Would you mind to share to all of us on which platform has been tested and
> which unit test has been done?
> As such people can have more confidence.
> 
> With the test description message added, reviewed-by:
> Jiewen.yao@intel.com
> 
> Thank you
> Yao Jiewen
> 
> > -----Original Message-----
> > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of
> > Ni, Ruiyu
> > Sent: Thursday, October 12, 2017 4:48 PM
> > To: edk2-devel@lists.01.org
> > Subject: [edk2] [PATCH 0/4] Update MTRR algorithm to calculate optimal
> > settings
> >
> > Ruiyu Ni (4):
> >   UefiCpuPkg/MtrrLib: refine MtrrLibProgramFixedMtrr()
> >   UefiCpuPkg/MtrrLib: Optimize MtrrLibLeastAlignment()
> >   UefiCpuPkg/MtrrLib: Update algorithm to calculate optimal settings
> >   UefiCpuPkg/MtrrLib: Skip Base MSR access when the pair is invalid
> >
> >  UefiCpuPkg/Include/Library/MtrrLib.h |   45 +-
> >  UefiCpuPkg/Library/MtrrLib/MtrrLib.c | 2605
> > ++++++++++++++++++++--------------
> >  2 files changed, 1550 insertions(+), 1100 deletions(-)
> >
> > --
> > 2.12.2.windows.2
> >
> > _______________________________________________
> > edk2-devel mailing list
> > edk2-devel@lists.01.org
> > https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel