diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2014-01-11 16:06:37 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2014-01-11 16:06:37 +0000 |
commit | d3305e8570dba327c25bc62584e2874fbb3d2008 (patch) | |
tree | 6466a8c5f3d798497135e9e56cdc24fbd941602e /target/linux/generic | |
parent | 95b66c31118df52b4417fe2e070cbe75aa7d8ade (diff) | |
download | master-187ad058-d3305e8570dba327c25bc62584e2874fbb3d2008.tar.gz master-187ad058-d3305e8570dba327c25bc62584e2874fbb3d2008.tar.bz2 master-187ad058-d3305e8570dba327c25bc62584e2874fbb3d2008.zip |
kernel: update 3.10 to 3.10.26
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39220 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic')
3 files changed, 19 insertions, 33 deletions
diff --git a/target/linux/generic/patches-3.10/130-mips_remove_plat_dma_functions.patch b/target/linux/generic/patches-3.10/130-mips_remove_plat_dma_functions.patch index 1d53a8d672..b3b42d409d 100644 --- a/target/linux/generic/patches-3.10/130-mips_remove_plat_dma_functions.patch +++ b/target/linux/generic/patches-3.10/130-mips_remove_plat_dma_functions.patch @@ -157,7 +157,7 @@ Signed-off-by: Felix Fietkau <nbd@openwrt.org> return 0; --- a/arch/mips/mm/dma-default.c +++ b/arch/mips/mm/dma-default.c -@@ -289,7 +289,6 @@ static void mips_dma_sync_single_for_cpu +@@ -293,7 +293,6 @@ static void mips_dma_sync_single_for_cpu static void mips_dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle, size_t size, enum dma_data_direction direction) { @@ -165,7 +165,7 @@ Signed-off-by: Felix Fietkau <nbd@openwrt.org> if (!plat_device_is_coherent(dev)) __dma_sync(dma_addr_to_page(dev, dma_handle), dma_handle & ~PAGE_MASK, size, direction); -@@ -323,7 +322,7 @@ static void mips_dma_sync_sg_for_device( +@@ -327,7 +326,7 @@ static void mips_dma_sync_sg_for_device( int mips_dma_mapping_error(struct device *dev, dma_addr_t dma_addr) { @@ -174,7 +174,7 @@ Signed-off-by: Felix Fietkau <nbd@openwrt.org> } int mips_dma_supported(struct device *dev, u64 mask) -@@ -336,7 +335,6 @@ void dma_cache_sync(struct device *dev, +@@ -340,7 +339,6 @@ void dma_cache_sync(struct device *dev, { BUG_ON(direction == DMA_NONE); diff --git a/target/linux/generic/patches-3.10/132-mips_inline_dma_ops.patch b/target/linux/generic/patches-3.10/132-mips_inline_dma_ops.patch index bc907982e3..e31fc1901f 100644 --- a/target/linux/generic/patches-3.10/132-mips_inline_dma_ops.patch +++ b/target/linux/generic/patches-3.10/132-mips_inline_dma_ops.patch @@ -459,7 +459,7 @@ Signed-off-by: Felix Fietkau <nbd@openwrt.org> int hw_coherentio = 0; /* Actual hardware supported DMA coherency setting. */ static int __init setcoherentio(char *str) -@@ -44,26 +44,6 @@ static int __init setnocoherentio(char * +@@ -44,13 +44,6 @@ static int __init setnocoherentio(char * early_param("nocoherentio", setnocoherentio); #endif @@ -470,23 +470,10 @@ Signed-off-by: Felix Fietkau <nbd@openwrt.org> - plat_dma_addr_to_phys(dev, dma_addr) >> PAGE_SHIFT); -} - --/* -- * Warning on the terminology - Linux calls an uncached area coherent; -- * MIPS terminology calls memory areas with hardware maintained coherency -- * coherent. -- */ -- --static inline int cpu_is_noncoherent_r10000(struct device *dev) --{ -- return !plat_device_is_coherent(dev) && -- (current_cpu_type() == CPU_R10000 || -- current_cpu_type() == CPU_R12000); --} -- - static gfp_t massage_gfp_flags(const struct device *dev, gfp_t gfp) - { - gfp_t dma_flag; -@@ -119,8 +99,9 @@ void *dma_alloc_noncoherent(struct devic + /* + * The affected CPUs below in 'cpu_needs_post_dma_flush()' can + * speculatively fill random cachelines with stale data at any time, +@@ -123,8 +116,9 @@ void *dma_alloc_noncoherent(struct devic } EXPORT_SYMBOL(dma_alloc_noncoherent); @@ -498,7 +485,7 @@ Signed-off-by: Felix Fietkau <nbd@openwrt.org> { void *ret; -@@ -144,6 +125,7 @@ static void *mips_dma_alloc_coherent(str +@@ -148,6 +142,7 @@ static void *mips_dma_alloc_coherent(str return ret; } @@ -506,7 +493,7 @@ Signed-off-by: Felix Fietkau <nbd@openwrt.org> void dma_free_noncoherent(struct device *dev, size_t size, void *vaddr, -@@ -154,8 +136,8 @@ void dma_free_noncoherent(struct device +@@ -158,8 +153,8 @@ void dma_free_noncoherent(struct device } EXPORT_SYMBOL(dma_free_noncoherent); @@ -517,7 +504,7 @@ Signed-off-by: Felix Fietkau <nbd@openwrt.org> { unsigned long addr = (unsigned long) vaddr; int order = get_order(size); -@@ -170,6 +152,7 @@ static void mips_dma_free_coherent(struc +@@ -174,6 +169,7 @@ static void mips_dma_free_coherent(struc free_pages(addr, get_order(size)); } @@ -525,7 +512,7 @@ Signed-off-by: Felix Fietkau <nbd@openwrt.org> static inline void __dma_sync_virtual(void *addr, size_t size, enum dma_data_direction direction) -@@ -198,8 +181,8 @@ static inline void __dma_sync_virtual(vo +@@ -202,8 +198,8 @@ static inline void __dma_sync_virtual(vo * If highmem is not configured then the bulk of this loop gets * optimized out. */ @@ -536,15 +523,14 @@ Signed-off-by: Felix Fietkau <nbd@openwrt.org> { size_t left = size; -@@ -228,109 +211,7 @@ static inline void __dma_sync(struct pag - left -= len; +@@ -233,108 +229,7 @@ static inline void __dma_sync(struct pag } while (left); } -- + -static void mips_dma_unmap_page(struct device *dev, dma_addr_t dma_addr, - size_t size, enum dma_data_direction direction, struct dma_attrs *attrs) -{ -- if (cpu_is_noncoherent_r10000(dev)) +- if (cpu_needs_post_dma_flush(dev)) - __dma_sync(dma_addr_to_page(dev, dma_addr), - dma_addr & ~PAGE_MASK, size, direction); - @@ -595,7 +581,7 @@ Signed-off-by: Felix Fietkau <nbd@openwrt.org> -static void mips_dma_sync_single_for_cpu(struct device *dev, - dma_addr_t dma_handle, size_t size, enum dma_data_direction direction) -{ -- if (cpu_is_noncoherent_r10000(dev)) +- if (cpu_needs_post_dma_flush(dev)) - __dma_sync(dma_addr_to_page(dev, dma_handle), - dma_handle & ~PAGE_MASK, size, direction); -} @@ -615,7 +601,7 @@ Signed-off-by: Felix Fietkau <nbd@openwrt.org> - - /* Make sure that gcc doesn't leave the empty loop body. */ - for (i = 0; i < nelems; i++, sg++) { -- if (cpu_is_noncoherent_r10000(dev)) +- if (cpu_needs_post_dma_flush(dev)) - __dma_sync(sg_page(sg), sg->offset, sg->length, - direction); - } @@ -647,7 +633,7 @@ Signed-off-by: Felix Fietkau <nbd@openwrt.org> void dma_cache_sync(struct device *dev, void *vaddr, size_t size, enum dma_data_direction direction) -@@ -343,23 +224,10 @@ void dma_cache_sync(struct device *dev, +@@ -347,23 +242,10 @@ void dma_cache_sync(struct device *dev, EXPORT_SYMBOL(dma_cache_sync); diff --git a/target/linux/generic/patches-3.10/950-vm_exports.patch b/target/linux/generic/patches-3.10/950-vm_exports.patch index 0ec0623306..faf58660e6 100644 --- a/target/linux/generic/patches-3.10/950-vm_exports.patch +++ b/target/linux/generic/patches-3.10/950-vm_exports.patch @@ -52,7 +52,7 @@ * When we die, we re-parent all our children, and try to: --- a/kernel/sched/core.c +++ b/kernel/sched/core.c -@@ -3707,6 +3707,7 @@ int can_nice(const struct task_struct *p +@@ -3719,6 +3719,7 @@ int can_nice(const struct task_struct *p return (nice_rlim <= task_rlimit(p, RLIMIT_NICE) || capable(CAP_SYS_NICE)); } |