drm/i915/perf: Replace global wakeref tracking with engine-pm
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 11 Oct 2019 19:03:17 +0000 (20:03 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 12 Oct 2019 06:53:20 +0000 (07:53 +0100)
commita5efcde69b112d276416f8e6e5e9fd8ede13bfc5
treebd17617e41cb4e87e4b6f1311fc362a2b5eeb756
parentcd9ba7b6e479ee5f71070f0c095f185e7cdc2eac
drm/i915/perf: Replace global wakeref tracking with engine-pm

As we now have a specific engine to use OA on, exchange the top-level
runtime-pm wakeref with the engine-pm. This still results in the same
top-level runtime-pm, but with more nuances to keep the engine and its
gt awake.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191011190325.10979-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_perf.c
drivers/gpu/drm/i915/i915_perf_types.h