mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-09-24 15:44:22 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user