Quoting Matthew Auld (2019-10-29 09:58:53) > From: Daniele Ceraolo Spurio <[email protected]> > > 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 <[email protected]> > Signed-off-by: Abdiel Janulgue <[email protected]> > Signed-off-by: Matthew Auld <[email protected]> > --- > + } 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 <[email protected]> -Chris _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
