Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965360Ab2EOPho (ORCPT ); Tue, 15 May 2012 11:37:44 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:55212 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965021Ab2EOPhm (ORCPT ); Tue, 15 May 2012 11:37:42 -0400 Message-ID: <4FB27841.9040301@gmail.com> Date: Tue, 15 May 2012 09:37:37 -0600 From: David Ahern User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Peter Zijlstra CC: Arnaldo Carvalho de Melo , Linus Torvalds , Ingo Molnar , linux-kernel@vger.kernel.org Subject: Re: Perf events warning.. References: <1337034048.27020.137.camel@laptop> <1337078996.27694.26.camel@twins> <4FB2755F.9020606@gmail.com> <1337095700.27694.76.camel@twins> In-Reply-To: <1337095700.27694.76.camel@twins> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3227 Lines: 69 On 5/15/12 9:28 AM, Peter Zijlstra wrote: > On Tue, 2012-05-15 at 09:25 -0600, David Ahern wrote: >> >> Perhaps it is specific to processor generation? > > Your error is distinctly different from Linus' in that it came from > within the arch code, Linus' was core code. > > Furthermore the error you send had: > > [ 31.528799] Hardware name: Bochs > > Which is some virt crap.. so I wouldn't trust the 'hardware' anyway. :-) Right, KVM and the vPMU added in 3.3. That said, it is recognized as a Nehalem and perf walks the Nehalem events path. So if VM based WARNING is not to your liking, here's a baremetal version: [ 84.388495] ------------[ cut here ]------------ [ 84.388554] WARNING: at /opt/sw/ahern/kernels/kernel-2.6.git/arch/x86/kernel/cpu/perf_event.c:1054 x86_pmu_start+0xdc/0x110() [ 84.388613] Hardware name: ProLiant DL380 G6 [ 84.388663] Modules linked in: nfs fscache bridge stp llc ipt_MASQUERADE iptable_nat nf_nat xt_physdev nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack xt_multiport nfsd lockd nfs_acl auth_rpcgss sunrpc coretemp ipmi_si ipmi_msghandler bnx2 i7core_edac edac_core hpilo hpwdt acpi_power_meter crc32c_intel microcode iTCO_wdt iTCO_vendor_support vhost_net pcspkr macvtap macvlan tun virtio_net kvm_intel kvm usb_storage hpsa radeon ttm drm_kms_helper drm i2c_algo_bit i2c_core [last unloaded: scsi_wait_scan] [ 84.390624] Pid: 1806, comm: find Not tainted 3.4.0-rc7+ #1 [ 84.390671] Call Trace: [ 84.390719] [] warn_slowpath_common+0x7f/0xc0 [ 84.390769] [] warn_slowpath_null+0x1a/0x20 [ 84.390831] [] x86_pmu_start+0xdc/0x110 [ 84.390880] [] x86_pmu_enable+0x212/0x270 [ 84.390996] [] perf_event_context_sched_in+0xe6/0x100 [ 84.391113] [] perf_event_comm+0x103/0x2b0 [ 84.391232] [] set_task_comm+0x72/0xe0 [ 84.391361] [] setup_new_exec+0x8b/0x240 [ 84.391480] [] load_elf_binary+0x3e7/0x19a0 [ 84.391600] [] ? get_user_pages+0x52/0x60 [ 84.391716] [] ? get_user_arg_ptr+0x38/0x80 [ 84.391833] [] search_binary_handler+0xee/0x340 [ 84.391963] [] ? load_elf_library+0x230/0x230 [ 84.392080] [] do_execve_common+0x36f/0x410 [ 84.392196] [] do_execve+0x3a/0x40 [ 84.392328] [] sys_execve+0x47/0x70 [ 84.392445] [] stub_execve+0x6c/0xc0 [ 84.392558] ---[ end trace 78e50a201158fd5d ]--- Though this one is an HP server with the lovely: [ 0.143910] Performance Events: PEBS fmt1+, 16-deep LBR, Nehalem events, Broken BIOS detected, complain to your hardware vendor. [ 0.144351] [Firmware Bug]: the BIOS has corrupted hw-PMU resources (MSR 38d is 330) [ 0.144627] Intel PMU driver. [ 0.144777] CPU erratum AAJ80 worked around David -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/