match the latest BSP caching policy for IPU - it seems that the Flash performance update actually causes some subtle artefacts which are not acceptable to users. Go from writecombine (wrong) to a custom writethrough (weird) to the standard writethrough (correct but lower performance) and remove the define that swaps it on or off

This commit is contained in:
Matt Sealey
2011-07-12 11:29:11 -05:00
parent 1f11661da3
commit 0dc6930770

View File

@@ -447,13 +447,7 @@ static int mxc_ipu_ioctl(struct inode *inode, struct file *file,
static int mxc_ipu_mmap(struct file *file, struct vm_area_struct *vma)
{
#if defined(I_WANT_FLASH_TO_BE_REALLY_SLOW)
vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
#else
vma->vm_page_prot = (__pgprot(pgprot_val(vma->vm_page_prot) |
L_PTE_MT_WRITETHROUGH) &
~L_PTE_MT_BUFFERABLE);
#endif
vma->vm_page_prot = pgprot_writethru(vma->vm_page_prot);
if (remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff,
vma->vm_end - vma->vm_start,