From 4cd2daf53ca2e03c21308ab137edbe145f4fd54a Mon Sep 17 00:00:00 2001 From: Jie Zhou Date: Wed, 21 Jul 2010 09:31:05 +0800 Subject: [PATCH] ENGR00125353 GPU: use writecombine for mmap Change pgprot_noncached to pgprot_writecombine in gsl_kmod_mmap to improve performance Signed-off-by: Thomas Peng Signed-off-by: Jie Zhou (cherry picked from commit 847baca41bceed49e397eaba8b1b3b00e86e20a3) --- drivers/mxc/amd-gpu/platform/hal/linux/gsl_kmod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 448414fafc0..30f783e1cf1 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;