From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 3E65D21BC6A25 for ; Tue, 28 Mar 2017 20:03:49 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP; 28 Mar 2017 20:03:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,239,1486454400"; d="scan'208";a="1113146573" Received: from ray-dev.ccr.corp.intel.com ([10.239.9.25]) by orsmga001.jf.intel.com with ESMTP; 28 Mar 2017 20:03:48 -0700 From: Ruiyu Ni To: edk2-devel@lists.01.org Date: Wed, 29 Mar 2017 11:03:36 +0800 Message-Id: <20170329030346.249872-1-ruiyu.ni@intel.com> X-Mailer: git-send-email 2.9.0.windows.1 Subject: [PATCH 00/10] Use a better algorithm to calculate MTRR X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Mar 2017 03:03:49 -0000 The new algorithm finds out the more optimal MTRR solution for current memory type settings. Compare against the original algorithm, the new one guarantees to find the correct MTRR solution, but doesn't guarantee to find the most optimal MTRR solution. Ruiyu Ni (10): UefiCpuPkg/MtrrLib: Correct typo in comments and remove TABs UefiCpuPkg/MtrrLib: Add CacheInvalid enum type to MtrrLib.h UefiCpuPkg/MtrrLib: IsMtrrSupported uses definitions in Msr.h UefiCpuPkg/MtrrLib: GetVariableMtrrCountWorker uses definitions in Msr.h UefiCpuPkg/MtrrLib: Add MtrrLib prefix to ProgramFixedMtrr UefiCpuPkg/MtrrLib: Add MtrrLib prefix to several internal functions UefiCpuPkg/MtrrLib: MtrrLibInitializeMtrrMask() uses definitions in CpuId.h UefiCpuPkg/MtrrLib: Use a better algorithm to calculate MTRR UefiCpuPkg/MtrrLib: Refine MtrrGetMemoryAttributeByAddressWorker UefiCpuPkg/MtrrLib: All functions use definitions in Msr.h UefiCpuPkg/Include/Library/MtrrLib.h | 17 +- UefiCpuPkg/Library/MtrrLib/MtrrLib.c | 1838 ++++++++++++++++++++-------------- 2 files changed, 1068 insertions(+), 787 deletions(-) -- 2.9.0.windows.1