Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 5bb7bfbe81e3fd6ffbc3909a96a87e685cfc267d
      
https://github.com/tianocore/edk2/commit/5bb7bfbe81e3fd6ffbc3909a96a87e685cfc267d
  Author: Zhihao Li <zhihao...@intel.com>
  Date:   2023-05-31 (Wed, 31 May 2023)

  Changed paths:
    M UefiCpuPkg/PiSmmCpuDxeSmm/CpuService.c

  Log Message:
  -----------
  UefiCpuPkg/CpuService.c:check cpu sync mode in SmmCpuRendezvous()

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4431

In Ap relaxed mode, some SMI handlers should call SmmWaitForApArrival() to let 
all ap arrive in SmmCpuRendezvous(). But in traditional mode, these SMI 
handlers don't need to call SmmWaitForApArrival() again. So it need to be check 
cpu sync mode before calling SmmWaitForApArrival().

Cc: Eric Dong <eric.d...@intel.com>
Cc: Ray Ni <ray...@intel.com>

Signed-off-by: Zhihao Li <zhihao...@intel.com>
Reviewed-by: Ray Ni <ray...@intel.com>


  Commit: 9f12d6b6ecf8ffe9cd4d93fe0976fdbaf2ded4f0
      
https://github.com/tianocore/edk2/commit/9f12d6b6ecf8ffe9cd4d93fe0976fdbaf2ded4f0
  Author: Zhihao Li <zhihao...@intel.com>
  Date:   2023-05-31 (Wed, 31 May 2023)

  Changed paths:
    M UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c

  Log Message:
  -----------
  UefiCpuPkg/PiSmmCpuDxeSmm:add Ap Rendezvous check in PerformRemainingTasks.

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4424

In Relaxed-AP Sync Mode, BSP will not wait for all Aps arrive. However,
PerformRemainingTasks() needs to wait all Aps arrive before calling
SetMemMapAttributes and ConfigSmmCodeAccessCheck() when mSmmReadyToLock
is true. In SetMemMapAttributes(), SmmSetMemoryAttributesEx() will call
FlushTlbForAll() that need to start up the aps. So it need to let all
aps arrive. Same as SetMemMapAttributes(), ConfigSmmCodeAccessCheck()
also will start up the aps.

Cc: Eric Dong <eric.d...@intel.com>
Cc: Ray Ni <ray...@intel.com>

Signed-off-by: Zhihao Li <zhihao...@intel.com>
Reviewed-by: Ray Ni <ray...@intel.com>


Compare: https://github.com/tianocore/edk2/compare/d15d2667d58d...9f12d6b6ecf8


_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to