Re: [Intel-gfx] [RFC 1/8] drm/i915: Add a new PMU for handling non-OA counter data profiling requests

2015-08-05 Thread Chris Wilson
On Wed, Aug 05, 2015 at 09:49:39AM +, Gupta, Sourab wrote: > On Wed, 2015-08-05 at 15:17 +0530, sourab gupta wrote: > > On Wed, 2015-08-05 at 09:38 +, Chris Wilson wrote: > > > On Wed, Aug 05, 2015 at 11:25:37AM +0530, sourab.gu...@intel.com wrote: > > > > From: Sourab Gupta > > > > > > >

Re: [Intel-gfx] [RFC 1/8] drm/i915: Add a new PMU for handling non-OA counter data profiling requests

2015-08-05 Thread Chris Wilson
On Wed, Aug 05, 2015 at 09:45:28AM +, Gupta, Sourab wrote: > On Wed, 2015-08-05 at 09:38 +, Chris Wilson wrote: > > On Wed, Aug 05, 2015 at 11:25:37AM +0530, sourab.gu...@intel.com wrote: > > > From: Sourab Gupta > > > > > > The current perf PMU driver is specific for collection of OA cou

Re: [Intel-gfx] [RFC 1/8] drm/i915: Add a new PMU for handling non-OA counter data profiling requests

2015-08-05 Thread Gupta, Sourab
On Wed, 2015-08-05 at 15:17 +0530, sourab gupta wrote: > On Wed, 2015-08-05 at 09:38 +, Chris Wilson wrote: > > On Wed, Aug 05, 2015 at 11:25:37AM +0530, sourab.gu...@intel.com wrote: > > > From: Sourab Gupta > > > > > > The current perf PMU driver is specific for collection of OA counter > >

Re: [Intel-gfx] [RFC 1/8] drm/i915: Add a new PMU for handling non-OA counter data profiling requests

2015-08-05 Thread Gupta, Sourab
On Wed, 2015-08-05 at 09:38 +, Chris Wilson wrote: > On Wed, Aug 05, 2015 at 11:25:37AM +0530, sourab.gu...@intel.com wrote: > > From: Sourab Gupta > > > > The current perf PMU driver is specific for collection of OA counter > > statistics (which may be done in a periodic or asynchronous way)

Re: [Intel-gfx] [RFC 1/8] drm/i915: Add a new PMU for handling non-OA counter data profiling requests

2015-08-05 Thread Gupta, Sourab
On Wed, 2015-08-05 at 09:22 +, Chris Wilson wrote: > On Wed, Aug 05, 2015 at 11:25:37AM +0530, sourab.gu...@intel.com wrote: > > +static void gen_buffer_destroy(struct drm_i915_private *i915) > > +{ > > + mutex_lock(&i915->dev->struct_mutex); > > + vunmap(i915->gen_pmu.buffer.addr); > > +

Re: [Intel-gfx] [RFC 1/8] drm/i915: Add a new PMU for handling non-OA counter data profiling requests

2015-08-05 Thread Chris Wilson
On Wed, Aug 05, 2015 at 11:25:37AM +0530, sourab.gu...@intel.com wrote: > From: Sourab Gupta > > The current perf PMU driver is specific for collection of OA counter > statistics (which may be done in a periodic or asynchronous way). Since > this enables us (and limits us) to render ring, we have

Re: [Intel-gfx] [RFC 1/8] drm/i915: Add a new PMU for handling non-OA counter data profiling requests

2015-08-05 Thread Chris Wilson
On Wed, Aug 05, 2015 at 11:25:37AM +0530, sourab.gu...@intel.com wrote: > +static void gen_buffer_destroy(struct drm_i915_private *i915) > +{ > + mutex_lock(&i915->dev->struct_mutex); > + vunmap(i915->gen_pmu.buffer.addr); > + i915_gem_object_ggtt_unpin(i915->gen_pmu.buffer.obj); > +

[Intel-gfx] [RFC 1/8] drm/i915: Add a new PMU for handling non-OA counter data profiling requests

2015-08-04 Thread sourab . gupta
From: Sourab Gupta The current perf PMU driver is specific for collection of OA counter statistics (which may be done in a periodic or asynchronous way). Since this enables us (and limits us) to render ring, we have no means for collection of data pertaining to other rings. To overcome this limi

[Intel-gfx] [RFC 1/8] drm/i915: Add a new PMU for handling non-OA counter data profiling requests

2015-07-15 Thread sourab . gupta
From: Sourab Gupta The current perf PMU driver is specific for collection of OA counter statistics (which may be done in a periodic or asynchronous way). Since this enables us (and limits us) to render ring, we have no means for collection of data pertaining to other rings. To overcome this limi