Skip to content

Implement inline static calls on PPC32 - v3

Christophe Leroy linuxppc-dev lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 1 replyIn review
  2. v27 patches 4 repliesSuperseded
  3. v1 RFC4 patches 3 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Fixup for "objtool/powerpc: Add --mcount specific implementation"tools/objtool/arch/powerpc/decode.c+28 -110 replies
2/6objtool: Add architecture specific R_REL32 macrotools/objtool/arch/powerpc/include/arch/elf.h tools/objtool/arch/x86/include/arch/elf.h tools/objtool/check.c +1 more+8 -61 reply
3/6init: Call static_call_init() from start_kernel()init/main.c+1 -00 replies
4/6static_call_inline: Provide trampoline address when updating sitesarch/x86/kernel/static_call.c kernel/static_call_inline.c+2 -20 replies
5/6powerpc: Prepare arch_static_call_transform() for supporting inline static callsarch/powerpc/kernel/static_call.c+21 -150 replies
6/6powerpc/static_call: Implement inline static callsarch/powerpc/Kconfig arch/powerpc/include/asm/static_call.h arch/powerpc/kernel/static_call.c+26 -10 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchPeter Zijlstra (Intel)
1/6
2/6A-b
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/6] Implement inline static calls on PPC32 - v3

This series applies on top of the series v2 "objtool: Enable and implement --mcount option on powerpc" [1]

A few modifications are done to core parts to enable powerpc implementation:
- R_X86_64_PC32 is abstracted to R_REL32 so that it can then be redefined as R_PPC_REL32.
- A call to static_call_init() is added to start_kernel() to avoid every architecture to have to call it
- Trampoline address is provided to arch_static_call_transform() even when setting a site to fallback on a call to the trampoline when the target is too far.

[1] https://lore.kernel.org/all/[email protected]/T/

This version of the series includes a preliminary patch (patch 1) that should be squashed into Sathvika's series.

Christophe Leroy (6):
Fixup for "objtool/powerpc: Add --mcount specific implementation"
objtool: Add architecture specific R_REL32 macro
init: Call static_call_init() from start_kernel()
static_call_inline: Provide trampoline address when updating sites
powerpc: Prepare arch_static_call_transform() for supporting inline
static calls
powerpc/static_call: Implement inline static calls

 arch/powerpc/Kconfig                          |  1 +
 arch/powerpc/include/asm/static_call.h        |  2 +
 arch/powerpc/kernel/static_call.c             | 58 ++++++++++++++-----
 arch/x86/kernel/static_call.c                 |  2 +-
 init/main.c                                   |  1 +
 kernel/static_call_inline.c                   |  2 +-
 tools/objtool/arch/powerpc/decode.c           | 39 +++++++++----
 tools/objtool/arch/powerpc/include/arch/elf.h |  1 +
 tools/objtool/arch/x86/include/arch/elf.h     |  1 +
 tools/objtool/check.c                         | 10 ++--
 tools/objtool/orc_gen.c                       |  2 +-
 11 files changed, 85 insertions(+), 34 deletions(-)
Signature · 1 line
2.37.1