[PATCH 10/13] drm/i915: don't call shmem_read_mapping unnecessarily

2011-11-06 Thread Daniel Vetter
This speeds up pwrite and pread from ~120 ?s ro ~100 ?s for reading/writing 1mb on my snb (if the backing storage pages are already pinned, of course). v2: Chris Wilson pointed out a claring page reference bug - I've unconditionally dropped the reference. With that fixed (and the associated reduct

[PATCH 10/13] drm/i915: don't call shmem_read_mapping unnecessarily

2011-11-06 Thread Daniel Vetter
This speeds up pwrite and pread from ~120 µs ro ~100 µs for reading/writing 1mb on my snb (if the backing storage pages are already pinned, of course). v2: Chris Wilson pointed out a claring page reference bug - I've unconditionally dropped the reference. With that fixed (and the associated reduct