From e25eb1966e37da0dded0f7c0cfacdb57002a6faf Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Thu, 7 Nov 2024 10:13:53 +0100 Subject: [PATCH] patches/linux: minor fix to 6393X led handling Signed-off-by: Joachim Wiberg --- ...-support-for-PHY-LEDs-polarity-modes.patch | 3 +- ...rt-setting-the-MDC-frequency-on-XSMI.patch | 3 +- ...x-Create-API-to-read-a-single-stat-c.patch | 3 +- ...sa-mv88e6xxx-Give-each-hw-stat-an-ID.patch | 3 +- ...xx-Add-eth-mac-counter-group-support.patch | 3 +- ...x-Limit-histogram-counters-to-ingres.patch | 3 +- ...e6xxx-Add-rmon-counter-group-support.patch | 3 +- ...dsa-mv88e6xxx-Add-LED-infrastructure.patch | 4 +- ...-mv88e6xxx-Add-LED-support-for-6393X.patch | 4 +- ...x-Fix-timeout-on-waiting-for-PPU-on-.patch | 4 +- ...MDB-memberships-whose-L2-addresses-o.patch | 4 +- ...0g-Support-firmware-loading-on-88X33.patch | 4 +- ...0g-Fix-power-up-when-strapped-to-sta.patch | 4 +- ...rvell10g-Add-LED-support-for-88X3310.patch | 4 +- ...0g-Support-LEDs-tied-to-a-single-med.patch | 4 +- ...ie-tlv-Let-device-probe-even-when-TL.patch | 4 +- ...-classifying-unknown-multicast-as-mr.patch | 2 +- ...e-router-ports-when-forwarding-L2-mu.patch | 2 +- ...t-EtherType-based-priority-overrides.patch | 3 +- ...x-Support-EtherType-based-priority-o.patch | 3 +- ...phy-Do-not-resume-PHY-when-attaching.patch | 4 +- ...x-Improve-indirect-register-access-p.patch | 4 +- ...delay-for-applying-strict-multicast-.patch | 2 +- ...x-Honor-ports-being-managed-via-in-b.patch | 4 +- ...6xxx-Fix-port-policy-config-on-6393X.patch | 3 +- ...x-Limit-rsvd2cpu-policy-to-user-port.patch | 4 +- ...t-log-level-for-unauthorized-devices.patch | 2 +- ...x-Grab-register-lock-during-counter-.patch | 4 +- ...rentiate-MDB-additions-from-modifica.patch | 4 +- ...Use-tag-priority-as-initial-skb-prio.patch | 4 +- ...a-mv88e6xxx-Add-mqprio-qdisc-support.patch | 4 +- ...x-Use-VLAN-prio-over-IP-when-both-ar.patch | 4 +- ...x-use-EOPNOTSUPP-for-unsupported-fla.patch | 43 +++++++++++++++++++ 33 files changed, 121 insertions(+), 32 deletions(-) create mode 100644 patches/linux/6.6.52/0034-net-dsa-mb88e6xxx-use-EOPNOTSUPP-for-unsupported-fla.patch diff --git a/patches/linux/6.6.52/0001-net-phy-add-support-for-PHY-LEDs-polarity-modes.patch b/patches/linux/6.6.52/0001-net-phy-add-support-for-PHY-LEDs-polarity-modes.patch index 697192ae..8248d672 100644 --- a/patches/linux/6.6.52/0001-net-phy-add-support-for-PHY-LEDs-polarity-modes.patch +++ b/patches/linux/6.6.52/0001-net-phy-add-support-for-PHY-LEDs-polarity-modes.patch @@ -1,7 +1,7 @@ From 4be3e500b670f7b98e3dd6696b8e51e83f122c65 Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Thu, 25 Jan 2024 21:36:59 +0100 -Subject: [PATCH 01/33] net: phy: add support for PHY LEDs polarity modes +Subject: [PATCH 01/34] net: phy: add support for PHY LEDs polarity modes Organization: Addiva Elektronik Add support for PHY LEDs polarity modes. Some PHY require LED to be set @@ -22,6 +22,7 @@ Signed-off-by: Christian Marangi Reviewed-by: Andrew Lunn Link: https://lore.kernel.org/r/20240125203702.4552-4-ansuelsmth@gmail.com Signed-off-by: Jakub Kicinski +Signed-off-by: Joachim Wiberg --- drivers/net/phy/phy_device.c | 16 ++++++++++++++++ include/linux/phy.h | 22 ++++++++++++++++++++++ diff --git a/patches/linux/6.6.52/0002-net-mvmdio-Support-setting-the-MDC-frequency-on-XSMI.patch b/patches/linux/6.6.52/0002-net-mvmdio-Support-setting-the-MDC-frequency-on-XSMI.patch index 764cc8b4..1aaa7e5e 100644 --- a/patches/linux/6.6.52/0002-net-mvmdio-Support-setting-the-MDC-frequency-on-XSMI.patch +++ b/patches/linux/6.6.52/0002-net-mvmdio-Support-setting-the-MDC-frequency-on-XSMI.patch @@ -1,7 +1,7 @@ From 4833b140cd11a57dd9f59754cdacfd71bc564c8f Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Mon, 4 Dec 2023 11:08:11 +0100 -Subject: [PATCH 02/33] net: mvmdio: Support setting the MDC frequency on XSMI +Subject: [PATCH 02/34] net: mvmdio: Support setting the MDC frequency on XSMI controllers Organization: Addiva Elektronik @@ -14,6 +14,7 @@ Reviewed-by: Andrew Lunn Tested-by: Andrew Lunn Link: https://lore.kernel.org/r/20231204100811.2708884-4-tobias@waldekranz.com Signed-off-by: Jakub Kicinski +Signed-off-by: Joachim Wiberg --- drivers/net/ethernet/marvell/mvmdio.c | 44 +++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/patches/linux/6.6.52/0003-net-dsa-mv88e6xxx-Create-API-to-read-a-single-stat-c.patch b/patches/linux/6.6.52/0003-net-dsa-mv88e6xxx-Create-API-to-read-a-single-stat-c.patch index 89456905..b7014edc 100644 --- a/patches/linux/6.6.52/0003-net-dsa-mv88e6xxx-Create-API-to-read-a-single-stat-c.patch +++ b/patches/linux/6.6.52/0003-net-dsa-mv88e6xxx-Create-API-to-read-a-single-stat-c.patch @@ -1,7 +1,7 @@ From 50a2973e8a520a82e9f9ec15a1f69e059ce7a334 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Thu, 14 Dec 2023 14:50:23 +0100 -Subject: [PATCH 03/33] net: dsa: mv88e6xxx: Create API to read a single stat +Subject: [PATCH 03/34] net: dsa: mv88e6xxx: Create API to read a single stat counter Organization: Addiva Elektronik @@ -16,6 +16,7 @@ Reviewed-by: Vladimir Oltean Reviewed-by: Florian Fainelli Signed-off-by: Tobias Waldekranz Signed-off-by: David S. Miller +Signed-off-by: Joachim Wiberg --- drivers/net/dsa/mv88e6xxx/chip.c | 162 ++++++++++++++++++------------- drivers/net/dsa/mv88e6xxx/chip.h | 27 +++--- diff --git a/patches/linux/6.6.52/0004-net-dsa-mv88e6xxx-Give-each-hw-stat-an-ID.patch b/patches/linux/6.6.52/0004-net-dsa-mv88e6xxx-Give-each-hw-stat-an-ID.patch index e3bccb8f..d46ae1b9 100644 --- a/patches/linux/6.6.52/0004-net-dsa-mv88e6xxx-Give-each-hw-stat-an-ID.patch +++ b/patches/linux/6.6.52/0004-net-dsa-mv88e6xxx-Give-each-hw-stat-an-ID.patch @@ -1,7 +1,7 @@ From 5916503e23e7f85796c1f927747e66b9535bac53 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Thu, 14 Dec 2023 14:50:25 +0100 -Subject: [PATCH 04/33] net: dsa: mv88e6xxx: Give each hw stat an ID +Subject: [PATCH 04/34] net: dsa: mv88e6xxx: Give each hw stat an ID Organization: Addiva Elektronik With the upcoming standard counter group support, we are no longer @@ -16,6 +16,7 @@ Reviewed-by: Vladimir Oltean Reviewed-by: Florian Fainelli Signed-off-by: Tobias Waldekranz Signed-off-by: David S. Miller +Signed-off-by: Joachim Wiberg --- drivers/net/dsa/mv88e6xxx/chip.c | 138 +++++++++++++++++-------------- 1 file changed, 75 insertions(+), 63 deletions(-) diff --git a/patches/linux/6.6.52/0005-net-dsa-mv88e6xxx-Add-eth-mac-counter-group-support.patch b/patches/linux/6.6.52/0005-net-dsa-mv88e6xxx-Add-eth-mac-counter-group-support.patch index 9a028dad..ad465649 100644 --- a/patches/linux/6.6.52/0005-net-dsa-mv88e6xxx-Add-eth-mac-counter-group-support.patch +++ b/patches/linux/6.6.52/0005-net-dsa-mv88e6xxx-Add-eth-mac-counter-group-support.patch @@ -1,7 +1,7 @@ From 32dda6562734ec8ee667bc546f3ef56794d5bf82 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Thu, 14 Dec 2023 14:50:26 +0100 -Subject: [PATCH 05/33] net: dsa: mv88e6xxx: Add "eth-mac" counter group +Subject: [PATCH 05/34] net: dsa: mv88e6xxx: Add "eth-mac" counter group support Organization: Addiva Elektronik @@ -12,6 +12,7 @@ Reviewed-by: Vladimir Oltean Reviewed-by: Florian Fainelli Signed-off-by: Tobias Waldekranz Signed-off-by: David S. Miller +Signed-off-by: Joachim Wiberg --- drivers/net/dsa/mv88e6xxx/chip.c | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/patches/linux/6.6.52/0006-net-dsa-mv88e6xxx-Limit-histogram-counters-to-ingres.patch b/patches/linux/6.6.52/0006-net-dsa-mv88e6xxx-Limit-histogram-counters-to-ingres.patch index 9bb8a30d..6f63c2f0 100644 --- a/patches/linux/6.6.52/0006-net-dsa-mv88e6xxx-Limit-histogram-counters-to-ingres.patch +++ b/patches/linux/6.6.52/0006-net-dsa-mv88e6xxx-Limit-histogram-counters-to-ingres.patch @@ -1,7 +1,7 @@ From 36adbdd466ec550cab8b2ae54177f674c02cf631 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Thu, 14 Dec 2023 14:50:27 +0100 -Subject: [PATCH 06/33] net: dsa: mv88e6xxx: Limit histogram counters to +Subject: [PATCH 06/34] net: dsa: mv88e6xxx: Limit histogram counters to ingress traffic Organization: Addiva Elektronik @@ -27,6 +27,7 @@ Reviewed-by: Andrew Lunn Reviewed-by: Vladimir Oltean Signed-off-by: Tobias Waldekranz Signed-off-by: David S. Miller +Signed-off-by: Joachim Wiberg --- drivers/net/dsa/mv88e6xxx/chip.c | 6 +++--- drivers/net/dsa/mv88e6xxx/global1.c | 7 +++---- diff --git a/patches/linux/6.6.52/0007-net-dsa-mv88e6xxx-Add-rmon-counter-group-support.patch b/patches/linux/6.6.52/0007-net-dsa-mv88e6xxx-Add-rmon-counter-group-support.patch index 5eb3ef0f..78e1de5b 100644 --- a/patches/linux/6.6.52/0007-net-dsa-mv88e6xxx-Add-rmon-counter-group-support.patch +++ b/patches/linux/6.6.52/0007-net-dsa-mv88e6xxx-Add-rmon-counter-group-support.patch @@ -1,7 +1,7 @@ From abfa532c1149525b128b8c76d80965f55e208240 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Thu, 14 Dec 2023 14:50:28 +0100 -Subject: [PATCH 07/33] net: dsa: mv88e6xxx: Add "rmon" counter group support +Subject: [PATCH 07/34] net: dsa: mv88e6xxx: Add "rmon" counter group support Organization: Addiva Elektronik Report the applicable subset of an mv88e6xxx port's counters using @@ -11,6 +11,7 @@ Reviewed-by: Vladimir Oltean Reviewed-by: Florian Fainelli Signed-off-by: Tobias Waldekranz Signed-off-by: David S. Miller +Signed-off-by: Joachim Wiberg --- drivers/net/dsa/mv88e6xxx/chip.c | 42 ++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/patches/linux/6.6.52/0009-net-dsa-mv88e6xxx-Add-LED-infrastructure.patch b/patches/linux/6.6.52/0009-net-dsa-mv88e6xxx-Add-LED-infrastructure.patch index a9338fad..ac341bb5 100644 --- a/patches/linux/6.6.52/0009-net-dsa-mv88e6xxx-Add-LED-infrastructure.patch +++ b/patches/linux/6.6.52/0009-net-dsa-mv88e6xxx-Add-LED-infrastructure.patch @@ -1,11 +1,13 @@ From 4407b94b4a08536fccb6eea2826955ff12d63ec2 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Thu, 16 Nov 2023 19:44:32 +0100 -Subject: [PATCH 09/33] net: dsa: mv88e6xxx: Add LED infrastructure +Subject: [PATCH 09/34] net: dsa: mv88e6xxx: Add LED infrastructure Organization: Addiva Elektronik Parse DT for LEDs and register them for devices that support it, though no actual implementations exist yet. + +Signed-off-by: Joachim Wiberg --- drivers/net/dsa/mv88e6xxx/Makefile | 1 + drivers/net/dsa/mv88e6xxx/chip.c | 5 +- diff --git a/patches/linux/6.6.52/0010-net-dsa-mv88e6xxx-Add-LED-support-for-6393X.patch b/patches/linux/6.6.52/0010-net-dsa-mv88e6xxx-Add-LED-support-for-6393X.patch index faec2ef0..e67f5998 100644 --- a/patches/linux/6.6.52/0010-net-dsa-mv88e6xxx-Add-LED-support-for-6393X.patch +++ b/patches/linux/6.6.52/0010-net-dsa-mv88e6xxx-Add-LED-support-for-6393X.patch @@ -1,13 +1,15 @@ From a5cf5c0353db07e74d7a29dd4d5c2cb7775d5bec Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Thu, 16 Nov 2023 21:59:35 +0100 -Subject: [PATCH 10/33] net: dsa: mv88e6xxx: Add LED support for 6393X +Subject: [PATCH 10/34] net: dsa: mv88e6xxx: Add LED support for 6393X Organization: Addiva Elektronik Trigger support: - "none" - "timer" - "netdev" + +Signed-off-by: Joachim Wiberg --- drivers/net/dsa/mv88e6xxx/chip.c | 1 + drivers/net/dsa/mv88e6xxx/leds.c | 226 +++++++++++++++++++++++++++++++ diff --git a/patches/linux/6.6.52/0011-net-dsa-mv88e6xxx-Fix-timeout-on-waiting-for-PPU-on-.patch b/patches/linux/6.6.52/0011-net-dsa-mv88e6xxx-Fix-timeout-on-waiting-for-PPU-on-.patch index 22df095a..d5b87531 100644 --- a/patches/linux/6.6.52/0011-net-dsa-mv88e6xxx-Fix-timeout-on-waiting-for-PPU-on-.patch +++ b/patches/linux/6.6.52/0011-net-dsa-mv88e6xxx-Fix-timeout-on-waiting-for-PPU-on-.patch @@ -1,13 +1,15 @@ From be94ec851dbb8e55c3f5e82f197b2dc59566aea2 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Tue, 12 Mar 2024 10:27:24 +0100 -Subject: [PATCH 11/33] net: dsa: mv88e6xxx: Fix timeout on waiting for PPU on +Subject: [PATCH 11/34] net: dsa: mv88e6xxx: Fix timeout on waiting for PPU on 6393X Organization: Addiva Elektronik In a multi-chip setup, delays of up to 750ms are observed before the device (6393X) signals completion of PPU initialization (Global 1, register 0, bit 15). Therefore, increase the timeout threshold to 1s. + +Signed-off-by: Joachim Wiberg --- drivers/net/dsa/mv88e6xxx/chip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/linux/6.6.52/0012-net-dsa-Support-MDB-memberships-whose-L2-addresses-o.patch b/patches/linux/6.6.52/0012-net-dsa-Support-MDB-memberships-whose-L2-addresses-o.patch index 096d61d2..6ddcc614 100644 --- a/patches/linux/6.6.52/0012-net-dsa-Support-MDB-memberships-whose-L2-addresses-o.patch +++ b/patches/linux/6.6.52/0012-net-dsa-Support-MDB-memberships-whose-L2-addresses-o.patch @@ -1,7 +1,7 @@ From 69092f83541e6539ab82eec3052325c403675de4 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Tue, 16 Jan 2024 16:00:55 +0100 -Subject: [PATCH 12/33] net: dsa: Support MDB memberships whose L2 addresses +Subject: [PATCH 12/34] net: dsa: Support MDB memberships whose L2 addresses overlap Organization: Addiva Elektronik @@ -29,6 +29,8 @@ as long as the count is positive. Fortunately, all the infrastructure needed to do this is already in place, since it is also needed on CPU and DSA ports. Thus, "implement" this by simply removing the guards which previously skipped reference countung on user ports. + +Signed-off-by: Joachim Wiberg --- net/dsa/switch.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/patches/linux/6.6.52/0013-net-phy-marvell10g-Support-firmware-loading-on-88X33.patch b/patches/linux/6.6.52/0013-net-phy-marvell10g-Support-firmware-loading-on-88X33.patch index 58956f52..6629947e 100644 --- a/patches/linux/6.6.52/0013-net-phy-marvell10g-Support-firmware-loading-on-88X33.patch +++ b/patches/linux/6.6.52/0013-net-phy-marvell10g-Support-firmware-loading-on-88X33.patch @@ -1,7 +1,7 @@ From 7c19df77212d0728874515e97cf297863a6ff2cd Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Tue, 19 Sep 2023 18:38:10 +0200 -Subject: [PATCH 13/33] net: phy: marvell10g: Support firmware loading on +Subject: [PATCH 13/34] net: phy: marvell10g: Support firmware loading on 88X3310 Organization: Addiva Elektronik @@ -11,6 +11,8 @@ its RAM, ask userspace for the binary and load it over XMDIO. We have no choice but to bail out of the probe if firmware is not available, as the device does not have any built-in image on which to fall back. + +Signed-off-by: Joachim Wiberg --- drivers/net/phy/marvell10g.c | 161 +++++++++++++++++++++++++++++++++++ 1 file changed, 161 insertions(+) diff --git a/patches/linux/6.6.52/0014-net-phy-marvell10g-Fix-power-up-when-strapped-to-sta.patch b/patches/linux/6.6.52/0014-net-phy-marvell10g-Fix-power-up-when-strapped-to-sta.patch index 1e4722d2..a1f35eda 100644 --- a/patches/linux/6.6.52/0014-net-phy-marvell10g-Fix-power-up-when-strapped-to-sta.patch +++ b/patches/linux/6.6.52/0014-net-phy-marvell10g-Fix-power-up-when-strapped-to-sta.patch @@ -1,13 +1,15 @@ From 0c34b42b7a72ddf1af6f3534870d647801e493fa Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Tue, 21 Nov 2023 20:15:24 +0100 -Subject: [PATCH 14/33] net: phy: marvell10g: Fix power-up when strapped to +Subject: [PATCH 14/34] net: phy: marvell10g: Fix power-up when strapped to start powered down Organization: Addiva Elektronik On devices which are hardware strapped to start powered down (PDSTATE == 1), make sure that we clear the power-down bit on all units affected by this setting. + +Signed-off-by: Joachim Wiberg --- drivers/net/phy/marvell10g.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/patches/linux/6.6.52/0015-net-phy-marvell10g-Add-LED-support-for-88X3310.patch b/patches/linux/6.6.52/0015-net-phy-marvell10g-Add-LED-support-for-88X3310.patch index e83ccca0..6cd5ecc2 100644 --- a/patches/linux/6.6.52/0015-net-phy-marvell10g-Add-LED-support-for-88X3310.patch +++ b/patches/linux/6.6.52/0015-net-phy-marvell10g-Add-LED-support-for-88X3310.patch @@ -1,7 +1,7 @@ From 6576918d3348f8e20802379d568d7632228af4d7 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Wed, 15 Nov 2023 20:58:42 +0100 -Subject: [PATCH 15/33] net: phy: marvell10g: Add LED support for 88X3310 +Subject: [PATCH 15/34] net: phy: marvell10g: Add LED support for 88X3310 Organization: Addiva Elektronik Pickup the LEDs from the state in which the hardware reset or @@ -17,6 +17,8 @@ Trigger support: software blinking - "netdev": Offload link or duplex information to the solid behavior; tx and/or rx activity to blink behavior. + +Signed-off-by: Joachim Wiberg --- drivers/net/phy/marvell10g.c | 422 +++++++++++++++++++++++++++++++++++ 1 file changed, 422 insertions(+) diff --git a/patches/linux/6.6.52/0016-net-phy-marvell10g-Support-LEDs-tied-to-a-single-med.patch b/patches/linux/6.6.52/0016-net-phy-marvell10g-Support-LEDs-tied-to-a-single-med.patch index aa40cec9..6e50063b 100644 --- a/patches/linux/6.6.52/0016-net-phy-marvell10g-Support-LEDs-tied-to-a-single-med.patch +++ b/patches/linux/6.6.52/0016-net-phy-marvell10g-Support-LEDs-tied-to-a-single-med.patch @@ -1,7 +1,7 @@ From 1ad7f010e46133c725df5cab4d85f71f689ca191 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Tue, 12 Dec 2023 09:51:05 +0100 -Subject: [PATCH 16/33] net: phy: marvell10g: Support LEDs tied to a single +Subject: [PATCH 16/34] net: phy: marvell10g: Support LEDs tied to a single media side Organization: Addiva Elektronik @@ -14,6 +14,8 @@ tied to a particular media side, and use that information to refine the offloading of the "netdev" trigger, such that LEDs attached to the RJ45 jack only lights up when a copper link is established, and vice versa for the SFP cage. + +Signed-off-by: Joachim Wiberg --- drivers/net/phy/marvell10g.c | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/patches/linux/6.6.52/0017-nvmem-layouts-onie-tlv-Let-device-probe-even-when-TL.patch b/patches/linux/6.6.52/0017-nvmem-layouts-onie-tlv-Let-device-probe-even-when-TL.patch index 0ba2caab..1471c411 100644 --- a/patches/linux/6.6.52/0017-nvmem-layouts-onie-tlv-Let-device-probe-even-when-TL.patch +++ b/patches/linux/6.6.52/0017-nvmem-layouts-onie-tlv-Let-device-probe-even-when-TL.patch @@ -1,7 +1,7 @@ From 11b9a3e328241edede03b6615bb9b0f1a40b9b7d Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Fri, 24 Nov 2023 23:29:55 +0100 -Subject: [PATCH 17/33] nvmem: layouts: onie-tlv: Let device probe even when +Subject: [PATCH 17/34] nvmem: layouts: onie-tlv: Let device probe even when TLV is invalid Organization: Addiva Elektronik @@ -13,6 +13,8 @@ be successfully probed. Therefore, settle for reporting data corruption issues in the log, and simply refrain from registering any cells in those cases. + +Signed-off-by: Joachim Wiberg --- drivers/nvmem/layouts/onie-tlv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patches/linux/6.6.52/0018-net-bridge-avoid-classifying-unknown-multicast-as-mr.patch b/patches/linux/6.6.52/0018-net-bridge-avoid-classifying-unknown-multicast-as-mr.patch index 82bd2555..22fb5aaf 100644 --- a/patches/linux/6.6.52/0018-net-bridge-avoid-classifying-unknown-multicast-as-mr.patch +++ b/patches/linux/6.6.52/0018-net-bridge-avoid-classifying-unknown-multicast-as-mr.patch @@ -1,7 +1,7 @@ From ce1148b5c2e33541ad13ff2c4769d0b37d4e42b9 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Mon, 4 Mar 2024 16:47:28 +0100 -Subject: [PATCH 18/33] net: bridge: avoid classifying unknown multicast as +Subject: [PATCH 18/34] net: bridge: avoid classifying unknown multicast as mrouters_only Organization: Addiva Elektronik diff --git a/patches/linux/6.6.52/0019-net-bridge-Ignore-router-ports-when-forwarding-L2-mu.patch b/patches/linux/6.6.52/0019-net-bridge-Ignore-router-ports-when-forwarding-L2-mu.patch index 5b5baf0a..a2fab31e 100644 --- a/patches/linux/6.6.52/0019-net-bridge-Ignore-router-ports-when-forwarding-L2-mu.patch +++ b/patches/linux/6.6.52/0019-net-bridge-Ignore-router-ports-when-forwarding-L2-mu.patch @@ -1,7 +1,7 @@ From ce74ee8c5461cc53851ca323b4dfc9937cab0e41 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Tue, 5 Mar 2024 06:44:41 +0100 -Subject: [PATCH 19/33] net: bridge: Ignore router ports when forwarding L2 +Subject: [PATCH 19/34] net: bridge: Ignore router ports when forwarding L2 multicast Organization: Addiva Elektronik diff --git a/patches/linux/6.6.52/0020-net-dsa-Support-EtherType-based-priority-overrides.patch b/patches/linux/6.6.52/0020-net-dsa-Support-EtherType-based-priority-overrides.patch index ec3cd12b..ea8f8c14 100644 --- a/patches/linux/6.6.52/0020-net-dsa-Support-EtherType-based-priority-overrides.patch +++ b/patches/linux/6.6.52/0020-net-dsa-Support-EtherType-based-priority-overrides.patch @@ -1,9 +1,10 @@ From 3c9b05198e0b7193f2dcddc1860cd77f0adbc3a2 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Thu, 21 Mar 2024 19:12:15 +0100 -Subject: [PATCH 20/33] net: dsa: Support EtherType based priority overrides +Subject: [PATCH 20/34] net: dsa: Support EtherType based priority overrides Organization: Addiva Elektronik +Signed-off-by: Joachim Wiberg --- include/net/dsa.h | 4 ++++ net/dsa/slave.c | 56 +++++++++++++++++++++++++++++++++++++++++++++-- diff --git a/patches/linux/6.6.52/0021-net-dsa-mv88e6xxx-Support-EtherType-based-priority-o.patch b/patches/linux/6.6.52/0021-net-dsa-mv88e6xxx-Support-EtherType-based-priority-o.patch index 5623ccd4..f8428e41 100644 --- a/patches/linux/6.6.52/0021-net-dsa-mv88e6xxx-Support-EtherType-based-priority-o.patch +++ b/patches/linux/6.6.52/0021-net-dsa-mv88e6xxx-Support-EtherType-based-priority-o.patch @@ -1,10 +1,11 @@ From 333134a4ff2b8dd7fb00a75560254de96d1082ad Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Fri, 22 Mar 2024 16:15:43 +0100 -Subject: [PATCH 21/33] net: dsa: mv88e6xxx: Support EtherType based priority +Subject: [PATCH 21/34] net: dsa: mv88e6xxx: Support EtherType based priority overrides Organization: Addiva Elektronik +Signed-off-by: Joachim Wiberg --- drivers/net/dsa/mv88e6xxx/chip.c | 64 +++++++++++++++++++++++++++++ drivers/net/dsa/mv88e6xxx/chip.h | 21 ++++++++++ diff --git a/patches/linux/6.6.52/0022-net-phy-Do-not-resume-PHY-when-attaching.patch b/patches/linux/6.6.52/0022-net-phy-Do-not-resume-PHY-when-attaching.patch index ea5a2b75..a8cace3d 100644 --- a/patches/linux/6.6.52/0022-net-phy-Do-not-resume-PHY-when-attaching.patch +++ b/patches/linux/6.6.52/0022-net-phy-Do-not-resume-PHY-when-attaching.patch @@ -1,7 +1,7 @@ From cdddc24c05cedc0d0fabc48da17ec26aeb7c1ef9 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Wed, 27 Mar 2024 10:10:19 +0100 -Subject: [PATCH 22/33] net: phy: Do not resume PHY when attaching +Subject: [PATCH 22/34] net: phy: Do not resume PHY when attaching Organization: Addiva Elektronik The PHY should not start negotiating with its link-partner until @@ -15,6 +15,8 @@ Otherwise, drivers that attached to their PHYs during probing (e.g. DSA) would end up with a physical link being established, even though the corresponding interface was still administratively down. + +Signed-off-by: Joachim Wiberg --- drivers/net/phy/phy_device.c | 1 - 1 file changed, 1 deletion(-) diff --git a/patches/linux/6.6.52/0023-net-dsa-mv88e6xxx-Improve-indirect-register-access-p.patch b/patches/linux/6.6.52/0023-net-dsa-mv88e6xxx-Improve-indirect-register-access-p.patch index b03d84a1..a264a5a5 100644 --- a/patches/linux/6.6.52/0023-net-dsa-mv88e6xxx-Improve-indirect-register-access-p.patch +++ b/patches/linux/6.6.52/0023-net-dsa-mv88e6xxx-Improve-indirect-register-access-p.patch @@ -1,7 +1,7 @@ From 1ec21a3fc54fb447501fd7edbf692b00a31fe3ec Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Wed, 27 Mar 2024 15:52:43 +0100 -Subject: [PATCH 23/33] net: dsa: mv88e6xxx: Improve indirect register access +Subject: [PATCH 23/34] net: dsa: mv88e6xxx: Improve indirect register access perf on 6393 Organization: Addiva Elektronik @@ -13,6 +13,8 @@ previous families). Therefore, add a new set of SMI operations which remaps accesses to such registers to the corresponding directly addressable register. All other accesses use the regular indirect interface. + +Signed-off-by: Joachim Wiberg --- drivers/net/dsa/mv88e6xxx/chip.c | 7 +++ drivers/net/dsa/mv88e6xxx/global1.h | 3 ++ diff --git a/patches/linux/6.6.52/0024-net-bridge-drop-delay-for-applying-strict-multicast-.patch b/patches/linux/6.6.52/0024-net-bridge-drop-delay-for-applying-strict-multicast-.patch index c461c2a9..bb32c149 100644 --- a/patches/linux/6.6.52/0024-net-bridge-drop-delay-for-applying-strict-multicast-.patch +++ b/patches/linux/6.6.52/0024-net-bridge-drop-delay-for-applying-strict-multicast-.patch @@ -1,7 +1,7 @@ From 5d7be493dcaa75ee69d521043062389d7772f8dc Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Thu, 4 Apr 2024 16:36:30 +0200 -Subject: [PATCH 24/33] net: bridge: drop delay for applying strict multicast +Subject: [PATCH 24/34] net: bridge: drop delay for applying strict multicast filtering Organization: Addiva Elektronik diff --git a/patches/linux/6.6.52/0025-net-dsa-mv88e6xxx-Honor-ports-being-managed-via-in-b.patch b/patches/linux/6.6.52/0025-net-dsa-mv88e6xxx-Honor-ports-being-managed-via-in-b.patch index 2f840f6c..270f9a5b 100644 --- a/patches/linux/6.6.52/0025-net-dsa-mv88e6xxx-Honor-ports-being-managed-via-in-b.patch +++ b/patches/linux/6.6.52/0025-net-dsa-mv88e6xxx-Honor-ports-being-managed-via-in-b.patch @@ -1,7 +1,7 @@ From 492a824661dbc188b5abeb7434b5cf67c2016415 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Mon, 22 Apr 2024 23:18:01 +0200 -Subject: [PATCH 25/33] net: dsa: mv88e6xxx: Honor ports being managed via +Subject: [PATCH 25/34] net: dsa: mv88e6xxx: Honor ports being managed via in-band-status Organization: Addiva Elektronik @@ -13,6 +13,8 @@ USXGMII autoneg) This state is the default set up by mv88e6xxx_port_setup_mac(), so all we have to do is to make the phylink MAC callbacks no-ops in cases when in-band-status is being used. + +Signed-off-by: Joachim Wiberg --- drivers/net/dsa/mv88e6xxx/chip.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/patches/linux/6.6.52/0026-net-dsa-mv88e6xxx-Fix-port-policy-config-on-6393X.patch b/patches/linux/6.6.52/0026-net-dsa-mv88e6xxx-Fix-port-policy-config-on-6393X.patch index 012ea284..ae828188 100644 --- a/patches/linux/6.6.52/0026-net-dsa-mv88e6xxx-Fix-port-policy-config-on-6393X.patch +++ b/patches/linux/6.6.52/0026-net-dsa-mv88e6xxx-Fix-port-policy-config-on-6393X.patch @@ -1,7 +1,7 @@ From c9c9597a47b00b720f5223c83ab05bb89481eda8 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Wed, 24 Apr 2024 21:35:26 +0200 -Subject: [PATCH 26/33] net: dsa: mv88e6xxx: Fix port policy config on 6393X +Subject: [PATCH 26/34] net: dsa: mv88e6xxx: Fix port policy config on 6393X Organization: Addiva Elektronik mv88e6393x_port_policy_{read,write} expect the `pointer` argument to @@ -16,6 +16,7 @@ never enabled on DSA ports, which broke standalone port isolation in multichip switch trees made up of 6393X decices. Fixes: 6584b26020fc ("net: dsa: mv88e6xxx: implement .port_set_policy for Amethyst") +Signed-off-by: Joachim Wiberg --- drivers/net/dsa/mv88e6xxx/port.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/linux/6.6.52/0027-net-dsa-mv88e6xxx-Limit-rsvd2cpu-policy-to-user-port.patch b/patches/linux/6.6.52/0027-net-dsa-mv88e6xxx-Limit-rsvd2cpu-policy-to-user-port.patch index 834a3c2c..bf86c547 100644 --- a/patches/linux/6.6.52/0027-net-dsa-mv88e6xxx-Limit-rsvd2cpu-policy-to-user-port.patch +++ b/patches/linux/6.6.52/0027-net-dsa-mv88e6xxx-Limit-rsvd2cpu-policy-to-user-port.patch @@ -1,7 +1,7 @@ From 4ff224b5f5de1347a1f686aa85cb918a7db18879 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Wed, 24 Apr 2024 22:41:04 +0200 -Subject: [PATCH 27/33] net: dsa: mv88e6xxx: Limit rsvd2cpu policy to user +Subject: [PATCH 27/34] net: dsa: mv88e6xxx: Limit rsvd2cpu policy to user ports on 6393X Organization: Addiva Elektronik @@ -29,6 +29,8 @@ Before this change, due to rsvd2cpu being enabled on the CPU port, the switch would try to trap it back to the CPU. Given that the CPU is trusted, instead assume that it indeed meant for the packet to be forwarded like any other. + +Signed-off-by: Joachim Wiberg --- drivers/net/dsa/mv88e6xxx/port.c | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/patches/linux/6.6.52/0028-usb-core-adjust-log-level-for-unauthorized-devices.patch b/patches/linux/6.6.52/0028-usb-core-adjust-log-level-for-unauthorized-devices.patch index 49edf415..7c0f4db7 100644 --- a/patches/linux/6.6.52/0028-usb-core-adjust-log-level-for-unauthorized-devices.patch +++ b/patches/linux/6.6.52/0028-usb-core-adjust-log-level-for-unauthorized-devices.patch @@ -1,7 +1,7 @@ From f0d4beabe769fec594b309c3f1ebb79cfdbede8b Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Mon, 29 Apr 2024 15:14:51 +0200 -Subject: [PATCH 28/33] usb: core: adjust log level for unauthorized devices +Subject: [PATCH 28/34] usb: core: adjust log level for unauthorized devices Organization: Addiva Elektronik The fact that a USB device currently is not authorized is not an error, diff --git a/patches/linux/6.6.52/0029-net-dsa-mv88e6xxx-Grab-register-lock-during-counter-.patch b/patches/linux/6.6.52/0029-net-dsa-mv88e6xxx-Grab-register-lock-during-counter-.patch index 32d60306..7a140a38 100644 --- a/patches/linux/6.6.52/0029-net-dsa-mv88e6xxx-Grab-register-lock-during-counter-.patch +++ b/patches/linux/6.6.52/0029-net-dsa-mv88e6xxx-Grab-register-lock-during-counter-.patch @@ -1,7 +1,7 @@ From 5f96d718c850084504c53ec0b8d9fcf75ea9996c Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Wed, 15 May 2024 13:50:58 +0200 -Subject: [PATCH 29/33] net: dsa: mv88e6xxx: Grab register lock during counter +Subject: [PATCH 29/34] net: dsa: mv88e6xxx: Grab register lock during counter snapshotting Organization: Addiva Elektronik @@ -9,6 +9,8 @@ This was missing for the standard counter groups. Since no caller already holds the lock, opt for pushing the locking down into mv88e6xxx_stats_snapshot() rather than having it duplicated at each call site. + +Signed-off-by: Joachim Wiberg --- drivers/net/dsa/mv88e6xxx/chip.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/patches/linux/6.6.52/0030-net-bridge-Differentiate-MDB-additions-from-modifica.patch b/patches/linux/6.6.52/0030-net-bridge-Differentiate-MDB-additions-from-modifica.patch index 344b69e2..7bdf519c 100644 --- a/patches/linux/6.6.52/0030-net-bridge-Differentiate-MDB-additions-from-modifica.patch +++ b/patches/linux/6.6.52/0030-net-bridge-Differentiate-MDB-additions-from-modifica.patch @@ -1,7 +1,7 @@ From 6d4c436335003259cc02a0f015fd3d1d54e988a2 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Thu, 16 May 2024 14:51:54 +0200 -Subject: [PATCH 30/33] net: bridge: Differentiate MDB additions from +Subject: [PATCH 30/34] net: bridge: Differentiate MDB additions from modifications Organization: Addiva Elektronik @@ -21,6 +21,8 @@ generated. Therefore, discriminate new groups from changes to existing groups by introducing a RTM_SETMDB events to be used in the latter scenario. + +Signed-off-by: Joachim Wiberg --- include/uapi/linux/rtnetlink.h | 2 ++ net/bridge/br_mdb.c | 4 ++-- diff --git a/patches/linux/6.6.52/0031-net-dsa-tag_dsa-Use-tag-priority-as-initial-skb-prio.patch b/patches/linux/6.6.52/0031-net-dsa-tag_dsa-Use-tag-priority-as-initial-skb-prio.patch index d984d385..285ec81d 100644 --- a/patches/linux/6.6.52/0031-net-dsa-tag_dsa-Use-tag-priority-as-initial-skb-prio.patch +++ b/patches/linux/6.6.52/0031-net-dsa-tag_dsa-Use-tag-priority-as-initial-skb-prio.patch @@ -1,7 +1,7 @@ From c333c612688d5e974b95fcf4b04f185d7cf4f80d Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Tue, 28 May 2024 10:38:42 +0200 -Subject: [PATCH 31/33] net: dsa: tag_dsa: Use tag priority as initial +Subject: [PATCH 31/34] net: dsa: tag_dsa: Use tag priority as initial skb->priority Organization: Addiva Elektronik @@ -19,6 +19,8 @@ Ideally we could then map this priority to an internal one, like we can do with an "ingress-qos-map" on VLAN interfaces. Until that is implemented, support the setup that is likely to be the most common; a 1:1 mapping from FPri to skb->priority. + +Signed-off-by: Joachim Wiberg --- net/dsa/tag_dsa.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/patches/linux/6.6.52/0032-net-dsa-mv88e6xxx-Add-mqprio-qdisc-support.patch b/patches/linux/6.6.52/0032-net-dsa-mv88e6xxx-Add-mqprio-qdisc-support.patch index 188a73b0..db8c167e 100644 --- a/patches/linux/6.6.52/0032-net-dsa-mv88e6xxx-Add-mqprio-qdisc-support.patch +++ b/patches/linux/6.6.52/0032-net-dsa-mv88e6xxx-Add-mqprio-qdisc-support.patch @@ -1,7 +1,7 @@ From 18c025745fd8b8c9b3e688e9d78668a56cf71217 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Tue, 28 May 2024 11:04:22 +0200 -Subject: [PATCH 32/33] net: dsa: mv88e6xxx: Add mqprio qdisc support +Subject: [PATCH 32/34] net: dsa: mv88e6xxx: Add mqprio qdisc support Organization: Addiva Elektronik Add support for attaching mqprio qdisc's to mv88e6xxx ports and use @@ -24,6 +24,8 @@ are effectively only specifying the QPri. Since FPri is always a 3-bit field, even on older chips with only 4 physical queues, always report 8 queues and let the chip's policy handle the mapping down to the "real" number. + +Signed-off-by: Joachim Wiberg --- drivers/net/dsa/mv88e6xxx/chip.c | 70 ++++++++++++++++++++++++++++++++ net/dsa/tag_dsa.c | 4 +- diff --git a/patches/linux/6.6.52/0033-net-dsa-mv88e6xxx-Use-VLAN-prio-over-IP-when-both-ar.patch b/patches/linux/6.6.52/0033-net-dsa-mv88e6xxx-Use-VLAN-prio-over-IP-when-both-ar.patch index 527b5a89..910a90ff 100644 --- a/patches/linux/6.6.52/0033-net-dsa-mv88e6xxx-Use-VLAN-prio-over-IP-when-both-ar.patch +++ b/patches/linux/6.6.52/0033-net-dsa-mv88e6xxx-Use-VLAN-prio-over-IP-when-both-ar.patch @@ -1,7 +1,7 @@ From f2d4ff12c7a0e644cbeac6675b755fb4a87b362a Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Wed, 29 May 2024 13:20:41 +0200 -Subject: [PATCH 33/33] net: dsa: mv88e6xxx: Use VLAN prio over IP when both +Subject: [PATCH 33/34] net: dsa: mv88e6xxx: Use VLAN prio over IP when both are available Organization: Addiva Elektronik @@ -22,6 +22,8 @@ main reasons for choosing the new default: packet's priority. As the packet then moves through the network core over trusted VLAN trunks, the packet should keep its original priority, independent of what inner protocol fields may indicate. + +Signed-off-by: Joachim Wiberg --- drivers/net/dsa/mv88e6xxx/chip.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/patches/linux/6.6.52/0034-net-dsa-mb88e6xxx-use-EOPNOTSUPP-for-unsupported-fla.patch b/patches/linux/6.6.52/0034-net-dsa-mb88e6xxx-use-EOPNOTSUPP-for-unsupported-fla.patch new file mode 100644 index 00000000..140220da --- /dev/null +++ b/patches/linux/6.6.52/0034-net-dsa-mb88e6xxx-use-EOPNOTSUPP-for-unsupported-fla.patch @@ -0,0 +1,43 @@ +From ceaaa4f44f9b3ec82c4e0a24c2322aae58fa3aa0 Mon Sep 17 00:00:00 2001 +From: Joachim Wiberg +Date: Wed, 6 Nov 2024 15:39:33 +0100 +Subject: [PATCH 34/34] net: dsa: mb88e6xxx: use EOPNOTSUPP for unsupported + flags +Organization: Addiva Elektronik + +Make sure to return correct error code for unsupported flags, and +propagate any error. + +Follow-up to a5cf5c0 + +Signed-off-by: Joachim Wiberg +--- + drivers/net/dsa/mv88e6xxx/leds.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/drivers/net/dsa/mv88e6xxx/leds.c b/drivers/net/dsa/mv88e6xxx/leds.c +index b2a55d96b506..fe1ed3ed2a8a 100644 +--- a/drivers/net/dsa/mv88e6xxx/leds.c ++++ b/drivers/net/dsa/mv88e6xxx/leds.c +@@ -99,7 +99,7 @@ static int mv88e6393x_led_flags_to_mode(struct mv88e6xxx_led *led, unsigned long + return i; + } + +- return -EINVAL; ++ return -EOPNOTSUPP; + } + + static int mv88e6393x_led_mode_to_flags(struct mv88e6xxx_led *led, u8 mode, +@@ -216,6 +216,9 @@ static int mv88e6393x_led_hw_control_set(struct mv88e6xxx_led *led, + { + int mode = mv88e6393x_led_flags_to_mode(led, flags); + ++ if (mode < 0) ++ return mode; ++ + return mv88e6393x_led_set(led, mode); + } + +-- +2.43.0 +