From 0dc69307704140bf6f3633d7cfa9fb5d501674e7 Mon Sep 17 00:00:00 2001 From: Matt Sealey Date: Tue, 12 Jul 2011 11:29:11 -0500 Subject: [PATCH] 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 --- drivers/mxc/ipu3/ipu_device.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/mxc/ipu3/ipu_device.c b/drivers/mxc/ipu3/ipu_device.c index 564213c8d32..7f8f37edd8a 100644 --- a/drivers/mxc/ipu3/ipu_device.c +++ b/drivers/mxc/ipu3/ipu_device.c @@ -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,