Re: [Intel-gfx] [PATCH] drm/i915/pmu: Use GT parked for estimating RC6 while asleep

2019-09-12 Thread Tvrtko Ursulin
On 11/09/2019 17:38, Chris Wilson wrote: As we track when we put the GT device to sleep upon idling, we can use that callback to sample the current rc6 counters and record the timestamp for estimating samples after that point while asleep. v2: Stick to using ktime_t v3: Track user_wakerefs that

Re: [Intel-gfx] [PATCH] drm/i915/pmu: Use GT parked for estimating RC6 while asleep

2019-09-12 Thread Chris Wilson
Quoting Tvrtko Ursulin (2019-09-12 10:55:00) > > On 12/09/2019 10:39, Chris Wilson wrote: > > Quoting Tvrtko Ursulin (2019-09-12 10:20:39) > >> Don't we end up doing the irqsave spinlock needlessly when !CONFIG_PM? > > > > No, the intent is to serialise with i915_pmu_gt_parked and > > i915_pmu_gt

Re: [Intel-gfx] [PATCH] drm/i915/pmu: Use GT parked for estimating RC6 while asleep

2019-09-12 Thread Tvrtko Ursulin
On 12/09/2019 10:39, Chris Wilson wrote: Quoting Tvrtko Ursulin (2019-09-12 10:20:39) On 11/09/2019 17:38, Chris Wilson wrote: As we track when we put the GT device to sleep upon idling, we can use that callback to sample the current rc6 counters and record the timestamp for estimating sample

Re: [Intel-gfx] [PATCH] drm/i915/pmu: Use GT parked for estimating RC6 while asleep

2019-09-12 Thread Chris Wilson
Quoting Tvrtko Ursulin (2019-09-12 10:20:39) > > On 11/09/2019 17:38, Chris Wilson wrote: > > As we track when we put the GT device to sleep upon idling, we can use > > that callback to sample the current rc6 counters and record the > > timestamp for estimating samples after that point while aslee

Re: [Intel-gfx] [PATCH] drm/i915/pmu: Use GT parked for estimating RC6 while asleep

2019-09-12 Thread Tvrtko Ursulin
On 11/09/2019 17:38, Chris Wilson wrote: As we track when we put the GT device to sleep upon idling, we can use that callback to sample the current rc6 counters and record the timestamp for estimating samples after that point while asleep. v2: Stick to using ktime_t v3: Track user_wakerefs that

[Intel-gfx] [PATCH] drm/i915/pmu: Use GT parked for estimating RC6 while asleep

2019-09-11 Thread Chris Wilson
As we track when we put the GT device to sleep upon idling, we can use that callback to sample the current rc6 counters and record the timestamp for estimating samples after that point while asleep. v2: Stick to using ktime_t v3: Track user_wakerefs that interfere with the new intel_gt_pm_wait_for

[Intel-gfx] [PATCH] drm/i915/pmu: Use GT parked for estimating RC6 while asleep

2019-08-03 Thread Chris Wilson
As we track when we put the GT device to sleep upon idling, we can use that callback to sample the current rc6 counters and record the timestamp for estimating samples after that point while asleep. v2: Stick to using ktime_t Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105010 Signed-of

Re: [Intel-gfx] [PATCH] drm/i915/pmu: Use GT parked for estimating RC6 while asleep

2019-02-12 Thread Chris Wilson
Quoting Chris Wilson (2019-02-12 22:39:46) > As we track when we put the GT device to sleep upon idling, we can use > that callback to sample the current rc6 counters and record the > timestamp for estimating samples after that point while asleep. Bah, the perf_pmu/rc6 test bypasses the GPU and po

[Intel-gfx] [PATCH] drm/i915/pmu: Use GT parked for estimating RC6 while asleep

2019-02-12 Thread Chris Wilson
As we track when we put the GT device to sleep upon idling, we can use that callback to sample the current rc6 counters and record the timestamp for estimating samples after that point while asleep. Signed-off-by: Chris Wilson Cc: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_pmu.c | 83