From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 599FA1A1E06 for ; Fri, 2 Sep 2016 06:58:54 -0700 (PDT) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP; 02 Sep 2016 06:58:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,271,1470726000"; d="scan'208";a="3896954" Received: from ray-dev.ccr.corp.intel.com ([10.239.9.25]) by fmsmga005.fm.intel.com with ESMTP; 02 Sep 2016 06:58:53 -0700 From: Ruiyu Ni To: edk2-devel@lists.01.org Date: Fri, 2 Sep 2016 21:58:40 +0800 Message-Id: <20160902135850.251164-1-ruiyu.ni@intel.com> X-Mailer: git-send-email 2.9.0.windows.1 Subject: [PATCH 00/10] Enhance MtrrLib to find out the optimal MTRR solution X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2016 13:58:54 -0000 The patch sets enhances MtrrLib to find out the most optimal MTRR solution for a given memory type setting. Additionally, the patch sets refine the source code to use the defitions in Register/Msr.h and Register/CpuId.h. 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 | 19 +- UefiCpuPkg/Library/MtrrLib/MtrrLib.c | 1827 +++++++++++++++++++--------------- 2 files changed, 1052 insertions(+), 794 deletions(-) -- 2.9.0.windows.1