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)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Nov 2019 18:02:48 +0000 (18:02 +0000)
commitf4ba0707c825d60f1d0f5ce7bd3d875e68f3e204
treeb42c7d592edd7418a4d7d7cf81c69610068dc0c2
parent8ad305f1a29a8c06586aaef87443ce14936aac30
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
drivers/gpu/drm/i915/intel_wakeref.c
drivers/gpu/drm/i915/intel_wakeref.h