glibc/sysdeps/powerpc/powerpc64/multiarch
Adhemerval Zanella c9cd7b0ce5 powerpc: POWER8 memcpy optimization for cached memory
On POWER8, unaligned memory accesses to cached memory has little impact
on performance as opposed to its ancestors.

It is disabled by default and will only be available when the tunable
glibc.tune.cached_memopt is set to 1.

                 __memcpy_power8_cached      __memcpy_power7
============================================================
    max-size=4096:     33325.70 ( 12.65%)        38153.00
    max-size=8192:     32878.20 ( 11.17%)        37012.30
   max-size=16384:     33782.20 ( 11.61%)        38219.20
   max-size=32768:     33296.20 ( 11.30%)        37538.30
   max-size=65536:     33765.60 ( 10.53%)        37738.40

	* manual/tunables.texi (Hardware Capability Tunables): Document
	glibc.tune.cached_memopt.
	* sysdeps/powerpc/cpu-features.c: New file.
	* sysdeps/powerpc/cpu-features.h: New file.
	* sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
	_dl_powerpc_cpu_features.
	* sysdeps/powerpc/dl-tunables.list: New file.
	* sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
	* sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
	(INIT_ARCH): Initialize use_aligned_memopt.
	* sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
	IS_IN(rtld))]: Restrict dl_platform_init availability and
	initialize CPU features used by tunables.
	* sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
	Add memcpy-power8-cached.
	* sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
	__memcpy_power8_cached.
	* sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
	* sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
	New file.

Reviewed-by: Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2017-12-11 17:39:42 -02:00
..
bcopy-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
bcopy.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
bzero.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ifunc-impl-list.c powerpc: POWER8 memcpy optimization for cached memory 2017-12-11 17:39:42 -02:00
init-arch.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
Makefile powerpc: POWER8 memcpy optimization for cached memory 2017-12-11 17:39:42 -02:00
memchr-power7.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
memchr-power8.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
memchr-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memchr.c powerpc: Optimize memchr for power8 2017-06-21 10:55:12 +05:30
memcmp-power4.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
memcmp-power7.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
memcmp-power8.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
memcmp-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memcmp.c powerpc: Improve memcmp performance for POWER8 2017-05-18 11:21:20 +05:30
memcpy-a2.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
memcpy-cell.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
memcpy-power4.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
memcpy-power6.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
memcpy-power7.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
memcpy-power8-cached.S powerpc: POWER8 memcpy optimization for cached memory 2017-12-11 17:39:42 -02:00
memcpy-ppc64.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
memcpy.c powerpc: POWER8 memcpy optimization for cached memory 2017-12-11 17:39:42 -02:00
memmove-power7.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
memmove-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memmove.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mempcpy-power7.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
mempcpy-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mempcpy.c Remove bits/string.h. 2017-06-20 08:21:24 -04:00
memrchr-power7.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
memrchr-power8.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
memrchr-ppc64.c powerpc: Fix IFUNC for memrchr 2017-10-06 10:04:52 +05:30
memrchr.c powerpc: Fix IFUNC for memrchr 2017-10-06 10:04:52 +05:30
memset-power4.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
memset-power6.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
memset-power7.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
memset-power8.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
memset-ppc64.S powerpc: refactor memset IFUNC. 2017-04-11 17:13:55 -03:00
memset.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
rawmemchr-power7.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
rawmemchr-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
rawmemchr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
rtld-memset.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
rtld-strchr.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
stpcpy-power7.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
stpcpy-power8.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
stpcpy-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
stpcpy.c Remove bits/string.h. 2017-06-20 08:21:24 -04:00
stpncpy-power7.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
stpncpy-power8.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
stpncpy-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
stpncpy.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcasecmp_l-power7.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strcasecmp_l.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcasecmp-power7.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strcasecmp-power8.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strcasecmp-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcasecmp.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcasestr-power8.S powerpc: Use latest optimization for internal function calls 2017-11-07 10:07:48 +05:30
strcasestr-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcasestr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcat-power7.c Remove duplicate strcat implementations 2017-01-03 17:48:03 -02:00
strcat-power8.c powerpc: Use latest optimizations for internal function calls 2017-02-07 10:42:06 +05:30
strcat-ppc64.c Remove duplicate strcat implementations 2017-01-03 17:48:03 -02:00
strcat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strchr-power7.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strchr-power8.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strchr-ppc64.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strchr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strchrnul-power7.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strchrnul-power8.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strchrnul-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strchrnul.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcmp-power7.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strcmp-power8.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strcmp-power9.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strcmp-ppc64.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strcmp.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcpy-power7.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcpy-power8.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strcpy-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcpy.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcspn-power8.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strcspn-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcspn.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strlen-power7.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strlen-power8.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strlen-ppc64.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strlen.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncase_l-power7.c [PowerPC64] strncase_l-power7.c should use strncase_l.c 2017-10-31 12:27:19 +10:30
strncase_l.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncase-power7.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncase-power8.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strncase-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncase.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncat-power7.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncat-power8.c powerpc: Optimized strncat for POWER8 2017-04-13 11:29:20 +05:30
strncat-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncat.c powerpc: Fix strncat ifunc selection 2017-05-04 12:35:56 +05:30
strncmp-power4.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strncmp-power7.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strncmp-power8.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strncmp-power9.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strncmp-ppc64.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strncmp.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncpy-power7.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strncpy-power8.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strncpy-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncpy.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strnlen-power7.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strnlen-power8.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strnlen-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strnlen.c powerpc64: Add POWER8 strnlen 2017-04-05 10:26:58 -03:00
strrchr-power7.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strrchr-power8.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strrchr-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strrchr.c powerpc64: strrchr optimization for power8 2017-04-18 11:28:56 +05:30
strspn-power8.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strspn-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strspn.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strstr-power7.S [PowerPC64] sysdep.h doesn't need to be included in multiarch files 2017-10-31 12:27:19 +10:30
strstr-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strstr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wcschr-power6.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wcschr-power7.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wcschr-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wcschr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wcscpy-power6.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wcscpy-power7.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wcscpy-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wcscpy.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wcsrchr-power6.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wcsrchr-power7.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wcsrchr-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wcsrchr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wordcopy-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00