[Intel-gfx] [PATCH 08/29] drm/i915: Introduce struct intel_wakeref

2019-04-08 Thread Chris Wilson
For controlling runtime pm of the GT and engines, we would like to have a callback to do extra work the first time we wake up and the last time we drop the wakeref. This first/last access needs serialisation and so we encompass a mutex with the regular intel_wakeref_t tracker. Signed-off-by: Chris

Re: [Intel-gfx] [PATCH 08/29] drm/i915: Introduce struct intel_wakeref

2019-04-10 Thread Tvrtko Ursulin
On 08/04/2019 10:17, Chris Wilson wrote: For controlling runtime pm of the GT and engines, we would like to have a callback to do extra work the first time we wake up and the last time we drop the wakeref. This first/last access needs serialisation and so we encompass a mutex with the regular in

Re: [Intel-gfx] [PATCH 08/29] drm/i915: Introduce struct intel_wakeref

2019-04-10 Thread Chris Wilson
Quoting Tvrtko Ursulin (2019-04-10 10:49:35) > > On 08/04/2019 10:17, Chris Wilson wrote: > > For controlling runtime pm of the GT and engines, we would like to have > > a callback to do extra work the first time we wake up and the last time > > we drop the wakeref. This first/last access needs se

Re: [Intel-gfx] [PATCH 08/29] drm/i915: Introduce struct intel_wakeref

2019-04-10 Thread Tvrtko Ursulin
On 10/04/2019 11:01, Chris Wilson wrote: Quoting Tvrtko Ursulin (2019-04-10 10:49:35) On 08/04/2019 10:17, Chris Wilson wrote: For controlling runtime pm of the GT and engines, we would like to have a callback to do extra work the first time we wake up and the last time we drop the wakeref. T