diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2013-10-15 18:55:37 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-10-16 13:32:14 +0200 |
commit | 0c912c79eede0ba3dcc717a6e13de8766404c736 (patch) | |
tree | 7bfae8436b8b3a76e813adc94a9fcebe3f4290a9 /drivers | |
parent | bd9db02ffcf33348f3fb5d33b8623e78d7831d66 (diff) |
drm/i915: Warn if we receive an interrupt after freeing the buffer
This shouldn't happen as the buffer is freed after disable pipe CRCs,
but better be safe than sorry.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/i915_irq.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index 0b218285c2c..b201a214279 100644 --- a/drivers/gpu/drm/i915/i915_irq.c +++ b/drivers/gpu/drm/i915/i915_irq.c @@ -1197,6 +1197,11 @@ static void ivb_pipe_crc_update(struct drm_device *dev, enum pipe pipe) struct intel_pipe_crc_entry *entry; int head, tail; + if (!pipe_crc->entries) { + DRM_ERROR("spurious interrupt\n"); + return; + } + head = atomic_read(&pipe_crc->head); tail = atomic_read(&pipe_crc->tail); |