Commit graph

171 commits

Author SHA1 Message Date
Felix Fietkau
14a163ca58 kernel: remove the obsolete vm_exports patch
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43565
2014-12-08 12:04:34 +00:00
Jo-Philipp Wich
0cf7cba67b netfilter: consider reply direction on selective flushing
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 42095
2014-08-10 10:15:22 +00:00
Jo-Philipp Wich
56be9f4a9a netfilter: support /proc conntrack flushing of specific ip addresses
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 42092
2014-08-09 14:36:10 +00:00
Jo-Philipp Wich
baa7c211f5 netfilter: introduce xt_id match
This commit implements a new netfilter match "xt_id" which can be used to
attach unsigned 32bit IDs to iptables rules.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 41945
2014-08-01 22:49:47 +00:00
Hauke Mehrtens
2b32939040 kernel: refresh patches
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41909
2014-07-31 21:33:58 +00:00
Hauke Mehrtens
b1df24f00e kernel: update bcma to version master-2014-07-29-1
This is a backport of bcma from wireless-tesing/master tag master-2014-07-29-1.

For kernel < 3.10 this only adds the header changes needed by more
recent b43 versions.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41899
2014-07-30 18:54:10 +00:00
Felix Fietkau
1d232f354a kernel: mtd: allow partial block erase
This fixes error erasing partial mtd partition which does not start on
eraseblock boundary and allows using fconfig to configure redboot on
devices such as the Gateworks Cambria.

Signed-off-by: Maciej Skrzypek <maciej.skrzypek@flytronic.pl>

SVN-Revision: 41733
2014-07-18 14:36:38 +00:00
Felix Fietkau
841b730f98 kernel: fix pkt_type filter mask for packet sockets
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41178
2014-06-13 09:34:03 +00:00
Felix Fietkau
32d1e0ed2c kernel: add a ssb backport required for a new mac80211 update
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40833
2014-05-23 18:48:31 +00:00
Hauke Mehrtens
e2cd04bfb3 kernel: fix compile error with gcc-4.8 and kernel 3.3
With gcc-4.8 I get a compile error with kernel 3.3.
This patch fixes this problem by backporting a patch from a more recent kernel version.

  CC      arch/mips/mm/page.o
arch/mips/mm/page.c:89:6: error: 'clear_page' alias in between function and variable is not supported
 void clear_page(void *page) __attribute__((alias("clear_page_array")));
      ^
arch/mips/mm/page.c:84:12: error: 'clear_page_array' aliased declaration [-Werror]
 static u32 clear_page_array[0x120 / 4];
            ^
arch/mips/mm/page.c:108:6: error: 'copy_page' alias in between function and variable is not supported
 void copy_page(void *to, void *from) __attribute__((alias("copy_page_array")));
      ^
arch/mips/mm/page.c:102:12: error: 'copy_page_array' aliased declaration [-Werror]
 static u32 copy_page_array[0x540 / 4];
            ^
arch/mips/mm/page.c:108:6: error: 'copy_page' alias in between function and variable is not supported
 void copy_page(void *to, void *from) __attribute__((alias("copy_page_array")));
      ^
arch/mips/mm/page.c:102:12: error: 'copy_page_array' aliased declaration [-Werror]
 static u32 copy_page_array[0x540 / 4];
            ^
arch/mips/mm/page.c:89:6: error: 'clear_page' alias in between function and variable is not supported
 void clear_page(void *page) __attribute__((alias("clear_page_array")));
      ^
arch/mips/mm/page.c:84:12: error: 'clear_page_array' aliased declaration [-Werror]
 static u32 clear_page_array[0x120 / 4];
            ^
cc1: all warnings being treated as errors
make[7]: *** [arch/mips/mm/page.o] Error 1

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 40619
2014-05-01 13:07:44 +00:00
Florian Fainelli
f664976483 kernel: backport ARM memset fixes for GCC 4.7/4.8
Now that GCC 4.8 is the default, make sure that we have the relevant
memset fixes to avoid nasty kernel crashes.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 39902
2014-03-12 22:08:59 +00:00
Gabor Juhos
c05dc6f745 kernel/3.3: remove yaffs support
It is not used by any platform.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39081
2013-12-16 07:42:41 +00:00
Hauke Mehrtens
101034fa23 kernel: refresh patches
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 38291
2013-10-02 22:26:43 +00:00
Hauke Mehrtens
fa839274b0 kernel: bcma: update to wireless-testing master-2013-10-01
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 38290
2013-10-02 22:26:15 +00:00
Hauke Mehrtens
614e8f44bd kernel: update bcma and ssb to wireless-testing master-2013-09-09
SVN-Revision: 37957
2013-09-12 22:03:45 +00:00
Felix Fietkau
8eb57d0cd7 kernel: align the skb padding to power of two
The skb is usually started by a padding which allows the protocols in the
network stack to add their headers in front of the payload. The skb can be
reallocated in case the preallocated padding is not large enough. This can for
example happen in the function __skb_cow which will check the requested extra
headroom and allocate more buffer when the requested headroom is bigger than
the available one. The extra buffer is aligned again to the multiple of the
NET_SKB_PAD of the target architecture.

The macro used to create the multiple of the NET_SKB_PAD is written in a way
which allows only values power two as alignment parameter. The currently used
value of 48 bytes can not be written as n ** 2 but as 2 ** 4 + 2 ** 5. The
extra buffer is therefore not always the multiple of 48 but can be 16, 64, 80,
128, 144 and so on. The generated values are also not monotonic (48 requested
bytes are mapped to 80 allocated bytes and 49 requested bytes are mapped to 64
allocated bytes).

These unexpected small values result in more reallocations of the buffer. This
was noticed prominently during tests between two QCA9558 720 MHz devices which
were connected via ethernet to PCs and had a HT40 802.11n 3x3 link between each
other. The throughput PC-to-PC during iperf TCP runs increased reliable from
186 Mibit/s to 214 Mibit/s in one direction and from 195 Mibit/s to 220 Mibit/s
in the other direction. This is a performance increase of ~14% just by reducing
the amount of reallocations.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 37948
2013-09-11 14:30:15 +00:00
Luka Perkov
7d73153e86 kernel: allow hwmon GSC driver for all targets
- enable using hwmon GSC driver on all targets
- add a kmod package for it

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 37933
2013-09-10 22:26:30 +00:00
Felix Fietkau
11926c2fd8 kernel: fix arch-dependent bug in hso module
Currently, the module causes an oops at least on rt5350. These patches
have been accepted upstream at:
git://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git

Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>

SVN-Revision: 37931
2013-09-10 13:47:44 +00:00
Gabor Juhos
a4c2853261 kernel: don't hide the 'Warning: unable to open an initial console' message
The 'Warning: unable to open an initial console' message
indicates an error in the rootfs. Remove the patch which
hides the warning.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37848
2013-08-27 12:03:01 +00:00
Gabor Juhos
012f214e6f kernel: ensure that /dev/console exists in initramfs
Linux expects that the /dev/console node is present
in the rootfs image. Create the node in initramfs,
in order to make std{in,out,err} usable even in early
init process.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37846
2013-08-27 12:02:54 +00:00
Felix Fietkau
3848e6a246 kernel: crashlog: Avoid out-of-bounds write
vsnprintf returns the number of chars that would have been written, not
the actual number of chars written. This can lead to crashlog_buf->len
being too big which in turn can lead to get_maxlen() returning negative
numbers. The length argument of kmsg_dump_get_buffer will be casted to
a size_t which makes a negative input a big positive number allowing
kmsg_dump_get_buffer to write out of bounds.

Fix this by using vscnprintf which returns the actually written number
of chars.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>

SVN-Revision: 37820
2013-08-21 20:59:25 +00:00
Luka Perkov
a2dccb958c kernel: drop dead glamo code
The code is not used since the s3c24xx target was removed.

Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 37809
2013-08-18 01:25:40 +00:00
Hauke Mehrtens
9d4145efe5 kernel: fix DMA error when BCM4331 is connected to BCM4706
The BCM4331 supports a PCIe max request size of 512 bytes and uses
that, but the PCIe controller in the BCM4706 just supports 128 Bytes
and that causes a DMA error for packages bigger than 126 bytes. This
fixes the problem by setting the BCM4331 also to 128 Bytes.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 37709
2013-08-05 16:17:05 +00:00
Felix Fietkau
73c4d73d6d build: unify target independent optimization options
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 37600
2013-07-29 09:38:29 +00:00
Felix Fietkau
cc26f768e4 kernel: stop patching -funit-at-a-time into CFLAGS, it has no effect on recent compilers
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 37598
2013-07-29 09:38:21 +00:00
John Crispin
4176b6fdd3 strict_strtoul is obsolete, use kstrtoul instead
based on http://patchwork.openwrt.org/patch/3827/

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37562
2013-07-27 09:23:18 +00:00
Lars-Peter Clausen
8fc44d1f5f kernel: Remove gpio-pwm patches
There is no platform using the gpio-pwm driver, yet these patches break the
generic PWM framework that is in upstream. So just remove them.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>

SVN-Revision: 37490
2013-07-21 11:43:16 +00:00
Hauke Mehrtens
c7f8cb3f4f kernel: update bcma and ssb to version from wireless-testing/master tag master-2013-07-18
This should fix some build problems in b43 with kernel 3.3.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 37432
2013-07-19 12:02:34 +00:00
Jonas Gorski
bbd02c6fb7 kernel: fix CVE-2013-1763 in older kernels
Newer kernels were already fixed by upstream.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 36607
2013-05-12 10:55:12 +00:00
Jonas Gorski
0b03ff2028 kernel: make zlib and lzo modules selectable
Fixes building kmod-lib-zlib and kmod-lib-lzo if nothing depends on them.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 36592
2013-05-09 20:50:07 +00:00
Jonas Gorski
a33dd13c98 kernel: add missing bcma defines and header file for bcrmfmac
Fixes build failure when having kmod-mmc and brcmfmac selected.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 36468
2013-04-28 11:10:42 +00:00
Felix Fietkau
a8a01b42ae kernel: allow __netdev_alloc_skb_ip_align to be called with dev = NULL
SVN-Revision: 36378
2013-04-22 15:01:36 +00:00
Felix Fietkau
f58dcb59c6 kernel: backport SSB/BCMA changes in preparation for a compat-wireless update
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 36367
2013-04-19 12:39:40 +00:00
Florian Fainelli
518d6a9273 kernel: backport switch user API changes after r36283
3.3 and 3.6 kernels do not make use of the UAPI headers, still they need
to provide an up-to-date switch.h copy for swconfig to build.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 36295
2013-04-09 15:47:01 +00:00
Hauke Mehrtens
4995f23669 kernel: REGMAP_SPI should only be selectable when SPI_MASTER is selected
This was turned from a silent confg option without a text to a normal
config option which could be selected without any other option
depending on this. This could cause the situation where REGMAP_SPI was
selected without SPI_MASTER being selected.

SVN-Revision: 36101
2013-03-21 14:50:59 +00:00
Florian Fainelli
b1cc7a90a4 kernel: make SND_COMPRESS_OFFLOAD symbol visible for selection (#13193)
Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 36091
2013-03-19 14:13:39 +00:00
Florian Fainelli
6a7100c760 kernel: set regmap-core module license
Fixes the following issues:
[    7.660000] regmap_core: module license 'unspecified' taints kernel
[    7.690000] Disabling lock debugging due to kernel
[    7.700000] regmap_core: Unknown symbol lzo1x_decompress_safe (err 0
[    7.710000] regmap_core: Unknown symbol lzo1x_1_compress (err 0
[    7.720000] regmap_core: Unknown symbol devres_add (err 0
[    7.730000] regmap_core: Unknown symbol debugfs_create_bool (err 0
[    7.750000] regmap_core: Unknown symbol devres_alloc (err 0
[    7.760000] regmap_core: Unknown symbol debugfs_remove_recursive (err 0
[    7.770000] regmap_core: Unknown symbol debugfs_create_file (err 0
[    7.780000] regmap_core: Unknown symbol devres_free (err 0
[    7.800000] regmap_core: Unknown symbol devres_find (err 0
[    7.810000] regmap_core: Unknown symbol debugfs_create_dir (err 0)

Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 36070
2013-03-17 19:45:48 +00:00
Gabor Juhos
fe61fc2d7d generic: add detach callback to struct phy_driver
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35510
2013-02-07 15:18:24 +00:00
Gabor Juhos
d158dfc607 linux/3.3: disable crashlog on PPC
It causes NULL pointer dereference:

[    0.638235] __ioremap(): phys addr 0x7f00000 is RAM lr c025d61c
[    0.644090] Unable to handle kernel paging request for data at address 0x00000000
[    0.651533] Faulting instruction address: 0xc025d620
[    0.656483] Oops: Kernel access of bad area, sig: 11 [#1]
[    0.661856] P1010 RDB
[    0.664113] Modules linked in:
[    0.667152] NIP: c025d620 LR: c025d61c CTR: c000dc38
[    0.672101] REGS: c7831ef0 TRAP: 0300   Not tainted  (3.3.8)
[    0.677740] MSR: 00029000 <CE,EE,ME>  CR: 42022082  XER: 20000000
[    0.683817] DEAR: 00000000, ESR: 00000000
[    0.687811] TASK = c782c000[1] 'swapper' THREAD: c7830000
[    0.693017] GPR00: a1ee0000 c7831fa0 c782c000 00000000 0000214c ffffffff c7831ea6 0001ffff
[    0.701350] GPR08: c03697cc c035fba0 c03697cc c0360000 42022022 00000000 00000000 00000000
[    0.709682] GPR16: c0000a00 00000014 3fffffff 00ffa000 00000015 07fc42bc c0360000 00000000
[    0.718015] GPR24: 00000000 00000000 00001680 c0360000 00000000 c025d5e8 c0390000 c038b824
[    0.726535] NIP [c025d620] crashlog_init_fs+0x38/0xd8
[    0.731560] LR [c025d61c] crashlog_init_fs+0x34/0xd8
[    0.736503] Call Trace:
[    0.738939] [c7831fa0] [c025d61c] crashlog_init_fs+0x34/0xd8 (unreliable)
[    0.745712] [c7831fb0] [c0001e98] do_one_initcall+0xd4/0x198
[    0.751357] [c7831fe0] [c02537f4] kernel_init+0x9c/0x120
[    0.756647] [c7831ff0] [c000c2dc] kernel_thread+0x4c/0x68
[    0.762022] Instruction dump:
[    0.764975] 3860fff4 bfc10008 3fc0c039 90010014 3bfeb824 801f0004 2f800000 41be00a0
[    0.772699] 7c030378 38804000 4bdb38cd 3c00a1ee <81630000> 6000dead 7c691b78 907eb824

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35435
2013-02-01 17:28:44 +00:00
Gabor Juhos
e252a1492c generic: fix build failure in MIPS kexec code if SMP is enabled
Fix it for older kernels as well.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35366
2013-01-29 09:44:58 +00:00
Felix Fietkau
8193bbe59a netfilter: add support for flushing conntrack via /proc
SVN-Revision: 35330
2013-01-27 19:02:38 +00:00
Gabor Juhos
57f7408b8a generic: add EHCI|OHCI platform driver fix to 3.[36]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35194
2013-01-17 13:54:14 +00:00
Hauke Mehrtens
885eea1842 kernel: update bcma and ssb to master-2013-01-09 from wireless-testing
SVN-Revision: 35080
2013-01-10 14:05:18 +00:00
John Crispin
d5d2e8b4db missing underscore in 3.3 regmap patch
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 35018
2013-01-06 10:01:53 +00:00
Felix Fietkau
2e8409cce3 kernel: port the regmap fix to 3.6 (#12749), refresh patches for other versions
SVN-Revision: 35016
2013-01-05 13:33:44 +00:00
John Crispin
e6aac19237 fix regmap debloat patch
SVN-Revision: 35015
2013-01-05 00:20:05 +00:00
Felix Fietkau
96f3911981 kernel: move regmap bloat out of the kernel image if it is only being used in modules
SVN-Revision: 34999
2013-01-03 18:39:50 +00:00
Gabor Juhos
373b0b9ad1 generic: fix UBIFS build error if XZ compression is disabled
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34959
2013-01-02 08:53:07 +00:00
Felix Fietkau
9bb8b9fadb kernel: remove the cisco SIP NAT patch, at least on 3.6 it crashes
SVN-Revision: 34901
2012-12-27 22:59:51 +00:00
Gabor Juhos
840d0d246c kernel: add solos-pci update for 3.3
Same patches that I just merged for 3.6 and 3.7, except with one
additional fix that went into v3.4 that needed to be included.

Submitted more for the benefit of the AA branch than for trunk.

[juhosg: refresh the patch with quilt]

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34813
2012-12-21 10:38:33 +00:00