From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754051AbbJPKdz (ORCPT ); Fri, 16 Oct 2015 06:33:55 -0400 Received: from casper.infradead.org ([85.118.1.10]:54977 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753828AbbJPKdv (ORCPT ); Fri, 16 Oct 2015 06:33:51 -0400 Date: Fri, 16 Oct 2015 12:33:45 +0200 From: Peter Zijlstra To: Ingo Molnar Cc: Robert Bragg , intel-gfx@lists.freedesktop.org, Daniel Vetter , Chris Wilson , Sourab Gupta , Zhenyu Wang , Jani Nikula , David Airlie , Kan Liang , Alexander Shishkin , Zheng Yan , Mark Rutland , Matt Fleming , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org Subject: Re: [RFC 0/6] Non perf based Gen Graphics OA unit driver Message-ID: <20151016103345.GS3816@twins.programming.kicks-ass.net> References: <1443537549-6905-1-git-send-email-robert@sixbynine.org> <20151016094306.GA3604@twins.programming.kicks-ass.net> <20151016100228.GA22732@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151016100228.GA22732@gmail.com> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 16, 2015 at 12:02:28PM +0200, Ingo Molnar wrote: > > * Peter Zijlstra wrote: > > > > - We may be making some technical compromises a.t.m for the sake of > > > using perf. > > > > > > perf_event_open() requires events to either relate to a pid or a > > > specific cpu core, while our device pmu relates to neither. Events > > > opened with a pid will be automatically enabled/disabled according > > > to the scheduling of that process - so not appropriate for us. > > > > Right; the traditional cpu/pid mapping doesn't work well for devices; > > but maybe, with some work, we can create something like that > > global/local render context from it; although I've no clue what form > > that would need at this time. > > Could someone please help with some very basic questions, such as what the > hardware model of the 'OA' unit model is? How are OA registers set up, how are > their values made accessible to the host side, etc. Robert linked to: https://01.org/sites/default/files/documentation/observability_performance_counters_haswell.pdf In a previous posting. It has some info, but full documentation, is as per the initial post, 'pending'.