Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: d698bcfe4f3da50418561eaf8d6163136c714f01
      
https://github.com/tianocore/edk2/commit/d698bcfe4f3da50418561eaf8d6163136c714f01
  Author: Jiaxin Wu <[email protected]>
  Date:   2024-02-21 (Wed, 21 Feb 2024)

  Changed paths:
    M UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c

  Log Message:
  -----------
  UefiCpuPkg/PiSmmCpuDxeSmm: Avoid BspIndex typecasting

Use MAX_UINT32 directly instead of typecasting from signed
to unsigned value.

Cc: Ray Ni <[email protected]>
Cc: Laszlo Ersek <[email protected]>
Cc: Eric Dong <[email protected]>
Cc: Zeng Star <[email protected]>
Cc: Gerd Hoffmann <[email protected]>
Cc: Rahul Kumar <[email protected]>
Cc: Kinney Michael D <[email protected]>
Signed-off-by: Jiaxin Wu <[email protected]>
Reviewed-by: Ray Ni <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>


  Commit: 2ca8d559744319025592df10ada0f714fc3b8e15
      
https://github.com/tianocore/edk2/commit/2ca8d559744319025592df10ada0f714fc3b8e15
  Author: Jiaxin Wu <[email protected]>
  Date:   2024-02-21 (Wed, 21 Feb 2024)

  Changed paths:
    M UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c

  Log Message:
  -----------
  UefiCpuPkg/PiSmmCpuDxeSmm: Check BspIndex first before lock cmpxchg

This patch is to check BspIndex first before lock cmpxchg operation.
If BspIndex has not been set, then do the lock cmpxchg, otherwise,
the APs don't need to lock cmpxchg the BspIndex value since the BSP
election has been done. It's the optimization to lower the resource
contention caused by the atomic compare exchange operation, so as to
improve the SMI performance for BSP election.

Cc: Ray Ni <[email protected]>
Cc: Laszlo Ersek <[email protected]>
Cc: Eric Dong <[email protected]>
Cc: Zeng Star <[email protected]>
Cc: Gerd Hoffmann <[email protected]>
Cc: Rahul Kumar <[email protected]>
Cc: Kinney Michael D <[email protected]>
Signed-off-by: Jiaxin Wu <[email protected]>
Reviewed-by: Ray Ni <[email protected]>


Compare: https://github.com/tianocore/edk2/compare/edc6681206c1...2ca8d5597443

To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to