Re: [Intel-gfx] [PATCH 19/26] drm/i915: Consolidate dma mappings

2014-03-18 Thread Chris Wilson
On Mon, Mar 17, 2014 at 10:48:51PM -0700, Ben Widawsky wrote: > With a little bit of macro magic, and the fact that every page > table/dir/etc. we wish to map will have a page, and daddr member, we can > greatly simplify and reduce code. > > The patch introduces an i915_dma_map/unmap which has the

[Intel-gfx] [PATCH 19/26] drm/i915: Consolidate dma mappings

2014-03-17 Thread Ben Widawsky
With a little bit of macro magic, and the fact that every page table/dir/etc. we wish to map will have a page, and daddr member, we can greatly simplify and reduce code. The patch introduces an i915_dma_map/unmap which has the same semantics as pci_map_page, but is 1 line, and doesn't require newl