projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa91c66
)
drm: PAGE_CACHE_WC is x86 only so far
author
Dave Airlie
<airlied@linux.ie>
Thu, 11 Dec 2008 07:06:35 +0000
(17:06 +1000)
committer
Dave Airlie
<airlied@linux.ie>
Mon, 29 Dec 2008 07:47:24 +0000
(17:47 +1000)
The page protections need to be checked whether they need to be more flexible.
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_gem.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_gem.c
b/drivers/gpu/drm/drm_gem.c
index b3939de6affd895c1a0d5a6dd8efa0423d915034..9da5814528749a82b4ef12a1b13134d34635557b 100644
(file)
--- a/
drivers/gpu/drm/drm_gem.c
+++ b/
drivers/gpu/drm/drm_gem.c
@@
-516,7
+516,9
@@
int drm_gem_mmap(struct file *filp, struct vm_area_struct *vma)
vma->vm_private_data = map->handle;
/* FIXME: use pgprot_writecombine when available */
prot = pgprot_val(vma->vm_page_prot);
+#ifdef CONFIG_X86
prot |= _PAGE_CACHE_WC;
+#endif
vma->vm_page_prot = __pgprot(prot);
vma->vm_file = filp; /* Needed for drm_vm_open() */