[Intel-gfx] [RFC 6/8] drm/i915: Insert commands for capture of OA counters in the ring

2015-08-04 Thread sourab . gupta
From: Sourab Gupta This patch adds the routines which insert commands for capturing OA snapshots into the ringbuffer of RCS engine. The command MI_REPORT_PERF_COUNT can be used to capture snapshots of OA counters, which is inserted at BB boundaries. While inserting the commands, we keep a refere

Re: [Intel-gfx] [RFC 6/8] drm/i915: Insert commands for capture of OA counters in the ring

2015-07-15 Thread Chris Wilson
On Wed, Jul 15, 2015 at 02:17:01PM +0530, sourab.gu...@intel.com wrote: > +void i915_oa_insert_cmd(struct intel_ringbuffer *ringbuf, u32 ctx_id) You need to pass in the request here instead. A better name would be i915_oa_emit_perf_report(). insert_cmd() is a little too generic (i.e. which cmd do

[Intel-gfx] [RFC 6/8] drm/i915: Insert commands for capture of OA counters in the ring

2015-07-15 Thread sourab . gupta
From: Sourab Gupta This patch adds the routines which insert commands for capturing OA snapshots into the ringbuffer of RCS engine. The command MI_REPORT_PERF_COUNT can be used to capture snapshots of OA counters, which is inserted at BB boundaries. While inserting the commands, we keep a refere