diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-05-02 00:28:30 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-05-02 00:28:30 +0000 |
commit | af53fa1d91e84f4d7cca1b125bf37b1de798449d (patch) | |
tree | 5ecced1e6ef55a3f8991dc7b647f7e18887f53b4 /target/linux | |
parent | 3dbb8c508869d29076284ae01dbbaa9450dcf6d6 (diff) | |
download | mtk-20170518-af53fa1d91e84f4d7cca1b125bf37b1de798449d.zip mtk-20170518-af53fa1d91e84f4d7cca1b125bf37b1de798449d.tar.gz mtk-20170518-af53fa1d91e84f4d7cca1b125bf37b1de798449d.tar.bz2 |
cns3xxx: remove one of the dma cache patches, it causes a regression in the ethernet driver
SVN-Revision: 26802
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/cns3xxx/patches-2.6.31/301-dma_cache_ownership_maint.patch | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/target/linux/cns3xxx/patches-2.6.31/301-dma_cache_ownership_maint.patch b/target/linux/cns3xxx/patches-2.6.31/301-dma_cache_ownership_maint.patch deleted file mode 100644 index a52ae24..0000000 --- a/target/linux/cns3xxx/patches-2.6.31/301-dma_cache_ownership_maint.patch +++ /dev/null @@ -1,67 +0,0 @@ ---- a/arch/arm/mm/cache-v6.S -+++ b/arch/arm/mm/cache-v6.S -@@ -179,6 +179,10 @@ ENTRY(v6_flush_kern_dcache_page) - * - end - virtual end address of region - */ - ENTRY(v6_dma_inv_range) -+#ifdef CONFIG_SMP -+ ldrb r2, [r0] -+ strb r2, [r0] -+#endif - tst r0, #D_CACHE_LINE_SIZE - 1 - bic r0, r0, #D_CACHE_LINE_SIZE - 1 - #ifdef HARVARD_CACHE -@@ -187,6 +191,10 @@ ENTRY(v6_dma_inv_range) - mcrne p15, 0, r0, c7, c11, 1 @ clean unified line - #endif - tst r1, #D_CACHE_LINE_SIZE - 1 -+#ifdef CONFIG_SMP -+ ldrneb r2, [r1, #-1] -+ strneb r2, [r1, #-1] -+#endif - bic r1, r1, #D_CACHE_LINE_SIZE - 1 - #ifdef HARVARD_CACHE - mcrne p15, 0, r1, c7, c14, 1 @ clean & invalidate D line -@@ -201,6 +209,10 @@ ENTRY(v6_dma_inv_range) - #endif - add r0, r0, #D_CACHE_LINE_SIZE - cmp r0, r1 -+#ifdef CONFIG_SMP -+ ldrlo r2, [r0] -+ strlo r2, [r0] -+#endif - blo 1b - mov r0, #0 - mcr p15, 0, r0, c7, c10, 4 @ drain write buffer -@@ -214,6 +226,9 @@ ENTRY(v6_dma_inv_range) - ENTRY(v6_dma_clean_range) - bic r0, r0, #D_CACHE_LINE_SIZE - 1 - 1: -+#ifdef CONFIG_SMP -+ ldr r2, [r0] -+#endif - #ifdef HARVARD_CACHE - mcr p15, 0, r0, c7, c10, 1 @ clean D line - #else -@@ -232,6 +247,10 @@ ENTRY(v6_dma_clean_range) - * - end - virtual end address of region - */ - ENTRY(v6_dma_flush_range) -+#ifdef CONFIG_SMP -+ ldrb r2, [r0] -+ strb r2, [r0] -+#endif - bic r0, r0, #D_CACHE_LINE_SIZE - 1 - 1: - #ifdef HARVARD_CACHE -@@ -241,6 +260,10 @@ ENTRY(v6_dma_flush_range) - #endif - add r0, r0, #D_CACHE_LINE_SIZE - cmp r0, r1 -+#ifdef CONFIG_SMP -+ ldrlob r2, [r0] -+ strlob r2, [r0] -+#endif - blo 1b - mov r0, #0 - mcr p15, 0, r0, c7, c10, 4 @ drain write buffer |