]> git.ipfire.org Git - people/ms/linux.git/commit
drm/i915: Check for driver readyness before handling an underrun interrupt
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 26 Feb 2015 15:53:02 +0000 (15:53 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2015 13:11:09 +0000 (14:11 +0100)
commit9c0f288d39f786bdcaa0c8666e05f1ff747b2aac
tree6f17debc8543c6e1558d8aee32a1ef0d852fa136
parentfddd92aa4bbf7853240fc2ceb80de2e044e22358
drm/i915: Check for driver readyness before handling an underrun interrupt

commit 54fc7c1c961cb39edfe31f8a3f5ba6414e134b37 upstream.

When we takeover from the BIOS and install our interrupt handler, the
BIOS may have left us a few surprises in the form of spontaneous
interrupts. (This is especially likely on hardware like 965gm where
display fifo underruns are continuous and the GMCH cannot filter that
interrupt souce.) As we enable our IRQ early so that we can use it
during hardware probing, our interrupt handler must be prepared to
handle a few sources prior to being fully configured. As such, we need
to add a simple is-ready check prior to dereferencing our KMS state for
reporting underruns.

Reported-by: Rob Clark <rclark@redhat.com>
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1193972
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
[Jani: dropped the extra !]
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/intel_fifo_underrun.c