summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4d74845)
raw | patch | inline | side by side (parent: 4d74845)
author | Sandeep Nair <a0875039@ares-ubuntu> | |
Wed, 27 Jun 2012 11:33:53 +0000 (07:33 -0400) | ||
committer | Sandeep Nair <a0875039@ares-ubuntu> | |
Wed, 27 Jun 2012 11:33:53 +0000 (07:33 -0400) |
ti/runtime/netapi/tools/kernel_patches/README.txt | [new file with mode: 0644] | patch | blob |
ti/runtime/netapi/tools/kernel_patches/dma_patch_2.0.0.8.txt | [new file with mode: 0644] | patch | blob |
diff --git a/ti/runtime/netapi/tools/kernel_patches/README.txt b/ti/runtime/netapi/tools/kernel_patches/README.txt
--- /dev/null
@@ -0,0 +1,4 @@
+This directory contains patches to be applied to SC-MCSDK 2.0.0.8 Linux kernel distribution.
+
+dma_patch_2.0.0.8.txt: patch to enable allocation of cacheable physically contiguous memory from CMA.
+
diff --git a/ti/runtime/netapi/tools/kernel_patches/dma_patch_2.0.0.8.txt b/ti/runtime/netapi/tools/kernel_patches/dma_patch_2.0.0.8.txt
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git arch/arm/include/asm/pgtable.h arch/arm/include/asm/pgtable.h
+index f66626d..95bd431 100644
+--- arch/arm/include/asm/pgtable.h
++++ arch/arm/include/asm/pgtable.h
+@@ -105,7 +105,7 @@ extern pgprot_t pgprot_kernel;
+
+ #ifdef CONFIG_ARM_DMA_MEM_BUFFERABLE
+ #define pgprot_dmacoherent(prot) \
+- __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_BUFFERABLE | L_PTE_XN)
++ __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_WRITEBACK| L_PTE_XN)
+ #define __HAVE_PHYS_MEM_ACCESS_PROT
+ struct file;
+ extern pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn,