linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] POWER8 PMU bugfixes
@ 2014-07-08  6:38 Joel Stanley
  2014-07-08  6:38 ` [PATCH v2 1/3] powerpc/kvm: Remove redundant save of SIER AND MMCR2 Joel Stanley
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Joel Stanley @ 2014-07-08  6:38 UTC (permalink / raw)
  To: benh, paulus, mpe; +Cc: linuxppc-dev

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.

V2:
 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(-)

-- 
2.0.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-07-08  6:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-08  6:38 [PATCH v2 0/3] POWER8 PMU bugfixes Joel Stanley
2014-07-08  6:38 ` [PATCH v2 1/3] powerpc/kvm: Remove redundant save of SIER AND MMCR2 Joel Stanley
2014-07-08  6:38 ` [PATCH v2 2/3] powerpc/perf: Add PPMU_ARCH_207S define Joel Stanley
2014-07-08  6:38 ` [PATCH v2 3/3] powerpc/perf: Clear MMCR2 when enabling PMU Joel Stanley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).