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 <[email protected]> Sent: Thursday, November 23, 2023 9:18 AM To: Xie, Yuanhao <[email protected]>; [email protected] Cc: Dong, Eric <[email protected]>; Kumar, Rahul R <[email protected]>; Tom Lendacky <[email protected]>; Laszlo Ersek <[email protected]> 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 <[email protected]> Sent: Thursday, November 23, 2023 9:19 AM To: Xie, Yuanhao <[email protected]>; [email protected] Cc: Dong, Eric <[email protected]>; Kumar, Rahul R <[email protected]>; Tom Lendacky <[email protected]>; Laszlo Ersek <[email protected]> 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: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
