From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758249Ab0LMQvM (ORCPT ); Mon, 13 Dec 2010 11:51:12 -0500 Received: from one.firstfloor.org ([213.235.205.2]:55441 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758113Ab0LMQvL (ORCPT ); Mon, 13 Dec 2010 11:51:11 -0500 Date: Mon, 13 Dec 2010 17:51:06 +0100 From: Andi Kleen To: Stephane Eranian Cc: Lin Ming , Peter Zijlstra , Andi Kleen , Ingo Molnar , Frederic Weisbecker , Arjan van de Ven , lkml Subject: Re: [RFC PATCH 2/3 v3] perf: Implement Nehalem uncore pmu Message-ID: <20101213165106.GC11449@basil.fritz.box> References: <1291267223.2405.314.camel@minggr.sh.intel.com> <1291922467.6803.44.camel@twins> <1291978036.6803.95.camel@twins> <1292228848.10384.107.camel@minggr.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > If think there you want something like: > > if (cpu == cpumask_first(topology_core_siblings(cpu)) { >       rdmsrl(MSR_IA32_DEBUGCTLMSR, val); >     wrmsrl(MSR_IA32_DEBUGCTLMSR, val | DEBUGCTLMSR_ENABLE_UNCORE_PMI); > } You have to be careful with hotplug. The code would need to be rerun on hotplug. Otherwise the interrupt may end up on a downed CPU. -Andi