drm/i915: Process page flags once rather than per pwrite/pread
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 7 Mar 2014 08:30:36 +0000 (08:30 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 7 Mar 2014 23:03:01 +0000 (00:03 +0100)
commit17793c9a4659b272a9f892d44940062ed8b5fd0e
treefa3b63d7cab27dc45b94397cbcbb1f2e325ba5ce
parent2fae6a860ca9adb0c881f6dcd633df775c2520e9
drm/i915: Process page flags once rather than per pwrite/pread

We used to lock individual pages inside the buffer object and so needed
to update the page flags every time. However, we now pin the pages into
the object for the duration of the pwrite/pread (and hopefully much
longer) and so we can forgo the flag updates until we release all the
pages.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Brad Volkin <bradley.d.volkin@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c