]> bbs.cooldavid.org Git - net-next-2.6.git/commit
drm/i915: Double check that the wait_request is not pending before warning
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Sep 2010 23:02:03 +0000 (00:02 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 9 Sep 2010 08:18:00 +0000 (09:18 +0100)
commit7839d956fc6aecbb66d645b4050e8e88e2e821cd
tree43e60ca6f0b1cb9abdb65e573da2711d1fe3c406
parentc3add4b63438555d5e88c5893d238ab80d1f5959
drm/i915: Double check that the wait_request is not pending before warning

If we are busy, then we may have woken up the wait_request handler but
not yet serviced it before the hang check fires. So in hang check,
double check that the i915_gem_do_wait_request() is still pending the
wake-up before declaring all hope lost.

Fixes regression with e78d73b16bcde921c9cf458d2e4de8e4fc2518f3.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=30073
Reported-and-tested-by: Sitsofe Wheeler <sitsofe@yahoo.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_irq.c