Re: [PATCH v4 2/2] powerpc/irq: inline call_do_irq() and call_do_softirq()

2019-12-07 Thread Christophe Leroy
Le 06/12/2019 à 21:59, Segher Boessenkool a écrit : On Wed, Dec 04, 2019 at 05:32:54AM +0100, Christophe Leroy wrote: Le 29/11/2019 à 19:46, Segher Boessenkool a écrit : The existing call_do_irq isn't C code. It doesn't do anything with r2, as far as I can see; __do_irq just gets whatever t

[PATCH v5] powerpc/irq: inline call_do_irq() and call_do_softirq() on PPC32

2019-12-07 Thread Christophe Leroy
call_do_irq() and call_do_softirq() are simple enough to be worth inlining. Inlining them avoids an mflr/mtlr pair plus a save/reload on stack. It also allows GCC to keep the saved ksp_limit in an nonvolatile reg. This is inspired from S390 arch. Several other arches do more or less the same. The

Re: [PATCH v4 2/2] powerpc/irq: inline call_do_irq() and call_do_softirq()

2019-12-07 Thread Segher Boessenkool
On Sat, Dec 07, 2019 at 10:42:28AM +0100, Christophe Leroy wrote: > Le 06/12/2019 à 21:59, Segher Boessenkool a écrit : > >If the compiler can see the callee wants the same TOC as the caller has, > >it does not arrange to set (and restore) it, no. If it sees it may be > >different, it does arrange

Re: [RFC] Efficiency of the phandle_cache on ppc64/SLOF

2019-12-07 Thread Frank Rowand
On 12/6/19 5:40 PM, Segher Boessenkool wrote: > Hi, > > On Thu, Dec 05, 2019 at 07:37:24PM -0600, Frank Rowand wrote: >> On 12/3/19 12:35 PM, Segher Boessenkool wrote: >>> Btw. Some OFs mangle the phandles some way, to make it easier to catch >>> people using it as an address (and similarly, mang

Re: [PATCH v18 00/13] open: introduce openat2(2) syscall

2019-12-07 Thread Al Viro
On Sat, Dec 07, 2019 at 01:13:25AM +1100, Aleksa Sarai wrote: > This patchset is being developed here: > See #work.openat2; rebased on top of #fixes (there's a minor conflict in follow_managed()). I'll either leave that as-is or rebase to -r

Re: [RFC] Efficiency of the phandle_cache on ppc64/SLOF

2019-12-07 Thread Frank Rowand
On 12/5/19 7:52 PM, Frank Rowand wrote: > On 12/3/19 10:56 AM, Rob Herring wrote: >> On Mon, Dec 2, 2019 at 10:28 PM Frank Rowand wrote: >>> >>> On 12/2/19 10:12 PM, Michael Ellerman wrote: Frank Rowand writes: > On 11/29/19 9:10 AM, Sebastian Andrzej Siewior wrote: >> I've been look