Re: [PATCH v2] powerpc/32: Add support for out-of-line static calls

2022-03-11 Thread Christophe Leroy
Hi Peter, Le 31/08/2021 à 16:00, Peter Zijlstra a écrit : On Tue, Aug 31, 2021 at 01:12:26PM +, Christophe Leroy wrote: Yes, this should work nicely! Since you have the two nop's at the end, you could frob in an optimization for __static_call_return0 without too much issue. Replace the tw

Re: [PATCH v2] powerpc/32: Add support for out-of-line static calls

2021-08-31 Thread Peter Zijlstra
On Tue, Aug 31, 2021 at 01:12:26PM +, Christophe Leroy wrote: > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig > index 36b72d972568..a0fe69d8ec83 100644 > --- a/arch/powerpc/Kconfig > +++ b/arch/powerpc/Kconfig > @@ -247,6 +247,7 @@ config PPC > select HAVE_SOFTIRQ_ON_OWN_STACK

[PATCH v2] powerpc/32: Add support for out-of-line static calls

2021-08-31 Thread Christophe Leroy
Add support for out-of-line static calls on PPC32. This change improve performance of calls to global function pointers by using direct calls instead of indirect calls. The trampoline is initialy populated with a 'blr' or branch to target, followed by an unreachable long jump sequence. In order t