diff options
author | Tvrtko Ursulin <[email protected]> | 2021-01-18 10:07:24 +0000 |
---|---|---|
committer | Jani Nikula <[email protected]> | 2021-01-18 12:25:05 +0200 |
commit | 171a8e99828144050015672016dd63494c6d200a (patch) | |
tree | 55151fff663a2dfee2ec19c9f6fa6fd0f2caeafe /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 488751a0ef9b5ce572c47301ce62d54fc6b5a74d (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]
(cherry picked from commit dbe13ae1d6abaab417edf3c37601c6a56594a4cd)
Signed-off-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions