提交 0c912c79 编写于 作者: D Damien Lespiau 提交者: Daniel Vetter

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: NDamien Lespiau <damien.lespiau@intel.com>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 bd9db02f
...@@ -1197,6 +1197,11 @@ static void ivb_pipe_crc_update(struct drm_device *dev, enum pipe pipe) ...@@ -1197,6 +1197,11 @@ static void ivb_pipe_crc_update(struct drm_device *dev, enum pipe pipe)
struct intel_pipe_crc_entry *entry; struct intel_pipe_crc_entry *entry;
int head, tail; int head, tail;
if (!pipe_crc->entries) {
DRM_ERROR("spurious interrupt\n");
return;
}
head = atomic_read(&pipe_crc->head); head = atomic_read(&pipe_crc->head);
tail = atomic_read(&pipe_crc->tail); tail = atomic_read(&pipe_crc->tail);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册