Re: [Intel-gfx] [PATCH 24/24] RFC drm/i915: Expose a PMU interface for perf queries

2017-06-15 Thread Tvrtko Ursulin
On 18/05/2017 10:46, Chris Wilson wrote: The first goal is to be able to measure GPU (and invidual ring) busyness without having to poll registers from userspace. (Which not only incurs holding the forcewake lock indefinitely, perturbing the system, but also runs the risk of hanging the machine.

Re: [Intel-gfx] [PATCH 24/24] RFC drm/i915: Expose a PMU interface for perf queries

2017-05-19 Thread Dmitry Rogozhkin
On 5/19/2017 1:01 AM, Chris Wilson wrote: On Thu, May 18, 2017 at 04:48:47PM -0700, Dmitry Rogozhkin wrote: On 5/18/2017 2:46 AM, Chris Wilson wrote: The first goal is to be able to measure GPU (and invidual ring) busyness without having to poll registers from userspace. (Which not only incu

Re: [Intel-gfx] [PATCH 24/24] RFC drm/i915: Expose a PMU interface for perf queries

2017-05-19 Thread Chris Wilson
On Thu, May 18, 2017 at 04:48:47PM -0700, Dmitry Rogozhkin wrote: > > > On 5/18/2017 2:46 AM, Chris Wilson wrote: > >The first goal is to be able to measure GPU (and invidual ring) busyness > >without having to poll registers from userspace. (Which not only incurs > >holding the forcewake lock in

Re: [Intel-gfx] [PATCH 24/24] RFC drm/i915: Expose a PMU interface for perf queries

2017-05-18 Thread Dmitry Rogozhkin
On 5/18/2017 2:46 AM, Chris Wilson wrote: The first goal is to be able to measure GPU (and invidual ring) busyness without having to poll registers from userspace. (Which not only incurs holding the forcewake lock indefinitely, perturbing the system, but also runs the risk of hanging the machin

[Intel-gfx] [PATCH 24/24] RFC drm/i915: Expose a PMU interface for perf queries

2017-05-18 Thread Chris Wilson
The first goal is to be able to measure GPU (and invidual ring) busyness without having to poll registers from userspace. (Which not only incurs holding the forcewake lock indefinitely, perturbing the system, but also runs the risk of hanging the machine.) As an alternative we can use the perf even