summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJie Zhou <b30303@freescale.com>2010-07-21 09:31:05 +0800
committerJustin Waters <justin.waters@timesys.com>2010-12-17 12:10:54 -0500
commit40d1ad75f374e509d48f967f6f25ed0aba79da78 (patch)
treec5e553b51cceee1ff06964516da41f707ced709e /drivers
parent7bec735fb7e5aaed5194d6e00fae827f6b1cef40 (diff)
ENGR00125353 GPU: use writecombine for mmap
Change pgprot_noncached to pgprot_writecombine in gsl_kmod_mmap to improve performance Signed-off-by: Thomas Peng <r80085@freescale.com> Signed-off-by: Jie Zhou <b30303@freescale.com> (cherry picked from commit 847baca41bceed49e397eaba8b1b3b00e86e20a3)
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mxc/amd-gpu/platform/hal/linux/gsl_kmod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mxc/amd-gpu/platform/hal/linux/gsl_kmod.c b/drivers/mxc/amd-gpu/platform/hal/linux/gsl_kmod.c
index 448414fafc05..30f783e1cf12 100644
--- a/drivers/mxc/amd-gpu/platform/hal/linux/gsl_kmod.c
+++ b/drivers/mxc/amd-gpu/platform/hal/linux/gsl_kmod.c
@@ -633,7 +633,7 @@ static int gsl_kmod_mmap(struct file *fd, struct vm_area_struct *vma)
unsigned long start = vma->vm_start;
unsigned long pfn = vma->vm_pgoff;
unsigned long size = vma->vm_end - vma->vm_start;
- unsigned long prot = pgprot_noncached(vma->vm_page_prot);
+ unsigned long prot = pgprot_writecombine(vma->vm_page_prot);
#ifdef GSL_MMU_TRANSLATION_ENABLED
unsigned long addr = vma->vm_pgoff << PAGE_SHIFT;
void *va;