]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Busy-spin wait_for condition in atomic contexts
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 24 Mar 2011 11:37:03 +0000 (11:37 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 31 Mar 2011 08:31:12 +0000 (09:31 +0100)
commit972d55b0d921a9e690231b2a32799a868c49c411
tree8c718b415d6af80ab838490f8b09e8710b5e109f
parentc6dd717d57dda848395c1d110cd7e6af5d05dced
drm/i915: Busy-spin wait_for condition in atomic contexts

During modesetting, we need to wait for the hardware to report
readiness by polling the registers. Normally, we call msleep() between
reads, because some state changes may take a whole vblank or more
to complete. However during a panic, we are in an atomic context and
cannot sleep. Instead, busy spin polling the termination condition.

References: https://bugzilla.kernel.org/show_bug.cgi?id=31772
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/gpu/drm/i915/intel_drv.h