drm/i915: Track the wakeref used to initialise display power domains
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 14 Jan 2019 14:21:25 +0000 (14:21 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 14 Jan 2019 16:18:38 +0000 (16:18 +0000)
commit25c896bdb8dc8b90e8f4d477185780596fe42bbe
tree73618defbad16d50394e02d0faa269d7473a6631
parent0e6e0be4c952372cc4c3f30bb8ddf9451f314503
drm/i915: Track the wakeref used to initialise display power domains

On module load and unload, we grab the POWER_DOMAIN_INIT powerwells and
transfer them to the runtime-pm code. We can use our wakeref tracking to
verify that the wakeref is indeed passed from init to enable, and
disable to fini; and across suspend.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190114142129.24398-17-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_runtime_pm.c