[PATCH v2 0/3] POWER8 PMU bugfixes

Joel Stanley joel at jms.id.au
Tue Jul 8 16:38:19 EST 2014

These three patches are required for correct operation of perf counters on
POWER8 boxes when running KVM guests. There were two bugs; not clearing MMCR2
and writing over the saved value when entering a guest. However the first
obscured the second.

Thanks to who mpe helped diagnose the issue and pointed out the fix.

 Add comment from mpe

Joel Stanley (3):
  powerpc/kvm: Remove redundant save of SIER AND MMCR2
  powerpc/perf: Add PPMU_ARCH_207S define
  powerpc/perf: Clear MMCR2 when enabling PMU

 arch/powerpc/include/asm/perf_event_server.h | 3 +--
 arch/powerpc/kvm/book3s_hv_interrupts.S      | 5 -----
 arch/powerpc/perf/core-book3s.c              | 9 ++++++---
 arch/powerpc/perf/power8-pmu.c               | 2 +-
 4 files changed, 8 insertions(+), 11 deletions(-)


More information about the Linuxppc-dev mailing list