drm/i915: Force printing wakeref tacking during pm_cleanup
authorImre Deak <imre.deak@intel.com>
Thu, 9 May 2019 17:34:37 +0000 (20:34 +0300)
committerImre Deak <imre.deak@intel.com>
Tue, 14 May 2019 10:56:08 +0000 (13:56 +0300)
commitdbf99c1f8c7ec32ece0584497832a53a7acc4936
tree75c4932604502129d5b3d65e5ec83d78a42b8288
parent4547c255f4420e20c6cda2ee4172ae68b323e695
drm/i915: Force printing wakeref tacking during pm_cleanup

Make sure we print and drop the wakeref tracking info during pm_cleanup
even if there are wakeref holders (either raw-wakeref or wakelock
holders). Dropping the wakeref tracking means that a late put on the ref
will WARN since the wakeref will be unknown, but that is rightly so,
since the put is late and we want to catch that case.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190509173446.31095-3-imre.deak@intel.com
drivers/gpu/drm/i915/intel_runtime_pm.c