From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web09.4149.1572517703065913333 for ; Thu, 31 Oct 2019 03:28:23 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: chasel.chiu@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Oct 2019 03:28:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,250,1569308400"; d="scan'208";a="283848036" Received: from cchiu4-mobl1.gar.corp.intel.com ([10.5.215.140]) by orsmga001.jf.intel.com with ESMTP; 31 Oct 2019 03:28:19 -0700 From: "Chiu, Chasel" To: devel@edk2.groups.io Cc: Michael Kubacki , Nate DeSimone , Liming Gao , Jeremy Soller , Shifei A Lu , Xiaohu Zhou , Isaac W Oram , Wei David Y , Agyeman Prince Subject: [edk2-platforms: PATCH v3 0/6] Add SetCacheMtrrLib library class. Date: Thu, 31 Oct 2019 18:28:11 +0800 Message-Id: <20191031102817.17096-1-chasel.chiu@intel.com> X-Mailer: git-send-email 2.13.3.windows.1 V3 updates: . Rename SetCacheLib to SetCacheMtrrLib . SetCacheMtrrLib.inf base name and type changed to PeiSetCacheMtrrLib and PEIM . SetCacheMtrrLibNull.inf base name changed to BaseSetCacheMtrrlibNull . Add SetCacheMtrrLib.h to MinPlatformPkg.dec . Add usage description to SetCacheMtrrLib.c and SetCacheMtrrLib.inf REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2314 The MTRRs may be redundantly or incorrectly configured. It is recommended to move this functionality to a library class that with a NULL library by default. The board package may provide its own library implementation. MinPlatformPkg should contain the library class header (API) and the NULL library class instance. Cc: Michael Kubacki Cc: Nate DeSimone Cc: Liming Gao Cc: Jeremy Soller Cc: Shifei A Lu Cc: Xiaohu Zhou Cc: Isaac W Oram Cc: Wei David Y Cc: Agyeman Prince Signed-off-by: Chasel Chiu Chasel Chiu (6): MinPlatformPkg: Add SetCacheMtrrLib library class. MinPlatformPkg: Add SetCacheMtrrLib library class. KabylakeOpenBoardPkg: Add SetCacheMtrrLib library class. WhiskeylakeOpenBoardPkg: Add SetCacheMtrrLib library class. PurleyOpenBoardPkg/BoardMtOlympus: Add SetCacheMtrrLib library class. SimicsOpenBoardPkg/BoardX58Ich10: Add SetCacheMtrrLib library class. Platform/Intel/KabylakeOpenBoardPkg/GalagoPro3/Override/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPreMem.c | 640 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Platform/Intel/MinPlatformPkg/Library/SetCacheMtrrLib/SetCacheMtrrLib.c | 327 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Platform/Intel/MinPlatformPkg/Library/SetCacheMtrrLib/SetCacheMtrrLibNull.c | 37 +++++++++++++++++++++++++++++++++++++ Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPostMem.c | 151 ++----------------------------------------------------------------------------------------------------------------------------------------------------- Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPreMem.c | 164 ++------------------------------------------------------------------------------------------------------------------------------------------------------------------ Platform/Intel/KabylakeOpenBoardPkg/GalagoPro3/OpenBoardPkg.dsc | 3 ++- Platform/Intel/KabylakeOpenBoardPkg/GalagoPro3/OpenBoardPkg.fdf | 2 +- Platform/Intel/KabylakeOpenBoardPkg/GalagoPro3/Override/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPreMem.inf | 67 ------------------------------------------------------------------- Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/OpenBoardPkg.dsc | 1 + Platform/Intel/MinPlatformPkg/Include/Library/SetCacheMtrrLib.h | 34 ++++++++++++++++++++++++++++++++++ Platform/Intel/MinPlatformPkg/Library/SetCacheMtrrLib/SetCacheMtrrLib.inf | 46 ++++++++++++++++++++++++++++++++++++++++++++++ Platform/Intel/MinPlatformPkg/Library/SetCacheMtrrLib/SetCacheMtrrLibNull.inf | 29 +++++++++++++++++++++++++++++ Platform/Intel/MinPlatformPkg/MinPlatformPkg.dec | 6 ++++-- Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPostMem.inf | 11 +---------- Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPreMem.inf | 7 ++----- Platform/Intel/PurleyOpenBoardPkg/BoardMtOlympus/PlatformPkg.dsc | 3 ++- Platform/Intel/SimicsOpenBoardPkg/BoardX58Ich10/OpenBoardPkg.dsc | 1 + Platform/Intel/WhiskeylakeOpenBoardPkg/WhiskeylakeURvp/OpenBoardPkg.dsc | 1 + 18 files changed, 492 insertions(+), 1038 deletions(-) delete mode 100644 Platform/Intel/KabylakeOpenBoardPkg/GalagoPro3/Override/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPreMem.c create mode 100644 Platform/Intel/MinPlatformPkg/Library/SetCacheMtrrLib/SetCacheMtrrLib.c create mode 100644 Platform/Intel/MinPlatformPkg/Library/SetCacheMtrrLib/SetCacheMtrrLibNull.c delete mode 100644 Platform/Intel/KabylakeOpenBoardPkg/GalagoPro3/Override/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPreMem.inf create mode 100644 Platform/Intel/MinPlatformPkg/Include/Library/SetCacheMtrrLib.h create mode 100644 Platform/Intel/MinPlatformPkg/Library/SetCacheMtrrLib/SetCacheMtrrLib.inf create mode 100644 Platform/Intel/MinPlatformPkg/Library/SetCacheMtrrLib/SetCacheMtrrLibNull.inf -- 2.13.3.windows.1