public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v2 0/3] MdePkg/BaseMemoryLibOptDxe: generic and ARM/AARCH64 fixes
@ 2016-09-19  8:13 Ard Biesheuvel
  2016-09-19  8:13 ` [PATCH v2 1/3] MdePkg/BaseMemoryLibOptDxe ARM: fix arithmetic bugs in CompareMem() Ard Biesheuvel
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Ard Biesheuvel @ 2016-09-19  8:13 UTC (permalink / raw)
  To: edk2-devel, liming.gao; +Cc: leif.lindholm, vishalo, Ard Biesheuvel

Some pending fixes for BaseMemoryLib* and BaseMemoryLibOptDxe, now resent
as a single series.

Patch #1 fixes an arithmetic bug in BaseMemoryLibOptDxe for ARM, which renders
it unusable at the moment.

Patch #2 adds some asserts that are mentioned in the respective comment blocks
but are missing from the code.

Patch #3 fixes a performance regressions observed by moving from the (soon to be
deprecated) BaseMemoryLibStm in ArmPkg to BaseMemoryLibOptDxe. The culprit has
been identified to be CompareGuid(), which needlessly uses unaligned accessors
(since this library can only be used in a context where unaligned accesses are
allowed)

Ard Biesheuvel (3):
  MdePkg/BaseMemoryLibOptDxe ARM: fix arithmetic bugs in CompareMem()
  MdePkg/BaseMemoryLib*: add missing ASSERT()s
  MdePkg/BaseMemoryLibOptDxe ARM|AARCH64: implement accelerated GUID
    functions

 MdePkg/Library/BaseMemoryLib/MemLibGuid.c                  |   8 ++
 MdePkg/Library/BaseMemoryLibMmx/MemLibGuid.c               |   8 ++
 MdePkg/Library/BaseMemoryLibOptDxe/AArch64/CompareGuid.S   |  40 ++++++
 MdePkg/Library/BaseMemoryLibOptDxe/Arm/CompareGuid.S       |  66 +++++++++
 MdePkg/Library/BaseMemoryLibOptDxe/Arm/CompareGuid.asm     |  69 +++++++++
 MdePkg/Library/BaseMemoryLibOptDxe/Arm/CompareMem.S        |   4 +-
 MdePkg/Library/BaseMemoryLibOptDxe/Arm/MemLibGuid.c        | 152 ++++++++++++++++++++
 MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf |   7 +-
 MdePkg/Library/BaseMemoryLibOptDxe/MemLibGuid.c            |   8 ++
 MdePkg/Library/BaseMemoryLibOptPei/MemLibGuid.c            |   8 ++
 MdePkg/Library/BaseMemoryLibRepStr/MemLibGuid.c            |   8 ++
 MdePkg/Library/BaseMemoryLibSse2/MemLibGuid.c              |   8 ++
 MdePkg/Library/PeiMemoryLib/MemLibGuid.c                   |   8 ++
 MdePkg/Library/UefiMemoryLib/MemLibGuid.c                  |   8 ++
 14 files changed, 399 insertions(+), 3 deletions(-)
 create mode 100644 MdePkg/Library/BaseMemoryLibOptDxe/AArch64/CompareGuid.S
 create mode 100644 MdePkg/Library/BaseMemoryLibOptDxe/Arm/CompareGuid.S
 create mode 100644 MdePkg/Library/BaseMemoryLibOptDxe/Arm/CompareGuid.asm
 create mode 100644 MdePkg/Library/BaseMemoryLibOptDxe/Arm/MemLibGuid.c

-- 
2.7.4



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-09-21  1:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-19  8:13 [PATCH v2 0/3] MdePkg/BaseMemoryLibOptDxe: generic and ARM/AARCH64 fixes Ard Biesheuvel
2016-09-19  8:13 ` [PATCH v2 1/3] MdePkg/BaseMemoryLibOptDxe ARM: fix arithmetic bugs in CompareMem() Ard Biesheuvel
2016-09-19  8:13 ` [PATCH v2 2/3] MdePkg/BaseMemoryLib*: add missing ASSERT()s Ard Biesheuvel
2016-09-20  2:00   ` Wu, Hao A
2016-09-20  8:38     ` Ard Biesheuvel
2016-09-20 12:02       ` Wu, Hao A
2016-09-20 12:16         ` Ard Biesheuvel
2016-09-20 12:40           ` Ard Biesheuvel
2016-09-21  1:27             ` Gao, Liming
2016-09-19  8:13 ` [PATCH v2 3/3] MdePkg/BaseMemoryLibOptDxe ARM|AARCH64: implement accelerated GUID functions Ard Biesheuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox