diff options
author | Tvrtko Ursulin <[email protected]> | 2020-12-14 09:43:47 +0000 |
---|---|---|
committer | Tvrtko Ursulin <[email protected]> | 2020-12-14 12:55:43 +0000 |
commit | dbe13ae1d6abaab417edf3c37601c6a56594a4cd (patch) | |
tree | 9a33eb841fb7d6c0b8c21b73ebbe5f1188c7fa39 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | 04adaba8801008870a23440e3a37d3c2b77cf4e8 (diff) |
drm/i915/pmu: Don't grab wakeref when enabling events
Chris found a CI report which points out calling intel_runtime_pm_get from
inside i915_pmu_enable hook is not allowed since it can be invoked from
hard irq context. This is something we knew but forgot, so lets fix it
once again.
We do this by syncing the internal book keeping with hardware rc6 counter
on driver load.
v2:
* Always sync on parking and fully sync on init.
Signed-off-by: Tvrtko Ursulin <[email protected]>
Fixes: f4e9894b6952 ("drm/i915/pmu: Correct the rc6 offset upon enabling")
Cc: Chris Wilson <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions