powerpc: Replace lxvd2x/stxvd2x with lvx/stvx in P7's memcpy/memmove
commit63da5cd4a097d089033d980c42254c3356fa723f
authorRajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
Wed, 25 Oct 2017 15:13:53 +0000 (25 13:13 -0200)
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Wed, 25 Oct 2017 15:14:30 +0000 (25 13:14 -0200)
tree0c503790b1b430759f4d292a2a86e49b96531c47
parenta122dbfb2e7f90b338b633a73b576efa258e215d
powerpc: Replace lxvd2x/stxvd2x with lvx/stvx in P7's memcpy/memmove

POWER9 DD2.1 and earlier has an issue where some cache inhibited
vector load traps to the kernel, causing a performance degradation.  To
handle this in memcpy and memmove, lvx/stvx is used for aligned
addresses instead of lxvd2x/stxvd2x.

Reference: https://patchwork.ozlabs.org/patch/814059/

* sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
lxvd2x/stxvd2x with lvx/stvx.
* sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.

Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
ChangeLog
sysdeps/powerpc/powerpc64/power7/memcpy.S
sysdeps/powerpc/powerpc64/power7/memmove.S