[Intel-gfx] [PATCH] drm/i915/gem: Support discontiguous lmem object maps

Chris Wilson chris at chris-wilson.co.uk
Thu Jan 2 08:45:39 UTC 2020


Quoting Chris Wilson (2020-01-01 22:09:27)
> +               ptes = mem;
> +               for_each_sgt_daddr(addr, sgt_iter, sgt)
> +                       **ptes++ = io_wc_pte(addr);

Addr is just relative to the start of lmem, this needs the iobar offset
as well. That magic is that using any old physical address just works,
until you hit something important!
-Chris


More information about the Intel-gfx mailing list