Re: [RFC PATCH 0/5] powerpc: make iowrite32be etc. inline

2019-10-31 Thread Arnd Bergmann
On Thu, Oct 31, 2019 at 8:39 AM Rasmus Villemoes wrote: > On 31/10/2019 01.31, Rasmus Villemoes wrote: > > So sorry for the noise. Maybe I'll just have to bite the bullet and > introduce private qe_iowrite32be etc. and define them based on $ARCH. > Any better ideas would be much appreciated. We u

Re: [RFC PATCH 0/5] powerpc: make iowrite32be etc. inline

2019-10-31 Thread Rasmus Villemoes
On 31/10/2019 01.31, Rasmus Villemoes wrote: > At first I tried something that wouldn't need to touch anything > outside arch/powerpc/, but I ended up with conditional inclusion of > asm-generic headers and/or duplicating a lot of their contents. Urrgh, this is much worse than I feared. Already 1

[RFC PATCH 0/5] powerpc: make iowrite32be etc. inline

2019-10-30 Thread Rasmus Villemoes
When trying to make the QUICC Engine drivers compile on arm, I mechanically (with coccinelle) changed out_be32() to iowrite32be() etc. Christophe pointed out [1][2] that that would pessimize the powerpc SOCs since the IO accesses now incur a function call overhead. He asked that I try to make those