Re: [Intel-gfx] [PATCH 1/8] drm/i915: Add i915 perf infrastructure

2016-02-04 Thread Robert Bragg
On Thu, Feb 4, 2016 at 1:17 PM, Robert Bragg wrote: > > On Thu, Feb 4, 2016 at 1:42 AM, Emil Velikov > wrote: > >> On 3 February 2016 at 18:39, Robert Bragg wrote: >> >>> >>> > +}; >>> > + >>> > +struct drm_i915_perf_open_param { >>> > + /** CLOEXEC, NONBLOCK... */ >>> > + __u32 fla

Re: [Intel-gfx] [PATCH 1/8] drm/i915: Add i915 perf infrastructure

2016-02-04 Thread Robert Bragg
On Thu, Feb 4, 2016 at 1:42 AM, Emil Velikov wrote: > On 3 February 2016 at 18:39, Robert Bragg wrote: > > > index a5524cc..68ca26e 100644 > > --- a/include/uapi/drm/i915_drm.h > > +++ b/include/uapi/drm/i915_drm.h > > > @@ -1170,4 +1172,71 @@ struct drm_i915_gem_context_param { > > __u6

Re: [Intel-gfx] [PATCH 1/8] drm/i915: Add i915 perf infrastructure

2016-02-03 Thread Emil Velikov
On 3 February 2016 at 18:39, Robert Bragg wrote: > index a5524cc..68ca26e 100644 > --- a/include/uapi/drm/i915_drm.h > +++ b/include/uapi/drm/i915_drm.h > @@ -1170,4 +1172,71 @@ struct drm_i915_gem_context_param { > __u64 value; > }; > > +#define I915_PERF_FLAG_FD_CLOEXEC (1<<0) >

[Intel-gfx] [PATCH 1/8] drm/i915: Add i915 perf infrastructure

2016-02-03 Thread Robert Bragg
Adds base i915 perf infrastructure for Gen performance metrics. This adds a DRM_IOCTL_I915_PERF_OPEN ioctl that takes an array of uint64 properties to configure a stream of metrics and returns a new fd usable with standard VFS system calls including read() to read typed and sized records; ioctl()

[Intel-gfx] [PATCH 1/8] drm/i915: Add i915 perf infrastructure

2016-02-02 Thread Robert Bragg
Adds base i915 perf infrastructure for Gen performance metrics. This adds a DRM_IOCTL_I915_PERF_OPEN ioctl that takes an array of uint64 properties to configure a stream of metrics and returns a new fd usable with standard VFS system calls including read() to read typed and sized records; ioctl()