This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.22-176-g3c13f28


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  3c13f28c8eac1e5a883d1b3801314430a094fc99 (commit)
       via  6eb901de9b8c3a582ec2a5fc9a2223f326800812 (commit)
      from  a2ab38c9b8a8b99f998bb9b9743b3f5c9a4493b5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=3c13f28c8eac1e5a883d1b3801314430a094fc99

commit 3c13f28c8eac1e5a883d1b3801314430a094fc99
Author: Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
Date:   Wed Aug 19 01:42:55 2015 -0300

    powerpc: Sync hwcap.h with kernel
    
    Linux commit b4b56f9ecab40f3b4ef53e130c9f6663be491894 introduced
    a new HWCAP2 bit to indicate that the kernel now aborts a memory
    transaction when a syscall is made.  This patch adds that bit to
    sysdeps/powerpc/bits/hwcap.h.
    
    2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
    
    	* sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
    	* sysdeps/powerpc/dl-procinfo.c:
    	(_dl_powerpc_cap_flags): Added descriptor for this hwcap
    	feature so it shows when LD_SHOW_AUXV=1.

diff --git a/ChangeLog b/ChangeLog
index 89e51f6..91dcd52 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
+
+	* sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
+	* sysdeps/powerpc/dl-procinfo.c:
+	(_dl_powerpc_cap_flags): Added descriptor for this hwcap
+	feature so it shows when LD_SHOW_AUXV=1.
+
 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
 
 	* sysdeps/unix/sysv/linux/powerpc/elision-lock.c
diff --git a/sysdeps/powerpc/bits/hwcap.h b/sysdeps/powerpc/bits/hwcap.h
index f8c48cd..12554ca 100644
--- a/sysdeps/powerpc/bits/hwcap.h
+++ b/sysdeps/powerpc/bits/hwcap.h
@@ -64,3 +64,5 @@
 #define PPC_FEATURE2_HAS_TAR       0x04000000 /* Target Address Register */
 #define PPC_FEATURE2_HAS_VEC_CRYPTO  0x02000000  /* Target supports vector
 						    instruction.  */
+#define PPC_FEATURE2_HTM_NOSC	   0x01000000 /* Kernel aborts transaction
+						 when a syscall is made.  */
diff --git a/sysdeps/powerpc/dl-procinfo.c b/sysdeps/powerpc/dl-procinfo.c
index 6eda5d9..770c1f3 100644
--- a/sysdeps/powerpc/dl-procinfo.c
+++ b/sysdeps/powerpc/dl-procinfo.c
@@ -62,7 +62,7 @@ PROCINFO_CLASS const char _dl_powerpc_cap_flags[60][10]
     "", "", "", "",
     "", "", "", "",
     "", "", "", "",
-    "", "vcrypto", "tar", "isel",
+    "htm-nosc", "vcrypto", "tar", "isel",
     "ebb", "dscr", "htm", "arch_2_07",
   }
 #endif

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=6eb901de9b8c3a582ec2a5fc9a2223f326800812

commit 6eb901de9b8c3a582ec2a5fc9a2223f326800812
Author: Paul E. Murphy <murphyp@linux.vnet.ibm.com>
Date:   Thu Aug 13 16:21:05 2015 -0500

    powerpc: Revert to default atomic ops in elision code
    
    Power ISA 2.07B section B.5.5 relaxed the barrier requirement around a
    TLE enabled lock.  It is now identical to a traditional lock.
    
    2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
    
    	* sysdeps/unix/sysv/linux/powerpc/elision-lock.c
    	(__arch_compare_and_exchange_val_32_acq): Remove and use common
    	definition.  ISA 2.07B no longer requires full sync.

diff --git a/ChangeLog b/ChangeLog
index 1ddb153..89e51f6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
+
+	* sysdeps/unix/sysv/linux/powerpc/elision-lock.c
+	(__arch_compare_and_exchange_val_32_acq): Remove and use common
+	definition.  ISA 2.07B no longer requires full sync.
+
 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
 
 	[BZ #18863]
diff --git a/sysdeps/unix/sysv/linux/powerpc/elision-lock.c b/sysdeps/unix/sysv/linux/powerpc/elision-lock.c
index 7f9bcc2..26d272e 100644
--- a/sysdeps/unix/sysv/linux/powerpc/elision-lock.c
+++ b/sysdeps/unix/sysv/linux/powerpc/elision-lock.c
@@ -23,27 +23,6 @@
 #include <elision-conf.h>
 #include "htm.h"
 
-/* PowerISA 2.0.7 Section B.5.5 defines isync to be insufficient as a
-   barrier in acquire mechanism for HTM operations, a strong 'sync' is
-   required.  */
-#undef __arch_compare_and_exchange_val_32_acq
-#define __arch_compare_and_exchange_val_32_acq(mem, newval, oldval)           \
-  ({                                                                          \
-      __typeof (*(mem)) __tmp;                                                \
-      __typeof (mem)  __memp = (mem);                                         \
-      __asm __volatile (                                                      \
-                        "1:     lwarx   %0,0,%1" MUTEX_HINT_ACQ "\n"          \
-                        "       cmpw    %0,%2\n"                              \
-                        "       bne     2f\n"                                 \
-                        "       stwcx.  %3,0,%1\n"                            \
-                        "       bne-    1b\n"                                 \
-                        "2:     sync"                                         \
-                        : "=&r" (__tmp)                                       \
-                        : "b" (__memp), "r" (oldval), "r" (newval)            \
-                        : "cr0", "memory");                                   \
-      __tmp;                                                                  \
-  })
-
 #if !defined(LLL_LOCK) && !defined(EXTRAARG)
 /* Make sure the configuration code is always linked in for static
    libraries.  */

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                                      |   13 +++++++++++++
 sysdeps/powerpc/bits/hwcap.h                   |    2 ++
 sysdeps/powerpc/dl-procinfo.c                  |    2 +-
 sysdeps/unix/sysv/linux/powerpc/elision-lock.c |   21 ---------------------
 4 files changed, 16 insertions(+), 22 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]