Skip to content

powerpc: stolen time accounting for VIRT_CPU_ACCOUNTING_GEN

Nicholas Piggin linuxppc-dev 1 version Applied

Status from this message: Applied to powerpc/next.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest4 patches 2 repliesApplied

Changes in v2 from the cover letter

- Move the KVM patches out of this series to make it smaller. I'll post them separately.
- Fix compilation bug in patch 2 due to missing header in patch.
- Add defconfig changes to patch 3.
- Add tidy up patch 4.
- Improve changelogs.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4powerpc/pseries: Add wait interval counter definitions to struct lppacaarch/powerpc/include/asm/lppaca.h+7 -30 replies
2/4powerpc/pseries: Implement CONFIG_PARAVIRT_TIME_ACCOUNTINGDocumentation/admin-guide/kernel-parameters.txt arch/powerpc/include/asm/paravirt.h arch/powerpc/include/asm/paravirt_api_clock.h +3 more+54 -30 replies
3/4powerpc/64: Remove PPC64 special case for cputime accounting defaultarch/powerpc/configs/ppc64_defconfig arch/powerpc/configs/pseries_defconfig init/Kconfig+5 -20 replies
4/4powerpc/pseries: Move dtl scanning and steal time accounting to pseries platformarch/powerpc/include/asm/cputime.h arch/powerpc/include/asm/dtl.h arch/powerpc/include/asm/time.h +2 more+90 -981 reply

Reviews trailers per patch

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

PatchFabiano RosasShrikanth Hegde
1/4R-b
2/4T-b
3/4
4/4

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

Read the v2 thread

Cover letter [PATCH v2 0/4] powerpc: stolen time accounting for VIRT_CPU_ACCOUNTING_GEN

pseries provides stolen time accounting when VIRT_CPU_ACCOUNTING_NATIVE is selected, but not when VIRT_CPU_ACCOUNTING_GEN is. We like GEN because it's less code in arch/powerpc, allows full nohz, and distros have moved to it, so this series adds stolen time accounting for GEN, and moves our pseries configs over to it.

Thanks,
Nick

Since v1:
- Move the KVM patches out of this series to make it smaller. I'll post them separately.
- Fix compilation bug in patch 2 due to missing header in patch.
- Add defconfig changes to patch 3.
- Add tidy up patch 4.
- Improve changelogs.

Nicholas Piggin (4):
powerpc/pseries: Add wait interval counter definitions to struct
lppaca
powerpc/pseries: Implement CONFIG_PARAVIRT_TIME_ACCOUNTING powerpc/64: Remove PPC64 special case for cputime accounting default powerpc/pseries: Move dtl scanning and steal time accounting to
pseries platform

 .../admin-guide/kernel-parameters.txt         |  6 +-
 arch/powerpc/configs/ppc64_defconfig          |  2 +
 arch/powerpc/configs/pseries_defconfig        |  2 +
 arch/powerpc/include/asm/cputime.h            |  2 +-
 arch/powerpc/include/asm/dtl.h                |  8 --
 arch/powerpc/include/asm/lppaca.h             | 10 +-
 arch/powerpc/include/asm/paravirt.h           | 12 +++
 arch/powerpc/include/asm/paravirt_api_clock.h |  1 +
 arch/powerpc/include/asm/time.h               |  5 +-
 arch/powerpc/kernel/time.c                    | 92 +------------------
 arch/powerpc/platforms/pseries/Kconfig        |  8 ++
 arch/powerpc/platforms/pseries/dtl.c          | 81 ++++++++++++++++
 arch/powerpc/platforms/pseries/lpar.c         | 11 +++
 arch/powerpc/platforms/pseries/setup.c        | 19 ++++
 init/Kconfig                                  |  3 +-
 15 files changed, 156 insertions(+), 106 deletions(-)
 create mode 100644 arch/powerpc/include/asm/paravirt_api_clock.h
Signature · 1 line
2.37.2