Re: [Intel-gfx] [PATCH 17/26] drm/i915: Clean up pagetable DMA map & unmap

2014-03-18 Thread Chris Wilson
On Mon, Mar 17, 2014 at 10:48:49PM -0700, Ben Widawsky wrote: > Map and unmap are common operations across all generations for > pagetables. With a simple helper, we can get a nice net code reduction > as well as simplified complexity. > > There is some room for optimization here, for instance wit

[Intel-gfx] [PATCH 17/26] drm/i915: Clean up pagetable DMA map & unmap

2014-03-17 Thread Ben Widawsky
Map and unmap are common operations across all generations for pagetables. With a simple helper, we can get a nice net code reduction as well as simplified complexity. There is some room for optimization here, for instance with the multiple page mapping, that can be done in one pci_map operation.