Re: [PATCH] powerpc: Make 64-bit non-VMX __copy_tofrom_user bi-endian

2013-12-23 Thread Michael Ellerman
On Tue, 2013-12-24 at 12:02 +1100, Anton Blanchard wrote: > Hi Michael, > > > > To try and catch any screw ups in our ppc64 memcpy and > > > copy_tofrom_user loops, I wrote a quick test: > > > > > > http://ozlabs.org/~anton/junkcode/validate_kernel_copyloops.tar.gz > > > > Nice! How's this look?

Re: [PATCH] powerpc: Make 64-bit non-VMX __copy_tofrom_user bi-endian

2013-12-23 Thread Anton Blanchard
Hi Michael, > > To try and catch any screw ups in our ppc64 memcpy and > > copy_tofrom_user loops, I wrote a quick test: > > > > http://ozlabs.org/~anton/junkcode/validate_kernel_copyloops.tar.gz > > Nice! How's this look? Love it! At the moment my other copy_to/from_user tests run against the

Re: [PATCH] powerpc: Make 64-bit non-VMX __copy_tofrom_user bi-endian

2013-12-19 Thread Michael Ellerman
On Wed, 2013-12-18 at 21:15 +1100, Anton Blanchard wrote: > Hi, > > > [ This is a rare but nasty LE issue. Most of the time we use the > > POWER7 optimised __copy_tofrom_user_power7 loop, but when it hits an > > exception we fall back to the base __copy_tofrom_user loop. - Anton ] > > To try and

Re: [PATCH] powerpc: Make 64-bit non-VMX __copy_tofrom_user bi-endian

2013-12-18 Thread Anton Blanchard
Hi, > [ This is a rare but nasty LE issue. Most of the time we use the > POWER7 optimised __copy_tofrom_user_power7 loop, but when it hits an > exception we fall back to the base __copy_tofrom_user loop. - Anton ] To try and catch any screw ups in our ppc64 memcpy and copy_tofrom_user loops, I w

[PATCH] powerpc: Make 64-bit non-VMX __copy_tofrom_user bi-endian

2013-12-17 Thread Anton Blanchard
From: Paul E. McKenney The powerpc 64-bit __copy_tofrom_user() function uses shifts to handle unaligned invocations. However, these shifts were designed for big-endian systems: On little-endian systems, they must shift in the opposite direction. This commit relies on the C preprocessor to inser