Re: [edk2] [Patch 0/3] Improve Fixed-MTRR programming performance

2016-04-27 Thread Fan, Jeff
! Jeff -Original Message- From: Tian, Feng Sent: Thursday, April 28, 2016 11:28 AM To: Fan, Jeff; edk2-devel@lists.01.org Cc: Tian, Feng Subject: RE: [edk2] [Patch 0/3] Improve Fixed-MTRR programming performance For patch #1, I have comment: 1. the parameter name is StartMsrNum, but the

Re: [edk2] [Patch 0/3] Improve Fixed-MTRR programming performance

2016-04-27 Thread Tian, Feng
d-by: Feng Tian Thanks Feng -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Jeff Fan Sent: Friday, April 22, 2016 2:06 PM To: edk2-devel@lists.01.org Subject: [edk2] [Patch 0/3] Improve Fixed-MTRR programming performance Internal function Progra

[edk2] [Patch 0/3] Improve Fixed-MTRR programming performance

2016-04-21 Thread Jeff Fan
Internal function ProgramFixedMtrr() is used to calculate Fixed-MTRR and/or mask values. It used 3 loops to search Fixed-MTRR index and bytes offset, and to calculate mask values. We optimized this function to reduce the loops time and got at least 50% performance improvement on real platform. Je