htcleo: enable shadow writes for kgsl and writecombine

Credits to darkstone
This commit is contained in:
Markinus 2010-10-14 19:46:12 +02:00
parent 50760ca384
commit a13e68883f
2 changed files with 3 additions and 2 deletions

View File

@ -17,6 +17,7 @@
*/
#include <linux/miscdevice.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/fb.h>
#include <linux/file.h>
#include <linux/fs.h>
@ -713,7 +714,7 @@ static int kgsl_ioctl_sharedmem_from_vmalloc(struct kgsl_file_private *private,
* overwrite this memory */
dmac_flush_range(vmalloc_area, vmalloc_area + len);
KGSL_MEM_INFO("Caching for memory allocation turned off\n");
vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
} else {
KGSL_MEM_INFO("Caching for memory allocation turned on\n");
}

View File

@ -28,7 +28,7 @@
#include "kgsl_pm4types.h"
#include "kgsl_cmdstream.h"
#define DISABLE_SHADOW_WRITES
//#define DISABLE_SHADOW_WRITES
/*
*
* Memory Map for Register, Constant & Instruction Shadow, and Command Buffers