Quoting Matthew Auld (2019-10-29 09:58:53)
> From: Daniele Ceraolo Spurio <daniele.ceraolospu...@intel.com>
> 
> If the aperture is not available in HW we can't use a ggtt slot and wc
> copy, so fall back to regular kmap.
> 
> Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospu...@intel.com>
> Signed-off-by: Abdiel Janulgue <abdiel.janul...@linux.intel.com>
> Signed-off-by: Matthew Auld <matthew.a...@intel.com>
> ---
> +       } else if (i915_gem_object_is_lmem(vma->obj)) {
> +               struct intel_memory_region *mem = vma->obj->mm.region;
> +               dma_addr_t dma;
> +
> +               for_each_sgt_daddr(dma, iter, vma->pages) {
> +                       void __iomem *s;
> +
> +                       s = io_mapping_map_atomic_wc(&mem->iomap, dma);
> +                       ret = compress_page(compress, s, dst);

Just a (void __force *)s required here.

Reviewed-by: Chris Wilson <ch...@chris-wilson.co.uk>
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to