[Intel-gfx] [PATCH 5/5] drm/i915: rewrite shmem_pread_slow to use copy_to_user

Chris Wilson chris at chris-wilson.co.uk
Sat Sep 17 23:04:20 CEST 2011


On Sat, 17 Sep 2011 20:55:49 +0200, Daniel Vetter <daniel.vetter at ffwll.ch> wrote:
> Like for shmem_pwrite_slow. The only difference is that because we
> read data, we can leave the fetched cachelines in the cpu: In the case
> that the object isn't in the cpu read domain anymore, the clflush for
> the next cpu read domain invalidation will simply drop these
> cachelines.
> 
> slow_shmem_bit17_copy is now ununsed, so kill it.
> 
> With this patch tests/gem_mmap_gtt now actually works.

I have to ask the obvious question: does this have any impact on CPU
pwrite performance?

Bring on prefaulting ;-)
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list