summaryrefslogtreecommitdiffstats
path: root/RedfishPkg
diff options
context:
space:
mode:
authorRay Ni <ray.ni@intel.com>2022-09-29 17:30:42 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-10-09 08:22:02 +0000
commit137f799aaed91e592700e0488067292495b7ea7e (patch)
tree9479d550bed1ababd93860793ba249e64e253595 /RedfishPkg
parent01b0d19dbbc58034808e4f0cac8d8df56f4787f7 (diff)
downloadedk2-137f799aaed91e592700e0488067292495b7ea7e.tar.gz
edk2-137f799aaed91e592700e0488067292495b7ea7e.tar.bz2
edk2-137f799aaed91e592700e0488067292495b7ea7e.zip
UefiCpuPkg/CpuDxe: Update RefreshMemoryAttributesFromMtrr
Old implementation of RefreshMemoryAttributesFromMtrr directly retrieves the MTRR register content and applies the MTRR cache type to GCD database following the precedence order defined by SDM. The code can updated to simply get all the memory cache types for all memory through newly introduced API With the new introduced API MtrrGetMemoryAttributesInMtrrSettings. Benefits: 1. Remove the duplicated logic in CpuDxe driver that handles MTRR details. 2. Let the MtrrLib to handle the case when fixed MTRR is absent. (Old logic cannot handle the case.) Signed-off-by: Ray Ni <ray.ni@intel.com> Cc: Eric Dong <eric.dong@intel.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com>
Diffstat (limited to 'RedfishPkg')
0 files changed, 0 insertions, 0 deletions