drm/i915: Kick hangcheck from retire worker
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 9 Jul 2016 09:12:06 +0000 (10:12 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 11 Jul 2016 12:48:42 +0000 (13:48 +0100)
commitc96156138284a44e0a96b4e163a68bdeefc05735
tree4e56228851ca7301941d643508ba3395855f9c90
parent232af392fdb52aa2739dad4e03fed273b3c3f24a
drm/i915: Kick hangcheck from retire worker

Let's ensure that we cannot run indefinitely without the hangcheck
worker being queued. We removed it from being kicked on every request
because we were kicking it a few millions times in every hangcheck
interval and only once is necessary! However, that leaves us with the
issue of what if userspace never waits for a request, or runs out of
resources, what if userspace just issues a request then spins on
BUSY_IOCTL?

Testcase: igt/gem_busy
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1468055535-19740-3-git-send-email-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
drivers/gpu/drm/i915/i915_gem.c