]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/error: Fix object page offset within a region
authorCQ Tang <cq.tang@intel.com>
Tue, 19 Jan 2021 13:31:04 +0000 (13:31 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Jan 2021 20:36:27 +0000 (20:36 +0000)
commit1cefe58cd7a347b67eb59351d895b910c6583a0c
treecd1b8a287a50a40b4962299ff6bbf4d41c86f848
parentabcf905898ab95087ff78c31499745d278ebbc1b
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
drivers/gpu/drm/i915/i915_gpu_error.c