提交 960e3564 编写于 作者: C Chris Wilson 提交者: Daniel Vetter

drm/i915: Support readback of stolen objects upon error

Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: NJesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: NBen Widawsky <ben@bwidawsk.net>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 c1ad11fc
...@@ -929,6 +929,14 @@ i915_error_object_create(struct drm_i915_private *dev_priv, ...@@ -929,6 +929,14 @@ i915_error_object_create(struct drm_i915_private *dev_priv,
reloc_offset); reloc_offset);
memcpy_fromio(d, s, PAGE_SIZE); memcpy_fromio(d, s, PAGE_SIZE);
io_mapping_unmap_atomic(s); io_mapping_unmap_atomic(s);
} else if (src->stolen) {
unsigned long offset;
offset = dev_priv->mm.stolen_base;
offset += src->stolen->start;
offset += i << PAGE_SHIFT;
memcpy_fromio(d, (void *)offset, PAGE_SIZE);
} else { } else {
struct page *page; struct page *page;
void *s; void *s;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册