diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-03-25 17:47:39 (GMT) |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-03-27 11:29:38 (GMT) |
commit | 117babcdd51ed8a9bb8d4921b292918acb6e0d70 (patch) | |
tree | fae31ec1786be4749ac29c80d41ac7b6781ec2af | |
parent | ffc62976d215870e3082d9778660167c5fa3946d (diff) | |
download | linux-fsl-qoriq-117babcdd51ed8a9bb8d4921b292918acb6e0d70.tar.xz |
drm/i915: use uncached writes in pwrite
It's around 20% faster.
Tested-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 7f33e6a..c84060c 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c @@ -642,9 +642,9 @@ i915_gem_shmem_pwrite(struct drm_device *dev, if (partial_cacheline_write) drm_clflush_virt_range(vaddr + shmem_page_offset, page_length); - ret = __copy_from_user_inatomic(vaddr + shmem_page_offset, - user_data, - page_length); + ret = __copy_from_user_inatomic_nocache(vaddr + shmem_page_offset, + user_data, + page_length); if (needs_clflush_after) drm_clflush_virt_range(vaddr + shmem_page_offset, page_length); |