mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-09-19 13:14:21 +00:00
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)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user