[Intel-gfx] [PATCH 4/7] drm/i915: error capture with no ggtt slot

Chris Wilson chris at chris-wilson.co.uk
Tue Oct 29 10:06:48 UTC 2019


Quoting Matthew Auld (2019-10-29 09:58:53)
> From: Daniele Ceraolo Spurio <daniele.ceraolospurio at 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.ceraolospurio at intel.com>
> Signed-off-by: Abdiel Janulgue <abdiel.janulgue at linux.intel.com>
> Signed-off-by: Matthew Auld <matthew.auld at 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 <chris at chris-wilson.co.uk>
-Chris


More information about the Intel-gfx mailing list