This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH v2 00/03] Enable lock elision for powerpc
- From: Adhemerval Zanella <azanella at linux dot vnet dot ibm dot com>
- To: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Fri, 07 Nov 2014 15:12:56 -0200
- Subject: [PATCH v2 00/03] Enable lock elision for powerpc
- Authentication-results: sourceware.org; auth=none
Hi all,
This is repost of my previous patchset [1] to add transaction lock elision for
powerpc.
PowerPC ISA 2.07 adds hardware transaction memory primitives for architecture and
they are currently implemented by POWER8 chips.
The patch series enable pthread mutex and pthread rdlock lock elision in the same
manner already implemented by x86 and s390. I followed s390 tunable with some
modifications.
Also, for powerpc implementation I have to add a transactional abort before syscalls
to avoid side-effects being seen outside transactions (more information on third
patch in the series).
The complete patch set is mirrored in azanella/lockelision-ppc branch. I have also
added the powerpc wrapper for BZ #16657 fix (however I haven't not include it yet
on the patch series since the bug is still being discussed).
Checked on powerpc32, powerpc64, and powerpc64le. I also checked with a compiler
without power HTM support (GCC 4.8) and with HTM support (GCC 4.9).
[1] https://www.sourceware.org/ml/libc-alpha/2014-08/msg00409.html
[2] https://www.power.org/wp-content/uploads/2013/05/PowerISA_V2.07_PUBLIC.pdf