drm/i915: Add might_sleep() check to wait_for()
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 14 Nov 2017 21:56:55 +0000 (21:56 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Nov 2017 10:38:04 +0000 (10:38 +0000)
commit290b20a6d34acc188aec01669c210d731cc0ec15
tree0ab4448f88d34bd3ecac4451fcdf0ad2b595acf7
parent55bd6bd75717ca67b790cc1a457cab92adcce148
drm/i915: Add might_sleep() check to wait_for()

We should long past the time of trying to use wait_for() from inside
atomic contexts, so add a might_sleep() check to prevent misuse.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171114215655.4849-1-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
drivers/gpu/drm/i915/intel_drv.h