Re: [Intel-gfx] [PATCH 6/6] drm/i915: Support for capturing MMIO register values

2017-03-16 Thread Chris Wilson
On Thu, Mar 16, 2017 at 11:50:11AM +0530, sourab.gu...@intel.com wrote: > +static int copy_mmio_list(struct drm_i915_private *dev_priv, > + void __user *mmio) > +{ > + void __user *mmio_list = ((u8 __user *)mmio + 4); > + u32 num_mmio; > + int ret; > + > +

[Intel-gfx] [PATCH 6/6] drm/i915: Support for capturing MMIO register values

2017-03-15 Thread sourab . gupta
From: Sourab Gupta This patch adds support for capturing MMIO register values through i915 perf interface. The userspace can request upto 8 MMIO register values to be dumped. The addresses of these registers can be passed through the corresponding property 'value' field while opening the stream.