Age | Commit message (Collapse) | Author |
|
kstrtobool was added in Linux commit a21d167dc "lib: move strtobool()
to kstrtobool()".
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This adds the crypto skcipher interface which was added in Linux commit
7a7ffe65c8c5f "crypto: skcipher - Add top-level skcipher interface" to
backports.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
memzero_explicit() was added in Linux commit d4c5efdb9 "random: add and
use memzero_explicit() for clearing data" and is used by skcipher.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
The media backports are not used by so many users in my opinion and to
reduce the efforts needed to make the new changes to media introduced
by new kernel versions work on older kernel versions just make it
depend on kernel 3.8 and do not support all the older kernel versions
for media any more. This makes it possible to remove some patches and
other changes.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Cordic was added in commit 10f8113ecb "lib: cordic: add library module
providing cordic angle calculation" in kernel 3.1, we do not need the
backport for more recent kernel versions.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This option should only be activated when HAVE_GENERIC_DMA_COHERENT is
not set on kernel < 3.8. Kernel 3.9 includes this function
unconditionally when HSA_DMA is set, on older kernel versions this
depends on HAVE_GENERIC_DMA_COHERENT
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This adds the devm_kasprintf() function added in mainline Linux kernel
commit 75f2a4ead "devres: Add devm_kasprintf and devm_kvasprintf API"
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This function was added to the mainline Linux kernel in commit
2220943a2 "phy: Centralise print about attached phy".
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This function was added to the mainline kernel in commit eb18cba7
"math64: New separate div64_u64_rem helper" and is now used the virtual
video test driver.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This was added to the mainline kernel in commit 3bc8f29b14 "new helper:
memdup_user_nul()" and is now used by multiple drivers.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
no_seek_end_llseek() was added with kernel 4.5 in commit fb1d259e4 "new
helpers: no_seek_end_llseek{,_size}()". This is used by wlcore.
generic_file_llseek_size() is only available in kernel >= 3.2.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This was added to skbuff.c in 3.19. Backport it for older
kernels.
iwlwifi will need this soon.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
[move skb_ensure_writable out of CONFIG_DEBUG_FS, use EXPORT_SYMBOL_GPL(), include linux/skbuff.h]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Note that TSO core helpers have been implemented in 3.19,
but support for IPv6 was added in 4.4 only.
iwlwifi will soon need this.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
[use skb_frag_page(frag), move the includes to the top and add missing ones.]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This method is declared in the header sine a long time, but the
function is not exported since 3.17. Add it to backports, but rename it
so it will not collide with the original version if it gets exported.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
commit 2e98a32a274274fca0e6e ("backport: add
of_property_read_u64_array()") added a call
to of_find_property_value_of_size(), which is a
static function, causing compilation error.
Implement it locally as well.
Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
[remove of_find_property_value_of_size() from backport-3.10.c]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This function was added in commit b31384fa5 "Driver core: Unified
device properties interface for platform firmware".
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
The prototype for this function is changing upstream, so backport
a copy of the new one that has a bool * argument instead of u32 *.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
[debugfs_{read,write}_file_bool() is in kernel 4.3, do not add it there]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
My patches to remove the out-of-line EWMA implemenation (under
Kconfig symbol AVERAGE) went into net-next, so now we only need
to backport DECLARE_EWMA as the only necessary macro.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
seq_hex_dump() is needed by the wil6210 driver and was added in this
commit:
commit 96e6df4cfc6ecf91097eb8eec55983a5f102a477
Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: Fri Jul 24 09:11:53 2015 +1000
seq_file: provide an analogue of print_hex_dump()
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
In the kernel hex_dump_to_buffer() got an int return value, returning
the amount of bytes written into the buffer. This new return value is
needed by seq_hex_dump() which we also backport.
This change was done in the following commit in mainline Linux kernel:
commit 114fc1afb2de7dec40da137dc2a55cd38fc220f2
Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: Thu Feb 12 15:02:29 2015 -0800
hexdump: make it return number of bytes placed in buffer
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
The media framework now uses the frame vector code which is only
available from kernel 4.2 onwards. This backports the code.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
The get_user_pages_locked() function is needed by the frame vector code
which will be added in the next patch. While adding that, this patch
also replaces the get_user_pages_unlocked() function with the original
version from the next kernel.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
tty_set_termios() was not exported any more in kernel 4.0-rc1 (commit
632f32e21) and exported again in kernel 4.1-rc2 (commit b00f5c2dc).
This patch adds the backport for kernel 4.0.X, we can not detect kernel
4.1-rc1, which would also need this fix, so bluetooth will have a
compile error on kernel 4.1-rc1, kernel 4.1-rc2 and more recent
versions will work.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Before we only copied the hdmi.h header file and not the driver. Now
some other drivers need the hdmi driver code, also copy it now too.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
mac80211 makes use of the new AEAD crypto api since commit 957e0fe629.
This patch provides a backport layer which converts the new API to the
old one used in older kernel versions. This backport is based on this
mainline commit: 996d98d85.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Cc: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
|
|
This feature was backported to kernel 3.18.12 and we should not
activate it on these kernel versions any more.
Reported-by: Jonas Gorski <jogo@openwrt.org>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
The genl changes were backported to RHEL 7.0
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This is required by igb and possibly other network drivers.
Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
[change to EXPORT_SYMBOL_GPL]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
As mac80211 now needs rhashtable, include it in backports.
For now, it actually depends on mac80211 and is selected
for kernels < 4.1 -- it existed in previous kernels but
with different API, so cannot be used from there easily.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Some bluetooth code makes use of wait_on_bit_timeout() now. This
function was introduced in commit 44fc0e5. It was only possible to
backport this to kernel >= 3.17. This function makes use of a new
member in struct wait_bit_key which was added with kernel 3.17.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This has been in the kernel for a long time, but wasn't
used by anyone. Now it's used by rhashtable, so add it.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Changed the version number in the file header comment.
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
hwmon group registration functions have been added in 3.13 kernel.
Latest ath10k patches make use of this mechanism, therefore the
need for the backport.
Signed-off-by: Mathieu Olivari <mathieu@qca.qualcomm.com>
[do not dereference hwdev before giving to dev_set_drvdata]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
When coredump was included in the kernel backports is build against
then it could be that the prototype are used, which caused a undefined
references linking problem. This patch fixes the problem by only using
this when the driver is actually compiled in.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This is needed by igb driver.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This new functions is used by ath9k.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
netdev_rss_key_fill() uses net_get_random_once() and since
this depends on static keys and we've decided to only backport
that only down to 3.5 as that is when static key stuff settled we
only backport netdev_rss_key_fill() down to 3.5 as well. For details
on the net_get_random_once() / static key stuff refer to backports
commit 8cb8816d.
Backporting netdev_rss_key_fill requires us to throw in the
netdev_rss_key within our own backports module. We don't backport
the ability to query this *yet though*, but if we really wanted to
we can provide an interface for that:
For *packaging* [0] we have no other option but to currently provide
our own querying interface, that's silly though, in the future
if we extend sysctl interfaces to allow dynamic extensions we
could just peg what we need also within the backports module to
allow seemless integration. With shiny new *kernel integration*
support [1] though we can enable cherry picking the sysctl components,
and apply it to the older kernel -- however this would pose a change
in compartamentalized backporting strategy as currently used. It would
seem a allowing dynamic extensions to an existing sysctl interface
would be more efficient and would allow packaging to also take
advantage of this effort.
[0] https://backports.wiki.kernel.org/index.php/Documentation/packaging
[1] https://backports.wiki.kernel.org/index.php/Documentation/integration
commit 960fb622f85180f36d3aff82af53e2be3db2f888
Author: Eric Dumazet <edumazet@google.com>
Date: Sun Nov 16 06:23:05 2014 -0800
net: provide a per host RSS key generic infrastructure
RSS (Receive Side Scaling) typically uses Toeplitz hash and a 40 or 52 bytes
RSS key.
Some drivers use a constant (and well known key), some drivers use a random
key per port, making bonding setups hard to tune. Well known keys increase
attack surface, considering that number of queues is usually a power of two.
This patch provides infrastructure to help drivers doing the right thing.
netdev_rss_key_fill() should be used by drivers to initialize their RSS key,
even if they provide ethtool -X support to let user redefine the key later.
A new /proc/sys/net/core/netdev_rss_key file can be used to get the host
RSS key even for drivers not providing ethtool -x support, in case some
applications want to precisely setup flows to match some RX queues.
Tested:
myhost:~# cat /proc/sys/net/core/netdev_rss_key
11:63:99:bb:79:fb:a5:a7:07:45:b2:20:bf:02:42:2d:08:1a:dd:19:2b:6b:23:ac:56:28:9d:70:c3:ac:e8:16:4b:b7:c1:10:53:a4:78:41:36:40:74:b6:15:ca:27:44:aa:b3:4d:72
myhost:~# ethtool -x eth0
RX flow hash indirection table for eth0 with 8 RX ring(s):
0: 0 1 2 3 4 5 6 7
RSS hash key:
11:63:99:bb:79:fb:a5:a7:07:45:b2:20:bf:02:42:2d:08:1a:dd:19:2b:6b:23:ac:56:28:9d:70:c3:ac:e8:16:4b:b7:c1:10:53:a4:78:41
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
mcgrof@drvbp1 ~/backports (git::master)$ time ./gentree.py \
/home/mcgrof/linux-next /home/mcgrof/build/backports-20141117
Copy original source files ...
Applying patches from patches to /home/mcgrof/build/backports-20141117
...
Modify Kconfig tree ...
Rewrite Makefiles and Kconfig files ...
Done!
real 1m28.499s
user 13m25.112s
sys 0m47.804s
mcgrof@drvbp1 ~/build/backports-20141117 $ time \
/home/mcgrof/backports/devel/ckmake --allyesconfig
1 3.0.101 [ OK ]
2 3.1.10 [ OK ]
3 3.2.62 [ OK ]
4 3.3.8 [ OK ]
5 3.4.104 [ OK ]
6 3.5.7 [ OK ]
7 3.6.11 [ OK ]
8 3.7.10 [ OK ]
9 3.8.13 [ OK ]
10 3.9.11 [ OK ]
11 3.10.58 [ OK ]
12 3.11.10 [ OK ]
13 3.12.31 [ OK ]
14 3.13.11 [ OK ]
15 3.14.22 [ OK ]
16 3.15.10 [ OK ]
17 3.16.6 [ OK ]
18 3.17.1 [ OK ]
19 3.18-rc1 [ OK ]
real 42m18.874s
user 1179m40.500s
sys 138m54.452s
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
|
|
This is needed by mac80211_hwsim.
The code was copied from kernel 3.4.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This is needed by bluetooth.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This enables support for using the backports project
to integrate device drivers from a future version of Linux
into an older version of Linux. What you end up seeing is
a backports submenu when configuring your kernel and the
ability to select specific device drivers from subsystems
supported through the Linux backports project.
At this time enabling one device driver from a future version
of Linux will require using only the latest version of the
subsystem modules and other subsystem drivers. For example
enabling cfg80211 and mac80211 from a future version of Linux
will require you to only use future version of the respective
device drivers. In order to enable the backported version of
802.11 drivers for example, you will have to enable first:
Networking support -->
Wireless -->
But under that menu disable all options, then jump to the backports
submenu to now enable:
Backports -->
cfg80211
mac80211
Wireless LAN --->
etc
You build these device drivers modular or built-in to the kernel.
Integration support requires only slight modifications to the original
kernel sources, one to the top level Kconfig to add our entry, and also
the top level Makefile to enable backports code to be part of the
built-in vmlinux.
Support for integration takes advantage over the existing infrastructure
added by Johannes to keep track of each indvidual change done by the
backports infrastructure if --gitdebug is used.
mcgrof@drvbp1 ~/backports (git::master)$ time ./gentree.py --clean \
/home/mcgrof/linux-next /home/mcgrof/build/backports-20141023
Copy original source files ...
Applying patches from patches to /home/mcgrof/build/backports-20141023
...
Modify Kconfig tree ...
Rewrite Makefiles and Kconfig files ...
Done!
real 1m27.942s
user 13m23.752s
sys 0m47.608s
1 3.0.101 [ OK ]
2 3.1.10 [ OK ]
3 3.2.62 [ OK ]
4 3.3.8 [ OK ]
5 3.4.104 [ OK ]
6 3.5.7 [ OK ]
7 3.6.11 [ OK ]
8 3.7.10 [ OK ]
9 3.8.13 [ OK ]
10 3.9.11 [ OK ]
11 3.10.58 [ OK ]
12 3.11.10 [ OK ]
13 3.12.31 [ OK ]
14 3.13.11 [ OK ]
15 3.14.22 [ OK ]
16 3.15.10 [ OK ]
17 3.16.6 [ OK ]
18 3.17.1 [ OK ]
19 3.18-rc1 [ OK ]
real 42m44.838s
user 1190m5.092s
sys 140m37.208s
Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
|
|
The CPTCFG_ prefix already implies backport, when integration
is used we'd end up with a double BACKPORT_ prefix, so just
remove the existing one as its not needed.
Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
|
|
Things we backport are now prefixed with BACKPORT_, when we copy
over libraries with the c-files / h-files trick on the compat/Kconfig
trick we prefix these with BACKPORT_ already so in order to help
distinguish them use BACKPORT_BPAUTO_ for them and prevent a double
BACKPORT_ prefix.
Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
|
|
In order to help unify the naming scheme for shared
backports versioning information rely on the CPTCFG_
prefix, when integration support gets added that will
translate to the respective CONFIG_BACKPORT_ prefix.
Kconfig opt env entries don't get propagated out, so
we need to define these ourselves. This leaves all
other names in place for packaging and just focuses
on sharing on the C / header code.
Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
|
|
As drivers will start requiring the new framework and it has
been merged to linux/master during the 3.18 merge window, we
can include it into backports to compile if needed.
On kernels that do already have it but didn't want it built
honor that, but if building otherwise don't. This may need
to be revisited in the future.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
skb_clone_sk() is now used by mac80211 and this change also needs some
changes to skb_complete_wifi_ack(), so I replaced it with our own
version.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Instead of using the code from a recent kernel, I used the old code
from the igb driver to calculate the header length. The new code in the
kernel makes use of some __skb_flow_dissect() functions and headers not
available in 3.0.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|