This repository has been archived by the owner on May 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
27 changed files
with
686 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ Signed-off-by: Sven Eckelmann <[email protected]> | |
|
||
--- a/drivers/net/wireless/ath/ath10k/core.c | ||
+++ b/drivers/net/wireless/ath/ath10k/core.c | ||
@@ -3074,6 +3074,16 @@ int ath10k_core_register(struct ath10k * | ||
@@ -3071,6 +3071,16 @@ int ath10k_core_register(struct ath10k * | ||
|
||
queue_work(ar->workqueue, &ar->register_work); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
package/kernel/mac80211/patches/ath/982-ath10k-fix-latency-issue-for-QCA988x.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
From: Miaoqing Pan <[email protected]> | ||
Subject: [PATCH] ath10k: fix latency issue for QCA988x | ||
Date: Thu, 29 Aug 2019 10:45:12 +0800 | ||
|
||
Bad latency is found on QCA988x, the issue was introduced by | ||
commit 4504f0e5b571 ("ath10k: sdio: workaround firmware UART | ||
pin configuration bug"). If uart_pin_workaround is false, this | ||
change will set uart pin even if uart_print is false. | ||
|
||
Tested HW: QCA9880 | ||
Tested FW: 10.2.4-1.0-00037 | ||
|
||
Fixes: 4504f0e5b571 ("ath10k: sdio: workaround firmware UART pin configuration bug") | ||
Signed-off-by: Miaoqing Pan <[email protected]> | ||
--- | ||
drivers/net/wireless/ath/ath10k/core.c | 15 +++++++++------ | ||
1 file changed, 9 insertions(+), 6 deletions(-) | ||
|
||
--- a/drivers/net/wireless/ath/ath10k/core.c | ||
+++ b/drivers/net/wireless/ath/ath10k/core.c | ||
@@ -2124,12 +2124,15 @@ static int ath10k_init_uart(struct ath10 | ||
return ret; | ||
} | ||
|
||
- if (!uart_print && ar->hw_params.uart_pin_workaround) { | ||
- ret = ath10k_bmi_write32(ar, hi_dbg_uart_txpin, | ||
- ar->hw_params.uart_pin); | ||
- if (ret) { | ||
- ath10k_warn(ar, "failed to set UART TX pin: %d", ret); | ||
- return ret; | ||
+ if (!uart_print) { | ||
+ if (ar->hw_params.uart_pin_workaround) { | ||
+ ret = ath10k_bmi_write32(ar, hi_dbg_uart_txpin, | ||
+ ar->hw_params.uart_pin); | ||
+ if (ret) { | ||
+ ath10k_warn(ar, "failed to set UART TX pin: %d", | ||
+ ret); | ||
+ return ret; | ||
+ } | ||
} | ||
|
||
return 0; |
24 changes: 24 additions & 0 deletions
24
package/kernel/mac80211/patches/build/100-backports-pci-Include-linux-pci-aspm.h.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
From: Hauke Mehrtens <[email protected]> | ||
Date: Fri, 27 Sep 2019 23:12:08 +0200 | ||
Subject: [PATCH] backports: pci: Include linux/pci-aspm.h | ||
|
||
In upstream commit 7ce2e76a0420 linux/pci-aspm.h was removed and the | ||
content included into pci.h. Add an include to have the functions | ||
defined in linux/pci-aspm.h available when linux/pci.h is included. | ||
|
||
Signed-off-by: Hauke Mehrtens <[email protected]> | ||
--- | ||
|
||
--- a/backport-include/linux/pci.h | ||
+++ b/backport-include/linux/pci.h | ||
@@ -7,6 +7,10 @@ | ||
#include <linux/pci-aspm.h> | ||
#endif | ||
|
||
+#if LINUX_VERSION_IS_LESS(5,4,0) | ||
+#include <linux/pci-aspm.h> | ||
+#endif | ||
+ | ||
#ifndef module_pci_driver | ||
/** | ||
* module_pci_driver() - Helper macro for registering a PCI driver |
43 changes: 43 additions & 0 deletions
43
...nel/mac80211/patches/build/101-backport-add-pci_disable_link_state-wrapper-with-ret.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
From: Felix Fietkau <[email protected]> | ||
Date: Mon, 28 Oct 2019 15:20:40 +0100 | ||
Subject: [PATCH] backport: add pci_disable_link_state wrapper with return code | ||
|
||
The signature of pci_disable_link_state was changed to indicate if the state | ||
was successfully disabled. Since the old version did not have this, add a | ||
wrapper which checks the pcie register to determine the return code | ||
|
||
Signed-off-by: Felix Fietkau <[email protected]> | ||
--- | ||
|
||
--- a/backport-include/linux/pci.h | ||
+++ b/backport-include/linux/pci.h | ||
@@ -240,4 +240,29 @@ static inline struct pci_dev *pcie_find_ | ||
(PCI_IRQ_LEGACY | PCI_IRQ_MSI | PCI_IRQ_MSIX) | ||
#endif | ||
|
||
+#if defined(CONFIG_PCI) && LINUX_VERSION_IS_LESS(5,3,0) | ||
+ | ||
+static inline int | ||
+LINUX_BACKPORT(pci_disable_link_state)(struct pci_dev *pdev, int state) | ||
+{ | ||
+ u16 aspmc; | ||
+ | ||
+ pci_disable_link_state(pdev, state); | ||
+ | ||
+ pcie_capability_read_word(pdev, PCI_EXP_LNKCTL, &aspmc); | ||
+ if ((state & PCIE_LINK_STATE_L0S) && | ||
+ (aspmc & PCI_EXP_LNKCTL_ASPM_L0S)) | ||
+ return -EPERM; | ||
+ | ||
+ if ((state & PCIE_LINK_STATE_L1) && | ||
+ (aspmc & PCI_EXP_LNKCTL_ASPM_L1)) | ||
+ return -EPERM; | ||
+ | ||
+ return 0; | ||
+} | ||
+ | ||
+#define pci_disable_link_state LINUX_BACKPORT(pci_disable_link_state) | ||
+ | ||
+#endif | ||
+ | ||
#endif /* _BACKPORT_LINUX_PCI_H */ |
68 changes: 68 additions & 0 deletions
68
...ernel/mac80211/patches/build/102-backports-Adapt-to-changes-to-skb_get_hash_perturb.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
From e3c57dd949835419cee8d3b45db38de58bf6ebd5 Mon Sep 17 00:00:00 2001 | ||
From: Hauke Mehrtens <[email protected]> | ||
Date: Mon, 18 Nov 2019 01:13:37 +0100 | ||
Subject: [PATCH] backports: Adapt to changes to skb_get_hash_perturb() | ||
|
||
The skb_get_hash_perturb() function now takes a siphash_key_t instead of | ||
an u32. This was changed in commit 55667441c84f ("net/flow_dissector: | ||
switch to siphash"). Use the correct type in the fq header file | ||
depending on the kernel version. | ||
|
||
Signed-off-by: Hauke Mehrtens <[email protected]> | ||
--- | ||
include/net/fq.h | 8 ++++++++ | ||
include/net/fq_impl.h | 8 ++++++++ | ||
2 files changed, 16 insertions(+) | ||
|
||
--- a/include/net/fq.h | ||
+++ b/include/net/fq.h | ||
@@ -69,7 +69,15 @@ struct fq { | ||
struct list_head backlogs; | ||
spinlock_t lock; | ||
u32 flows_cnt; | ||
+#if LINUX_VERSION_IS_GEQ(5,3,10) || \ | ||
+ LINUX_VERSION_IN_RANGE(4,19,83, 4,20,0) || \ | ||
+ LINUX_VERSION_IN_RANGE(4,14,153, 4,15,0) || \ | ||
+ LINUX_VERSION_IN_RANGE(4,9,200, 4,10,0) || \ | ||
+ LINUX_VERSION_IN_RANGE(4,4,200, 4,5,0) | ||
+ siphash_key_t perturbation; | ||
+#else | ||
u32 perturbation; | ||
+#endif | ||
u32 limit; | ||
u32 memory_limit; | ||
u32 memory_usage; | ||
--- a/include/net/fq_impl.h | ||
+++ b/include/net/fq_impl.h | ||
@@ -108,7 +108,15 @@ begin: | ||
|
||
static u32 fq_flow_idx(struct fq *fq, struct sk_buff *skb) | ||
{ | ||
+#if LINUX_VERSION_IS_GEQ(5,3,10) || \ | ||
+ LINUX_VERSION_IN_RANGE(4,19,83, 4,20,0) || \ | ||
+ LINUX_VERSION_IN_RANGE(4,14,153, 4,15,0) || \ | ||
+ LINUX_VERSION_IN_RANGE(4,9,200, 4,10,0) || \ | ||
+ LINUX_VERSION_IN_RANGE(4,4,200, 4,5,0) | ||
+ u32 hash = skb_get_hash_perturb(skb, &fq->perturbation); | ||
+#else | ||
u32 hash = skb_get_hash_perturb(skb, fq->perturbation); | ||
+#endif | ||
|
||
return reciprocal_scale(hash, fq->flows_cnt); | ||
} | ||
@@ -308,7 +316,15 @@ static int fq_init(struct fq *fq, int fl | ||
INIT_LIST_HEAD(&fq->backlogs); | ||
spin_lock_init(&fq->lock); | ||
fq->flows_cnt = max_t(u32, flows_cnt, 1); | ||
+#if LINUX_VERSION_IS_GEQ(5,3,10) || \ | ||
+ LINUX_VERSION_IN_RANGE(4,19,83, 4,20,0) || \ | ||
+ LINUX_VERSION_IN_RANGE(4,14,153, 4,15,0) || \ | ||
+ LINUX_VERSION_IN_RANGE(4,9,200, 4,10,0) || \ | ||
+ LINUX_VERSION_IN_RANGE(4,4,200, 4,5,0) | ||
+ get_random_bytes(&fq->perturbation, sizeof(fq->perturbation)); | ||
+#else | ||
fq->perturbation = prandom_u32(); | ||
+#endif | ||
fq->quantum = 300; | ||
fq->limit = 8192; | ||
fq->memory_limit = 16 << 20; /* 16 MBytes */ |
35 changes: 35 additions & 0 deletions
35
package/kernel/mac80211/patches/rt2x00/017-rt2x00-initialize-last_reset.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Content-Type: text/plain; charset="utf-8" | ||
MIME-Version: 1.0 | ||
Content-Transfer-Encoding: 7bit | ||
X-Patchwork-Submitter: Stanislaw Gruszka <[email protected]> | ||
X-Patchwork-Id: 11161981 | ||
From: Stanislaw Gruszka <[email protected]> | ||
To: [email protected] | ||
Subject: [PATCH] rt2x00: initialize last_reset | ||
Date: Thu, 26 Sep 2019 10:54:33 +0200 | ||
Message-Id: <[email protected]> | ||
Sender: [email protected] | ||
List-ID: <linux-wireless.vger.kernel.org> | ||
X-Mailing-List: [email protected] | ||
|
||
Initialize last_reset variable to INITIAL_JIFFIES, otherwise it is not | ||
possible to test H/W reset for first 5 minutes of system run. | ||
|
||
Fixes: e403fa31ed71 ("rt2x00: add restart hw") | ||
Reported-and-tested-by: Jonathan Liu <[email protected]> | ||
Signed-off-by: Stanislaw Gruszka <[email protected]> | ||
--- | ||
drivers/net/wireless/ralink/rt2x00/rt2x00debug.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
--- a/drivers/net/wireless/ralink/rt2x00/rt2x00debug.c | ||
+++ b/drivers/net/wireless/ralink/rt2x00/rt2x00debug.c | ||
@@ -555,7 +555,7 @@ static ssize_t rt2x00debug_write_restart | ||
{ | ||
struct rt2x00debug_intf *intf = file->private_data; | ||
struct rt2x00_dev *rt2x00dev = intf->rt2x00dev; | ||
- static unsigned long last_reset; | ||
+ static unsigned long last_reset = INITIAL_JIFFIES; | ||
|
||
if (!rt2x00_has_cap_restart_hw(rt2x00dev)) | ||
return -EOPNOTSUPP; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.