diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-02-26 15:53:02 +0000 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2015-03-04 10:04:19 +0200 |
commit | 54fc7c1c961cb39edfe31f8a3f5ba6414e134b37 (patch) | |
tree | 20725b7b7fcec5cd77c9658a6ce7f41b7ae25fa1 /drivers/gpu/drm/i915/i915_drv.c | |
parent | 13a7a6ac0a11197edcd0f756a035f472b42cdf8b (diff) |
drm/i915: Check for driver readyness before handling an underrun interrupt
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>
Cc: stable@vger.kernel.org
[Jani: dropped the extra !]
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.c')
0 files changed, 0 insertions, 0 deletions