提交 ae14dc05 编写于 作者: D Dave Airlie

drm: PAGE_CACHE_WC is x86 only so far

The page protections need to be checked whether they need to be more flexible.
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 aa91c666
......@@ -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() */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册