Skip to content

Commit a22daff

Browse files
[bot] AutoMerging: merge all upstream's changes:
* https://github.com/coolsnowwolf/lede: rockchip: add gic MSI DMA workaround for FastRhino R66S/R68S from Flippy wolfssl: refresh patches wolfssl: fix TLSv1.3 RCE in uhttpd by using latest 5.5.1-stable release kernel: mtk_ppe: use MTK_FOE_STATE_INVALID instead of *_UNBIND build: fix warnings from grep Makefile: fix stray \ warnings with grep-3.8 Makefile: replace head call with grep's -m
2 parents 2f9d3b3 + 2becaf8 commit a22daff

15 files changed

+93
-7
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $(if $(findstring $(space),$(TOPDIR)),$(error ERROR: The path to the OpenWrt dir
1414

1515
world:
1616

17-
DISTRO_PKG_CONFIG:=$(shell which -a pkg-config | grep -E '\/usr' | head -n 1)
17+
DISTRO_PKG_CONFIG:=$(shell which -a pkg-config | grep '/usr' -m 1)
1818
export PATH:=$(TOPDIR)/staging_dir/host/bin:$(PATH)
1919

2020
ifneq ($(OPENWRT_BUILD),1)

package/libs/wolfssl/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
include $(TOPDIR)/rules.mk
99

1010
PKG_NAME:=wolfssl
11-
PKG_VERSION:=5.5.0-stable
11+
PKG_VERSION:=5.5.1-stable
1212
PKG_RELEASE:=$(AUTORELEASE)
1313

1414
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
1515
PKG_SOURCE_URL:=https://github.com/wolfSSL/wolfssl/archive/v$(PKG_VERSION)
16-
PKG_HASH:=c34b74b5f689fac7becb05583b044e84d3b10d39f38709f0095dd5d423ded67f
16+
PKG_HASH:=97339e6956c90e7c881ba5c748dd04f7c30e5dbe0c06da765418c51375a6dee3
1717

1818
PKG_FIXUP:=libtool libtool-abiver
1919
PKG_INSTALL:=1

package/libs/wolfssl/patches/100-disable-hardening-check.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/wolfssl/wolfcrypt/settings.h
22
+++ b/wolfssl/wolfcrypt/settings.h
3-
@@ -2445,7 +2445,7 @@ extern void uITRON4_free(void *p) ;
3+
@@ -2454,7 +2454,7 @@ extern void uITRON4_free(void *p) ;
44
#endif
55

66
/* warning for not using harden build options (default with ./configure) */

package/libs/wolfssl/patches/200-ecc-rng.patch

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RNG regardless of the built settings for wolfssl.
1111

1212
--- a/wolfcrypt/src/ecc.c
1313
+++ b/wolfcrypt/src/ecc.c
14-
@@ -12348,21 +12348,21 @@ void wc_ecc_fp_free(void)
14+
@@ -12505,21 +12505,21 @@ void wc_ecc_fp_free(void)
1515

1616
#endif /* FP_ECC */
1717

@@ -37,7 +37,7 @@ RNG regardless of the built settings for wolfssl.
3737

3838
--- a/wolfssl/wolfcrypt/ecc.h
3939
+++ b/wolfssl/wolfcrypt/ecc.h
40-
@@ -650,10 +650,8 @@ WOLFSSL_ABI WOLFSSL_API
40+
@@ -656,10 +656,8 @@ WOLFSSL_ABI WOLFSSL_API
4141
void wc_ecc_fp_free(void);
4242
WOLFSSL_LOCAL
4343
void wc_ecc_fp_init(void);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
From 12ff69304c83c679ca01ef3db963ab0db9de19fb Mon Sep 17 00:00:00 2001
2+
Message-Id: <12ff69304c83c679ca01ef3db963ab0db9de19fb.1662332102.git.lorenzo@kernel.org>
3+
In-Reply-To: <2a60545635c2705312299384f4e9fec2f2a3acd6.1662332102.git.lorenzo@kernel.org>
4+
References: <2a60545635c2705312299384f4e9fec2f2a3acd6.1662332102.git.lorenzo@kernel.org>
5+
From: Lorenzo Bianconi <[email protected]>
6+
Date: Mon, 5 Sep 2022 00:43:43 +0200
7+
Subject: [PATCH net-next 2/6] net: ethernet: mtk_eth_soc: fix typo in
8+
__mtk_foe_entry_clear
9+
10+
Set ib1 state to MTK_FOE_STATE_UNBIND in __mtk_foe_entry_clear routine.
11+
12+
Signed-off-by: Lorenzo Bianconi <[email protected]>
13+
---
14+
drivers/net/ethernet/mediatek/mtk_ppe.c | 2 +-
15+
1 file changed, 1 insertion(+), 1 deletion(-)
16+
17+
--- a/drivers/net/ethernet/mediatek/mtk_ppe.c
18+
+++ b/drivers/net/ethernet/mediatek/mtk_ppe.c
19+
@@ -413,7 +413,7 @@ __mtk_foe_entry_clear(struct mtk_ppe *pp
20+
struct mtk_foe_entry *hwe = mtk_foe_get_entry(ppe, entry->hash);
21+
22+
hwe->ib1 &= ~MTK_FOE_IB1_STATE;
23+
- hwe->ib1 |= FIELD_PREP(MTK_FOE_IB1_STATE, MTK_FOE_STATE_BIND);
24+
+ hwe->ib1 |= FIELD_PREP(MTK_FOE_IB1_STATE, MTK_FOE_STATE_UNBIND);
25+
dma_wmb();
26+
}
27+
entry->hash = 0xffff;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
From cd8e1f340c3e571b78952d4ca2c128d183a47cc2 Mon Sep 17 00:00:00 2001
2+
From: Daniel Golle <[email protected]>
3+
Date: Wed, 28 Sep 2022 02:17:02 +0100
4+
Subject: [PATCH] net: ethernet: mtk_eth_soc: fix state in
5+
__mtk_foe_entry_clear
6+
7+
8+
Lorenzo Bianconi <[email protected]>
9+
Cc: Sujuan Chen <[email protected]>,
10+
Bo Jiao <[email protected]>,
11+
Felix Fietkau <[email protected]>,
12+
John Crispin <[email protected]>,
13+
Sean Wang <[email protected]>,
14+
Mark Lee <[email protected]>,
15+
David S. Miller <[email protected]>,
16+
Eric Dumazet <[email protected]>,
17+
Jakub Kicinski <[email protected]>,
18+
Paolo Abeni <[email protected]>,
19+
Matthias Brugger <[email protected]>,
20+
Chen Minqiang <[email protected]>,
21+
Thomas Hühn <[email protected]>
22+
23+
Setting ib1 state to MTK_FOE_STATE_UNBIND in __mtk_foe_entry_clear
24+
routine as done by commit 0e80707d94e4c8 ("net: ethernet: mtk_eth_soc:
25+
fix typo in __mtk_foe_entry_clear") breaks flow offloading, at least
26+
on older MTK_NETSYS_V1 SoCs, OpenWrt users have confirmed the bug on
27+
MT7622 and MT7621 systems.
28+
Felix Fietkau suggested to use MTK_FOE_STATE_INVALID instead which
29+
works well on both, MTK_NETSYS_V1 and MTK_NETSYS_V2.
30+
31+
Tested on MT7622 (Linksys E8450) and MT7986 (BananaPi BPI-R3).
32+
33+
Suggested-by: Felix Fietkau <[email protected]>
34+
Fixes: 0e80707d94e4c8 ("net: ethernet: mtk_eth_soc: fix typo in __mtk_foe_entry_clear")
35+
Fixes: 33fc42de33278 ("net: ethernet: mtk_eth_soc: support creating mac address based offload entries")
36+
Signed-off-by: Daniel Golle <[email protected]>
37+
---
38+
drivers/net/ethernet/mediatek/mtk_ppe.c | 2 +-
39+
1 file changed, 1 insertion(+), 1 deletion(-)
40+
41+
--- a/drivers/net/ethernet/mediatek/mtk_ppe.c
42+
+++ b/drivers/net/ethernet/mediatek/mtk_ppe.c
43+
@@ -442,7 +442,7 @@ __mtk_foe_entry_clear(struct mtk_ppe *pp
44+
struct mtk_foe_entry *hwe = mtk_foe_get_entry(ppe, entry->hash);
45+
46+
hwe->ib1 &= ~MTK_FOE_IB1_STATE;
47+
- hwe->ib1 |= FIELD_PREP(MTK_FOE_IB1_STATE, MTK_FOE_STATE_UNBIND);
48+
+ hwe->ib1 |= FIELD_PREP(MTK_FOE_IB1_STATE, MTK_FOE_STATE_INVALID);
49+
dma_wmb();
50+
}
51+
entry->hash = 0xffff;

target/linux/rockchip/files-5.15/arch/arm64/boot/dts/rockchip/rk3568-fastrhino.dtsi

+4
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,10 @@
379379
};
380380
};
381381

382+
&gic {
383+
mbi-ranges = <94 31>, <229 31>, <289 31>;
384+
};
385+
382386
&pcie30phy {
383387
data-lanes = <1 2>;
384388
status = "okay";

target/linux/rockchip/files-5.19/arch/arm64/boot/dts/rockchip/rk3568-fastrhino.dtsi

+4
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,10 @@
367367
};
368368
};
369369

370+
&gic {
371+
mbi-ranges = <94 31>, <229 31>, <289 31>;
372+
};
373+
370374
&pcie30phy {
371375
data-lanes = <1 2>;
372376
status = "okay";

target/sdk/files/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export TOPDIR LC_ALL LANG SDK
1414

1515
world:
1616

17-
DISTRO_PKG_CONFIG:=$(shell which -a pkg-config | grep -E '\/usr' | head -n 1)
17+
DISTRO_PKG_CONFIG:=$(shell which -a pkg-config | grep '/usr' -m 1)
1818
export PATH:=$(TOPDIR)/staging_dir/host/bin:$(PATH)
1919

2020
ifneq ($(OPENWRT_BUILD),1)

0 commit comments

Comments
 (0)