From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755601Ab2IYLc6 (ORCPT ); Tue, 25 Sep 2012 07:32:58 -0400 Received: from merlin.infradead.org ([205.233.59.134]:57183 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754893Ab2IYLc4 convert rfc822-to-8bit (ORCPT ); Tue, 25 Sep 2012 07:32:56 -0400 Message-ID: <1348572758.3881.24.camel@twins> Subject: Re: [PATCH 1/1] perf, Add support for Xeon-Phi PMU From: Peter Zijlstra To: Vince Weaver Cc: linux-kernel@vger.kernel.org, Paul Mackerras , Ingo Molnar , Arnaldo Carvalho de Melo , eranian@gmail.com, "Meadows, Lawrence F" , Cyrill Gorcunov Date: Tue, 25 Sep 2012 13:32:38 +0200 In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Mailer: Evolution 3.2.2- Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2012-09-20 at 13:03 -0400, Vince Weaver wrote: > One additional complication: some of the cache events map to > event "0". This causes problems because the generic events code > assumes "0" means not-available. I'm not sure the best way to address > that problem. For all except P4 we could remap the 0 value to -2, that has all high bits set (like the -1) which aren't used by hardware. P4 is stuffing two registers in the 64bit config space and actually has them all in use I think.. Cyrill?