drm/i915/guc: Track the rpm wakeref
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 14 Jan 2019 14:21:17 +0000 (14:21 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 14 Jan 2019 16:18:12 +0000 (16:18 +0000)
commit3055f0cd782fe3ef556227fc153c2f66fe47b721
tree114bdadd7825870a1bb44eaf5990989c4ed823d2
parent00e27cbe4c8960b79324ccd48a6077e251e42bd7
drm/i915/guc: Track the rpm wakeref

Keep track of our acquired wakeref for interacting with the guc, so that
we can cancel it upon release and so clearly identify leaks.

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-9-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_guc_log.c
drivers/gpu/drm/i915/intel_huc.c