mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 01:54:09 +08:00
drm/i915/error: Fix object page offset within a region
io_mapping_map_wc() expects the offset to be relative to the iomapping base address. Currently we just pass in the physical address for the page which only works if the region.start starts at zero. Signed-off-by: CQ Tang <cq.tang@intel.com> Signed-off-by: Matthew Auld <matthew.auld@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20210119133106.66294-2-matthew.auld@intel.com
This commit is contained in:
parent
23b2afc6ee
commit
c97498363f
@ -1051,7 +1051,9 @@ i915_vma_coredump_create(const struct intel_gt *gt,
|
||||
for_each_sgt_daddr(dma, iter, vma->pages) {
|
||||
void __iomem *s;
|
||||
|
||||
s = io_mapping_map_wc(&mem->iomap, dma, PAGE_SIZE);
|
||||
s = io_mapping_map_wc(&mem->iomap,
|
||||
dma - mem->region.start,
|
||||
PAGE_SIZE);
|
||||
ret = compress_page(compress,
|
||||
(void __force *)s, dst,
|
||||
true);
|
||||
|
Loading…
Reference in New Issue
Block a user