--- a/drivers/video/msm/gpu/kgsl/kgsl.c
+++ b/drivers/video/msm/gpu/kgsl/kgsl.c
@@ -748,7 +748,7 @@ static int kgsl_ioctl_sharedmem_from_vma
* 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");
}
--- a/drivers/video/msm/gpu/kgsl/kgsl_drawctxt.c
+++ b/drivers/video/msm/gpu/kgsl/kgsl_drawctxt.c
@@ -28,7 +28,6 @@
#include "kgsl_pm4types.h"
#include "kgsl_cmdstream.h"
-#define DISABLE_SHADOW_WRITES
/*
*
* Memory Map for Register, Constant & Instruction Shadow, and Command Buffers