drm/i915/gem: Extend mmap support for lmem
authorAbdiel Janulgue <abdiel.janulgue@linux.intel.com>
Fri, 3 Jan 2020 20:41:35 +0000 (20:41 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 4 Jan 2020 17:57:46 +0000 (17:57 +0000)
commit4e598fad226be0d044d318b6c49cec2ec2b72be3
treeaf71ca5cb9704c866aad5bfdb439b049ab52a089
parentb2fcaac98bbec6036d17a0a120a19b64e65f6534
drm/i915/gem: Extend mmap support for lmem

Local memory objects are similar to our usual scatterlist, but instead
of using the struct page stored therein, we need to use the
sg->dma_address.

Signed-off-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: 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/20200103204137.2131004-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_mman.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_mm.c