drm/i915: Add a wakeref getter for iff the wakeref is already active
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 26 Jun 2019 15:45:47 +0000 (16:45 +0100)
committerJani Nikula <jani.nikula@intel.com>
Thu, 1 Aug 2019 10:21:52 +0000 (13:21 +0300)
commitb1fa6fd94fc6a5d6be85359743b5f3626f3f881c
tree850e4901a3c7d25fe39ebd5e60dcb2c4af20d7a5
parent0de50e40fc685fed4d6896a379b123f859ffb17b
drm/i915: Add a wakeref getter for iff the wakeref is already active

For use in the next patch, we want to acquire a wakeref without having
to wake the device up -- i.e. only acquire the engine wakeref if the
engine is already active.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190626154549.10066-1-chris@chris-wilson.co.uk
(cherry picked from commit de5147b8ce6d51f634661d7c531385371485cec6)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/gt/intel_engine_pm.h
drivers/gpu/drm/i915/intel_wakeref.h