From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3E5A61A0010 for ; Fri, 4 Jul 2014 12:36:03 +1000 (EST) Message-ID: <1404441362.25056.2.camel@concordia> Subject: Re: [PATCH 3/3] powerpc/perf: Clear MMCR2 when enabling PMU From: Michael Ellerman To: Joel Stanley Date: Fri, 04 Jul 2014 12:36:02 +1000 In-Reply-To: <1404367956-19515-4-git-send-email-joel@jms.id.au> References: <1404367956-19515-1-git-send-email-joel@jms.id.au> <1404367956-19515-4-git-send-email-joel@jms.id.au> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Cc: paulus@samba.org, linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 2014-07-03 at 15:42 +0930, Joel Stanley wrote: > On POWER8 when switching to a KVM guest we set bits in MMCR2 to freeze > the PMU counters. Aside from on boot they are then never reset, > resulting in stuck perf counters for any user in the guest or host. Cc: stable@vger.kernel.org Fixes: e05b9b9e5c10 ("powerpc/perf: Power8 PMU support") Acked-by: Michael Ellerman cheers