forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
firmware: Sync with upstream (coolsnowwolf#10459)
* firmware: intel-microcode: update to 20220809 Debian's changelog by Henrique de Moraes Holschuh <[email protected]>: * New upstream microcode datafile 20220809 * Fixes INTEL-SA-00657, CVE-2022-21233 Stale data from APIC leaks SGX memory (AEPIC leak) * Fixes unspecified errata (functional issues) on Xeon Scalable * Updated Microcodes: sig 0x00050653, pf_mask 0x97, 2022-03-14, rev 0x100015e, size 34816 sig 0x00050654, pf_mask 0xb7, 2022-03-08, rev 0x2006e05, size 44032 sig 0x000606a6, pf_mask 0x87, 2022-04-07, rev 0xd000375, size 293888 sig 0x000706a1, pf_mask 0x01, 2022-03-23, rev 0x003c, size 75776 sig 0x000706a8, pf_mask 0x01, 2022-03-23, rev 0x0020, size 75776 sig 0x000706e5, pf_mask 0x80, 2022-03-17, rev 0x00b2, size 112640 sig 0x000806c2, pf_mask 0xc2, 2022-03-19, rev 0x0028, size 97280 sig 0x000806d1, pf_mask 0xc2, 2022-03-28, rev 0x0040, size 102400 sig 0x00090672, pf_mask 0x03, 2022-06-07, rev 0x0022, size 216064 sig 0x00090675, pf_mask 0x03, 2022-06-07, rev 0x0022, size 216064 sig 0x000906a3, pf_mask 0x80, 2022-06-15, rev 0x0421, size 216064 sig 0x000906a4, pf_mask 0x80, 2022-06-15, rev 0x0421, size 216064 sig 0x000a0671, pf_mask 0x02, 2022-03-17, rev 0x0054, size 103424 sig 0x000b06f2, pf_mask 0x03, 2022-06-07, rev 0x0022, size 216064 sig 0x000b06f5, pf_mask 0x03, 2022-06-07, rev 0x0022, size 216064 Signed-off-by: Christian Lamparter <[email protected]> * bcm27xx-gpu-fw: update to latest version Multiple firmware fixes needed for kernel updates. Signed-off-by: Álvaro Fernández Rojas <[email protected]> * bcm27xx-gpu-fw: update to latest version Latest GPU FW contains multiple fixes and improvements. Signed-off-by: Álvaro Fernández Rojas <[email protected]> * bcm63xx-cfe: update to the latest master e5050f3 linksys: ea9500-v2: add cferam file Signed-off-by: Rafał Miłecki <[email protected]> * nat46: fix translation of ICMP protocols parameter problem and unreachable 9b3a819 nat46-core: Fix translation of ICMP protocols parameter problem and unreachable (coolsnowwolf#27) Signed-off-by: Hans Dedecker <[email protected]> * nat46: update to latest git HEAD 1fdf2a3 Fix kernel panic due to device deletion (coolsnowwolf#29) e7b48d1 add the mutex lock for create/delete/config/insert nat46 devices to fix nat46 module crash issues. (coolsnowwolf#28) Signed-off-by: Hans Dedecker <[email protected]> * nat46: update to latest git HEAD d9bc161 nat46-core: Fix typo since day one (coolsnowwolf#31) 840e235 Fix coverity issues observed so far (coolsnowwolf#30) Signed-off-by: Hans Dedecker <[email protected]> * nat46: update to git HEAD 95ca1c3 nat46-core: ignore IPv4 options when translating packets 39778c2 add a module argument to ignore TOS translate for IPv4 9a36ee1 add a module argument to ignore TOS translate for IPv4 79190a8 add a module argument to ignore TOS translate for IPv4 Signed-off-by: Hans Dedecker <[email protected]> * mwlwifi: fix 5.15 kernel support Fix compilation and usage under kernel 5.15 for the mwlwifi driver. For detailed description of changes, check individual patches. Signed-off-by: Robert Marko <[email protected]> * rtl8812au-ct: Fix compile Replace the extern inline with a static inline. With extern inline the compiler will generate the function in all compile units including this file which breaks linking later. Signed-off-by: Hauke Mehrtens <[email protected]> Signed-off-by: Christian Lamparter <[email protected]> Signed-off-by: Álvaro Fernández Rojas <[email protected]> Signed-off-by: Rafał Miłecki <[email protected]> Signed-off-by: Hans Dedecker <[email protected]> Signed-off-by: Robert Marko <[email protected]> Signed-off-by: Hauke Mehrtens <[email protected]> Co-authored-by: Christian Lamparter <[email protected]> Co-authored-by: Álvaro Fernández Rojas <[email protected]> Co-authored-by: Rafał Miłecki <[email protected]> Co-authored-by: Hans Dedecker <[email protected]> Co-authored-by: Robert Marko <[email protected]> Co-authored-by: Hauke Mehrtens <[email protected]>
- Loading branch information
1 parent
75d227e
commit 3c707a2
Showing
9 changed files
with
151 additions
and
25 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
32 changes: 32 additions & 0 deletions
32
package/kernel/mwlwifi/patches/002-mwlwifi-remove-MODULE_SUPPORTED_DEVICE.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,32 @@ | ||
From 392f8e9d798acff3079e753dd881e272f6150d74 Mon Sep 17 00:00:00 2001 | ||
From: Robert Marko <[email protected]> | ||
Date: Wed, 30 Mar 2022 19:32:38 +0200 | ||
Subject: [PATCH] mwlwifi: remove MODULE_SUPPORTED_DEVICE | ||
|
||
Kernel 5.12 finally removed all MODULE_SUPPORTED_DEVICE references and | ||
support for it as it was never actually implemented and was safe to | ||
drop it completely. | ||
|
||
So, do the same in order to compile in 5.12 and newer. | ||
|
||
Signed-off-by: Robert Marko <[email protected]> | ||
--- | ||
hif/pcie/pcie.c | 2 -- | ||
1 file changed, 2 deletions(-) | ||
|
||
--- a/hif/pcie/pcie.c | ||
+++ b/hif/pcie/pcie.c | ||
@@ -31,7 +31,6 @@ | ||
#include "hif/pcie/rx_ndp.h" | ||
|
||
#define PCIE_DRV_DESC "Marvell Mac80211 Wireless PCIE Network Driver" | ||
-#define PCIE_DEV_NAME "Marvell 802.11ac PCIE Adapter" | ||
|
||
#define MAX_WAIT_FW_COMPLETE_ITERATIONS 10000 | ||
#define CHECK_BA_TRAFFIC_TIME 300 /* msec */ | ||
@@ -1641,5 +1640,4 @@ MODULE_DESCRIPTION(PCIE_DRV_DESC); | ||
MODULE_VERSION(PCIE_DRV_VERSION); | ||
MODULE_AUTHOR("Marvell Semiconductor, Inc."); | ||
MODULE_LICENSE("GPL v2"); | ||
-MODULE_SUPPORTED_DEVICE(PCIE_DEV_NAME); | ||
MODULE_DEVICE_TABLE(pci, pcie_id_tbl); |
39 changes: 39 additions & 0 deletions
39
package/kernel/mwlwifi/patches/003-mwlwifi-replace-get-set_fs-calls.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,39 @@ | ||
From 16e51cb83f9fa1717383c9d67f5531df7348347c Mon Sep 17 00:00:00 2001 | ||
From: Robert Marko <[email protected]> | ||
Date: Wed, 30 Mar 2022 19:51:56 +0200 | ||
Subject: [PATCH] mwlwifi: replace get/set_fs() calls | ||
|
||
Since kernel 5.9 the get/set_fs() call implementation have started to get | ||
dropped from individual architectures, ARM64 one got dropped in 5.11. | ||
|
||
Replace the get/set_fs() calls with force_uaccess_begin/end() to allow | ||
compiling on newer kernels. | ||
There is no need to add kernel version checks as the replacement functions | ||
are available since kernel 5.9. | ||
|
||
Signed-off-by: Robert Marko <[email protected]> | ||
--- | ||
hif/pcie/pcie.c | 5 ++--- | ||
1 file changed, 2 insertions(+), 3 deletions(-) | ||
|
||
--- a/hif/pcie/pcie.c | ||
+++ b/hif/pcie/pcie.c | ||
@@ -1293,8 +1293,7 @@ static void pcie_bf_mimo_ctrl_decode(str | ||
char *buf = &str_buf[0]; | ||
mm_segment_t oldfs; | ||
|
||
- oldfs = get_fs(); | ||
- set_fs(KERNEL_DS); | ||
+ oldfs = force_uaccess_begin(); | ||
|
||
buf += sprintf(buf, "\nMAC: %pM\n", bf_mimo_ctrl->rec_mac); | ||
buf += sprintf(buf, "SU_0_MU_1: %d\n", bf_mimo_ctrl->type); | ||
@@ -1314,7 +1313,7 @@ static void pcie_bf_mimo_ctrl_decode(str | ||
filename, (unsigned int)fp_data); | ||
} | ||
|
||
- set_fs(oldfs); | ||
+ force_uaccess_end(oldfs); | ||
} | ||
|
||
static void pcie_process_account(struct ieee80211_hw *hw) |
31 changes: 31 additions & 0 deletions
31
package/kernel/mwlwifi/patches/004-mwlwifi-fix-PCIe-DT-node-null-pointer-dereference.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,31 @@ | ||
From 8e809b241695252e397bf0d7fc5f36e115c38831 Mon Sep 17 00:00:00 2001 | ||
From: Robert Marko <[email protected]> | ||
Date: Fri, 5 Mar 2021 11:47:59 +0100 | ||
Subject: [PATCH] mwlwifi: fix PCIe DT node null pointer dereference | ||
|
||
pci_bus_to_OF_node() used to get the PCI bus DT node | ||
returns node if found or NULL if none is found. | ||
|
||
Since the return of pci_bus_to_OF_node() is not checked in | ||
the DT node name print it will cause a null pointer | ||
dereference and crash the kernel. | ||
|
||
So first check whether the node is not NULL and then print. | ||
|
||
Signed-off-by: Robert Marko <[email protected]> | ||
--- | ||
hif/pcie/pcie.c | 3 ++- | ||
1 file changed, 2 insertions(+), 1 deletion(-) | ||
|
||
--- a/hif/pcie/pcie.c | ||
+++ b/hif/pcie/pcie.c | ||
@@ -570,7 +570,8 @@ static struct device_node *pcie_get_devi | ||
struct device_node *dev_node; | ||
|
||
dev_node = pci_bus_to_OF_node(pcie_priv->pdev->bus); | ||
- wiphy_info(priv->hw->wiphy, "device node: %s\n", dev_node->full_name); | ||
+ if (dev_node) | ||
+ wiphy_info(priv->hw->wiphy, "device node: %s\n", dev_node->full_name); | ||
|
||
return dev_node; | ||
} |
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 |
---|---|---|
|
@@ -3,11 +3,11 @@ include $(INCLUDE_DIR)/kernel.mk | |
|
||
PKG_NAME:=nat46 | ||
|
||
PKG_MIRROR_HASH:=3b424241de42b96d47217decf6f9071153cd0c11651f1ee006700836c6660fe8 | ||
PKG_MIRROR_HASH:=c26b8c60aa991a087011b8b6492e43a6749f0a5d9dc79ffcfd352da5fa20b78d | ||
PKG_SOURCE_URL:=https://github.com/ayourtch/nat46.git | ||
PKG_SOURCE_DATE:=2021-05-17 | ||
PKG_SOURCE_DATE:=2022-03-30 | ||
PKG_SOURCE_PROTO:=git | ||
PKG_SOURCE_VERSION:=0d5860d63a8037e001e293091ebf6219cc2f9255 | ||
PKG_SOURCE_VERSION:=95ca1c3b99376da2d0306919f2df4a8d3c9bb78b | ||
|
||
PKG_MAINTAINER:=Hans Dedecker <[email protected]> | ||
PKG_LICENSE:=GPL-2.0 | ||
|
24 changes: 24 additions & 0 deletions
24
package/kernel/rtl8812au-ct/patches/004-remove-extern-inline.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 @@ | ||
--- a/include/ieee80211.h | ||
+++ b/include/ieee80211.h | ||
@@ -1313,18 +1313,18 @@ enum ieee80211_state { | ||
(((Addr[2]) & 0xff) == 0xff) && (((Addr[3]) & 0xff) == 0xff) && (((Addr[4]) & 0xff) == 0xff) && \ | ||
(((Addr[5]) & 0xff) == 0xff)) | ||
#else | ||
-extern __inline int is_multicast_mac_addr(const u8 *addr) | ||
+__inline static int is_multicast_mac_addr(const u8 *addr) | ||
{ | ||
return ((addr[0] != 0xff) && (0x01 & addr[0])); | ||
} | ||
|
||
-extern __inline int is_broadcast_mac_addr(const u8 *addr) | ||
+__inline static int is_broadcast_mac_addr(const u8 *addr) | ||
{ | ||
return ((addr[0] == 0xff) && (addr[1] == 0xff) && (addr[2] == 0xff) && \ | ||
(addr[3] == 0xff) && (addr[4] == 0xff) && (addr[5] == 0xff)); | ||
} | ||
|
||
-extern __inline int is_zero_mac_addr(const u8 *addr) | ||
+__inline static int is_zero_mac_addr(const u8 *addr) | ||
{ | ||
return ((addr[0] == 0x00) && (addr[1] == 0x00) && (addr[2] == 0x00) && \ | ||
(addr[3] == 0x00) && (addr[4] == 0x00) && (addr[5] == 0x00)); |