Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752374AbcDKHBk (ORCPT ); Mon, 11 Apr 2016 03:01:40 -0400 Received: from mail-wm0-f44.google.com ([74.125.82.44]:34578 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750801AbcDKHBi (ORCPT ); Mon, 11 Apr 2016 03:01:38 -0400 Subject: Re: [PATCH 3.14 75/76] perf/x86/intel: Use PAGE_SIZE for PEBS buffer size on Core2 To: Greg Kroah-Hartman , linux-kernel@vger.kernel.org References: <20160410183516.090999097@linuxfoundation.org> <20160410183518.804821365@linuxfoundation.org> Cc: stable@vger.kernel.org, Arnaldo Carvalho de Melo , Jiri Olsa , "Peter Zijlstra (Intel)" , Andi Kleen , Alexander Shishkin , Jiri Olsa , Kan Liang , Linus Torvalds , Stephane Eranian , Thomas Gleixner , Vince Weaver , Wang Nan , Ingo Molnar From: Jiri Slaby Message-ID: <570B4BCD.1020403@suse.cz> Date: Mon, 11 Apr 2016 09:01:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <20160410183518.804821365@linuxfoundation.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1942 Lines: 54 On 04/10/2016, 08:37 PM, Greg Kroah-Hartman wrote: > 3.14-stable review patch. If anyone has any objections, please let me know. > > ------------------ > > From: Jiri Olsa > > commit 3135a66b768c5ee84c8a98b21d0330dc1c1234b4 upstream. Where does this come from? fatal: bad object 3135a66b768c5ee84c8a98b21d0330dc1c1234b4 The same for the later perf patch. > Using PAGE_SIZE buffers makes the WRMSR to PERF_GLOBAL_CTRL in > intel_pmu_enable_all() mysteriously hang on Core2. As a workaround, we > don't do this. > > The hard lockup is easily triggered by running 'perf test attr' > repeatedly. Most of the time it gets stuck on sample session with > small periods. > > # perf test attr -vv > 14: struct perf_event_attr setup : > --- start --- > ... > 'PERF_TEST_ATTR=/tmp/tmpuEKz3B /usr/bin/perf record -o /tmp/tmpuEKz3B/perf.data -c 123 kill >/dev/null 2>&1' ret 1 > > Reported-by: Arnaldo Carvalho de Melo > Signed-off-by: Jiri Olsa > Signed-off-by: Peter Zijlstra (Intel) > Reviewed-by: Andi Kleen > Cc: Alexander Shishkin > Cc: Jiri Olsa > Cc: Kan Liang > Cc: Linus Torvalds > Cc: Peter Zijlstra > Cc: Stephane Eranian > Cc: Thomas Gleixner > Cc: Vince Weaver > Cc: Wang Nan > Link: http://lkml.kernel.org/r/20160301190352.GA8355@krava.redhat.com > Signed-off-by: Ingo Molnar > Signed-off-by: Greg Kroah-Hartman > --- > arch/x86/kernel/cpu/perf_event.h | 1 + > arch/x86/kernel/cpu/perf_event_intel_ds.c | 13 +++++++++++-- > 2 files changed, 12 insertions(+), 2 deletions(-) thanks, -- js suse labs