mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
aa91c6665a
commit
ae14dc0505
1 changed files with 2 additions and 0 deletions
|
@ -516,7 +516,9 @@ int drm_gem_mmap(struct file *filp, struct vm_area_struct *vma)
|
||||||
vma->vm_private_data = map->handle;
|
vma->vm_private_data = map->handle;
|
||||||
/* FIXME: use pgprot_writecombine when available */
|
/* FIXME: use pgprot_writecombine when available */
|
||||||
prot = pgprot_val(vma->vm_page_prot);
|
prot = pgprot_val(vma->vm_page_prot);
|
||||||
|
#ifdef CONFIG_X86
|
||||||
prot |= _PAGE_CACHE_WC;
|
prot |= _PAGE_CACHE_WC;
|
||||||
|
#endif
|
||||||
vma->vm_page_prot = __pgprot(prot);
|
vma->vm_page_prot = __pgprot(prot);
|
||||||
|
|
||||||
vma->vm_file = filp; /* Needed for drm_vm_open() */
|
vma->vm_file = filp; /* Needed for drm_vm_open() */
|
||||||
|
|
Loading…
Add table
Reference in a new issue