Skip to content

powerpc: switch VDSO to C implementation

Christophe Leroy linux-arch linuxppc-dev lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v13 Latest8 patches 1 replyIn review
  2. v125 patches 0 repliesSuperseded
  3. v115 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v105 patches6 repliesSuperseded
v95 patches0 repliesSuperseded

Changes in v13 from the cover letter

- Reorganised headers to avoid the need for a fake 32 bits config for building VDSO32 on PPC64
- Rebased after the removal of powerpc 601
- Using DOTSYM() macro to call functions directly without using OPD
- Explicitely dropped .opd and .got1 sections which are now unused

Patches in v13 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8powerpc/feature: Fix CPU_FTRS_ALWAYS by removing CPU_FTRS_GENERIC_32arch/powerpc/include/asm/cputable.h+0 -50 replies
2/8powerpc/feature: Use CONFIG_PPC64 instead of __powerpc64__ to define possible featuresarch/powerpc/include/asm/cputable.h+2 -20 replies
3/8powerpc/processor: Move cpu_relax() into asm/vdso/processor.harch/powerpc/include/asm/processor.h arch/powerpc/include/asm/vdso/processor.h+25 -110 replies
4/8powerpc/time: Move timebase functions into new asm/timebase.harch/powerpc/include/asm/time.h arch/powerpc/include/asm/timebase.h+43 -290 replies
5/8powerpc/vdso: Prepare for switching VDSO to generic C implementation.arch/powerpc/include/asm/clocksource.h arch/powerpc/include/asm/ppc_asm.h arch/powerpc/include/asm/vdso/clocksource.h +3 more+260 -00 replies
6/8powerpc/vdso: Save and restore TOC pointer on PPC64arch/powerpc/include/asm/vdso/gettimeofday.h+12 -00 replies
7/8powerpc/vdso: Switch VDSO to generic C implementation.arch/powerpc/Kconfig arch/powerpc/include/asm/vdso/vsyscall.h arch/powerpc/include/asm/vdso_datapage.h +9 more+106 -6910 replies
8/8powerpc/vdso: Provide __kernel_clock_gettime64() on vdso32arch/powerpc/include/asm/vdso/gettimeofday.h arch/powerpc/kernel/vdso32/gettimeofday.S arch/powerpc/kernel/vdso32/vdso32.lds.S +1 more+18 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v13 yet.

Read the v13 thread

Cover letter [PATCH v13 0/8] powerpc: switch VDSO to C implementation

This is a series to switch powerpc VDSO to generic C implementation.

Changes in v13:
- Reorganised headers to avoid the need for a fake 32 bits config for building VDSO32 on PPC64
- Rebased after the removal of powerpc 601
- Using DOTSYM() macro to call functions directly without using OPD
- Explicitely dropped .opd and .got1 sections which are now unused

Changes in v12:
- Rebased to today's powerpc/merge branch (Conflicts on VDSO Makefiles)
- Added missing prototype for __kernel_clock_gettime64()

Changes in v11:
- Rebased to today's powerpc/merge branch
- Prototype of __arch_get_hw_counter() was modified in mainline (patch 2)

Changes in v10 are:
- Added a comment explaining the reason for the double stack frame
- Moved back .cfi_register lr next to mflr

Main changes in v9 are:
- Dropped the patches which put the VDSO datapage in front of VDSO text in the mapping
- Adds a second stack frame because the caller doesn't set one, at least on PPC64
- Saving the TOC pointer on PPC64 (is that really needed ?)

This series applies on today's powerpc/merge branch.

See the last patches for details on changes and performance.

Christophe Leroy (8):
powerpc/feature: Fix CPU_FTRS_ALWAYS by removing CPU_FTRS_GENERIC_32 powerpc/feature: Use CONFIG_PPC64 instead of __powerpc64__ to define
possible features
powerpc/processor: Move cpu_relax() into asm/vdso/processor.h powerpc/time: Move timebase functions into new asm/timebase.h powerpc/vdso: Prepare for switching VDSO to generic C implementation. powerpc/vdso: Save and restore TOC pointer on PPC64 powerpc/vdso: Switch VDSO to generic C implementation. powerpc/vdso: Provide __kernel_clock_gettime64() on vdso32

 arch/powerpc/Kconfig                         |   2 +
 arch/powerpc/include/asm/clocksource.h       |   7 +
 arch/powerpc/include/asm/cputable.h          |   9 +-
 arch/powerpc/include/asm/ppc_asm.h           |   2 +
 arch/powerpc/include/asm/processor.h         |  13 +-
 arch/powerpc/include/asm/time.h              |  30 +-
 arch/powerpc/include/asm/timebase.h          |  42 +++
 arch/powerpc/include/asm/vdso/clocksource.h  |   7 +
 arch/powerpc/include/asm/vdso/gettimeofday.h | 201 +++++++++++++
 arch/powerpc/include/asm/vdso/processor.h    |  23 ++
 arch/powerpc/include/asm/vdso/vsyscall.h     |  25 ++
 arch/powerpc/include/asm/vdso_datapage.h     |  40 +--
 arch/powerpc/kernel/asm-offsets.c            |  49 +--
 arch/powerpc/kernel/time.c                   |  91 +-----
 arch/powerpc/kernel/vdso.c                   |   5 +-
 arch/powerpc/kernel/vdso32/Makefile          |  26 +-
 arch/powerpc/kernel/vdso32/gettimeofday.S    | 300 +------------------
 arch/powerpc/kernel/vdso32/vdso32.lds.S      |   2 +
 arch/powerpc/kernel/vdso32/vgettimeofday.c   |  34 +++
 arch/powerpc/kernel/vdso64/Makefile          |  23 +-
 arch/powerpc/kernel/vdso64/gettimeofday.S    | 242 +--------------
 arch/powerpc/kernel/vdso64/vdso64.lds.S      |   2 +-
 arch/powerpc/kernel/vdso64/vgettimeofday.c   |  29 ++
 23 files changed, 466 insertions(+), 738 deletions(-)
 create mode 100644 arch/powerpc/include/asm/clocksource.h
 create mode 100644 arch/powerpc/include/asm/timebase.h
 create mode 100644 arch/powerpc/include/asm/vdso/clocksource.h
 create mode 100644 arch/powerpc/include/asm/vdso/gettimeofday.h
 create mode 100644 arch/powerpc/include/asm/vdso/processor.h
 create mode 100644 arch/powerpc/include/asm/vdso/vsyscall.h
 create mode 100644 arch/powerpc/kernel/vdso32/vgettimeofday.c
 create mode 100644 arch/powerpc/kernel/vdso64/vgettimeofday.c
Signature · 1 line
2.25.0