Hi Ray, In V4, the GetMicrocodePathInfoFromHob() removal is in patch 1 instead of the patch 3. Comments of MTRRs syncing is a updated.
Thanks Yuanhao -----Original Message----- From: Ni, Ray <ray...@intel.com> Sent: Thursday, November 23, 2023 9:18 AM To: Xie, Yuanhao <yuanhao....@intel.com>; devel@edk2.groups.io Cc: Dong, Eric <eric.d...@intel.com>; Kumar, Rahul R <rahul.r.ku...@intel.com>; Tom Lendacky <thomas.lenda...@amd.com>; Laszlo Ersek <ler...@redhat.com> Subject: RE: [Patch V3 1/3] UefiCpuPkg/MpInitLib: Eliminate redundant microcode loading in DXE. > - MicrocodeDetect (CpuMpData, ProcessorNumber); > - // > - // Sync BSP's MTRR table to AP > + // Synchronizing the MTRR table to the AP is always essential. > + // During the DXE phase, it cannot be omitted like loading > + microcode, // as the PEI and DXE may be in different bit modes. "as the PEI and DXE may be in different bit modes" is not the reason that MTRR sync needs to be performed in DXE phase. The reason is some code might change MTRR on BSP only after CpuMp PPI service is not available and before CpuMp Protocol is available. That is in early DXE phase before CpuMp protocol is installed. > // > MtrrSetAllMtrrs (&CpuMpData->MtrrTable); } -----Original Message----- From: Ni, Ray <ray...@intel.com> Sent: Thursday, November 23, 2023 9:19 AM To: Xie, Yuanhao <yuanhao....@intel.com>; devel@edk2.groups.io Cc: Dong, Eric <eric.d...@intel.com>; Kumar, Rahul R <rahul.r.ku...@intel.com>; Tom Lendacky <thomas.lenda...@amd.com>; Laszlo Ersek <ler...@redhat.com> Subject: RE: [Patch V3 1/3] UefiCpuPkg/MpInitLib: Eliminate redundant microcode loading in DXE. > > - if (!GetMicrocodePatchInfoFromHob ( > - &CpuMpData->MicrocodePatchAddress, > - &CpuMpData->MicrocodePatchRegionSize > - )) > - { Can you delete the GetMicrocodePathInfoFromHob() in this patch instead of the 3rd patch? -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#111692): https://edk2.groups.io/g/devel/message/111692 Mute This Topic: https://groups.io/mt/102744598/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-