Re: [PATCH] powerpc: POWER7 optimised memcpy using VMX and enhanced prefetch

2013-01-09 Thread Peter Bergner
On Wed, 2013-01-09 at 16:19 -0600, Jimi Xenidis wrote: > I agree, but that means it is impossible for the same .S file can be compiled > but -mcpu=e500mc and -mcpu=powerpc? So either these files have to be Book3S > versus Book3E --or-- we use a CPP macro to get them right. > FWIW, I prefer the lat

Re: [PATCH] powerpc: POWER7 optimised memcpy using VMX and enhanced prefetch

2013-01-09 Thread Jimi Xenidis
On Dec 18, 2012, at 10:31 AM, Peter Bergner wrote: > On Tue, 2012-12-18 at 07:28 -0600, Jimi Xenidis wrote: >> On Dec 17, 2012, at 6:26 PM, Peter Bergner wrote: >>> Jimi, are you using an "old" binutils from before my patch that >>> changed the operand order for these types of instructions? >>>

Re: [PATCH] powerpc: POWER7 optimised memcpy using VMX and enhanced prefetch

2012-12-18 Thread Peter Bergner
On Tue, 2012-12-18 at 07:28 -0600, Jimi Xenidis wrote: > On Dec 17, 2012, at 6:26 PM, Peter Bergner wrote: > > Jimi, are you using an "old" binutils from before my patch that > > changed the operand order for these types of instructions? > > > >http://sourceware.org/ml/binutils/2009-02/msg000

RE: [PATCH] powerpc: POWER7 optimised memcpy using VMX and enhanced prefetch

2012-12-18 Thread David Laight
> >>dcbtr0,r8,0b01010 /* GO */ > >> .machine pop > > > > Jimi, are you using an "old" binutils from before my patch that > > changed the operand order for these types of instructions? > > > >http://sourceware.org/ml/binutils/2009-02/msg00044.html > > Actually, this confused me as

Re: [PATCH] powerpc: POWER7 optimised memcpy using VMX and enhanced prefetch

2012-12-18 Thread Jimi Xenidis
On Dec 17, 2012, at 6:26 PM, Peter Bergner wrote: > On Mon, 2012-12-17 at 22:33 +1100, Anton Blanchard wrote: >> Hi Jimi, >> >>> I know this is a little late, but shouldn't these power7 specific >>> thingies be in "obj-$(CONFIG_PPC_BOOK3S_64)". The reason I ask is >>> that my compiler pukes on

Re: [PATCH] powerpc: POWER7 optimised memcpy using VMX and enhanced prefetch

2012-12-18 Thread Jimi Xenidis
On Dec 17, 2012, at 5:33 AM, Anton Blanchard wrote: > > Hi Jimi, > >> I know this is a little late, but shouldn't these power7 specific >> thingies be in "obj-$(CONFIG_PPC_BOOK3S_64)". The reason I ask is >> that my compiler pukes on "dcbtst" and as I deal with that I wanted >> to point this o

Re: [PATCH] powerpc: POWER7 optimised memcpy using VMX and enhanced prefetch

2012-12-17 Thread Peter Bergner
On Mon, 2012-12-17 at 22:33 +1100, Anton Blanchard wrote: > Hi Jimi, > > > I know this is a little late, but shouldn't these power7 specific > > thingies be in "obj-$(CONFIG_PPC_BOOK3S_64)". The reason I ask is > > that my compiler pukes on "dcbtst" and as I deal with that I wanted > > to point th

Re: [PATCH] powerpc: POWER7 optimised memcpy using VMX and enhanced prefetch

2012-12-17 Thread Anton Blanchard
Hi Jimi, > I know this is a little late, but shouldn't these power7 specific > thingies be in "obj-$(CONFIG_PPC_BOOK3S_64)". The reason I ask is > that my compiler pukes on "dcbtst" and as I deal with that I wanted > to point this out. I guess we could do that. It's a bit strange your assembler

Re: [PATCH] powerpc: POWER7 optimised memcpy using VMX and enhanced prefetch

2012-12-07 Thread Jimi Xenidis
On May 31, 2012, at 1:22 AM, Anton Blanchard wrote: > > Implement a POWER7 optimised memcpy using VMX and enhanced prefetch > instructions. <> > > Index: linux-build/arch/powerpc/lib/Makefile > === > --- linux-build.orig/arch/po

[PATCH] powerpc: POWER7 optimised memcpy using VMX and enhanced prefetch

2012-05-30 Thread Anton Blanchard
Implement a POWER7 optimised memcpy using VMX and enhanced prefetch instructions. This is a copy of the POWER7 optimised copy_to_user/copy_from_user loop. Detailed implementation and performance details can be found in commit a66086b8197d (powerpc: POWER7 optimised copy_to_user/copy_from_user usi