drm/i915: Wait until the intel_wakeref idle callback is complete
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 18 Nov 2019 23:02:46 +0000 (23:02 +0000)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Mon, 25 Nov 2019 13:28:59 +0000 (15:28 +0200)
commitf83d7e3f5189eb78e481cd02da93e4e32a253493
tree4128676aca267bbe11d0fde644c44b2dcfd725f3
parent732f9ca4a737aea3983ad86007e88e7fffe8cd6a
drm/i915: Wait until the intel_wakeref idle callback is complete

When waiting for idle, serialise with any ongoing callback so that it
will have completed before completing the wait.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191118230254.2615942-12-chris@chris-wilson.co.uk
(cherry picked from commit f4ba0707c825d60f1d0f5ce7bd3d875e68f3e204)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/intel_wakeref.c
drivers/gpu/drm/i915/intel_wakeref.h