netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] net: dsa: microchip: disable EEE for KSZ8567/KSZ9567/KSZ9896/KSZ9897.
@ 2024-08-07 20:52 Martin Whitaker
  2024-08-08  2:44 ` Arun.Ramadoss
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Martin Whitaker @ 2024-08-07 20:52 UTC (permalink / raw)
  To: netdev
  Cc: UNGLinuxDriver, Woojung.Huh, o.rempel, lukma, Arun.Ramadoss, kuba,
	Martin Whitaker

As noted in the device errata [1-8], EEE support is not fully operational
in the KSZ8567, KSZ9477, KSZ9567, KSZ9896, and KSZ9897 devices, causing
link drops when connected to another device that supports EEE. The patch
series "net: add EEE support for KSZ9477 switch family" merged in commit
9b0bf4f77162 caused EEE support to be enabled in these devices. A fix for
this regression for the KSZ9477 alone was merged in commit 08c6d8bae48c2.
This patch extends this fix to the other affected devices.

[1] https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ8567R-Errata-DS80000752.pdf
[2] https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ8567S-Errata-DS80000753.pdf
[3] https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ9477S-Errata-DS80000754.pdf
[4] https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ9567R-Errata-DS80000755.pdf
[5] https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ9567S-Errata-DS80000756.pdf
[6] https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ9896C-Errata-DS80000757.pdf
[7] https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ9897R-Errata-DS80000758.pdf
[8] https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ9897S-Errata-DS80000759.pdf

Fixes: 69d3b36ca045 ("net: dsa: microchip: enable EEE support") # for KSZ8567/KSZ9567/KSZ9896/KSZ9897
Link: https://lore.kernel.org/netdev/137ce1ee-0b68-4c96-a717-c8164b514eec@martin-whitaker.me.uk/
Signed-off-by: Martin Whitaker <foss@martin-whitaker.me.uk>
---
 drivers/net/dsa/microchip/ksz_common.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/drivers/net/dsa/microchip/ksz_common.c b/drivers/net/dsa/microchip/ksz_common.c
index b074b4bb0629..cebc6eaa932b 100644
--- a/drivers/net/dsa/microchip/ksz_common.c
+++ b/drivers/net/dsa/microchip/ksz_common.c
@@ -2578,7 +2578,11 @@ static u32 ksz_get_phy_flags(struct dsa_switch *ds, int port)
 		if (!port)
 			return MICREL_KSZ8_P1_ERRATA;
 		break;
+	case KSZ8567_CHIP_ID:
 	case KSZ9477_CHIP_ID:
+	case KSZ9567_CHIP_ID:
+	case KSZ9896_CHIP_ID:
+	case KSZ9897_CHIP_ID:
 		/* KSZ9477 Errata DS80000754C
 		 *
 		 * Module 4: Energy Efficient Ethernet (EEE) feature select must
@@ -2588,6 +2592,13 @@ static u32 ksz_get_phy_flags(struct dsa_switch *ds, int port)
 		 *   controls. If not disabled, the PHY ports can auto-negotiate
 		 *   to enable EEE, and this feature can cause link drops when
 		 *   linked to another device supporting EEE.
+		 *
+		 * The same item appears in the errata for the KSZ9567, KSZ9896,
+		 * and KSZ9897.
+		 *
+		 * A similar item appears in the errata for the KSZ8567, but
+		 * provides an alternative workaround. For now, use the simple
+		 * workaround of disabling the EEE feature for this device too.
 		 */
 		return MICREL_NO_EEE;
 	}
--
2.41.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH net] net: dsa: microchip: disable EEE for KSZ8567/KSZ9567/KSZ9896/KSZ9897.
  2024-08-07 20:52 [PATCH net] net: dsa: microchip: disable EEE for KSZ8567/KSZ9567/KSZ9896/KSZ9897 Martin Whitaker
@ 2024-08-08  2:44 ` Arun.Ramadoss
  2024-08-08  4:14 ` Oleksij Rempel
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Arun.Ramadoss @ 2024-08-08  2:44 UTC (permalink / raw)
  To: netdev, foss; +Cc: o.rempel, Woojung.Huh, kuba, UNGLinuxDriver, lukma

Hi Martin, 

On Wed, 2024-08-07 at 21:52 +0100, Martin Whitaker wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you
> know the content is safe
> 
> As noted in the device errata [1-8], EEE support is not fully
> operational
> in the KSZ8567, KSZ9477, KSZ9567, KSZ9896, and KSZ9897 devices,
> causing
> link drops when connected to another device that supports EEE. The
> patch
> series "net: add EEE support for KSZ9477 switch family" merged in
> commit
> 9b0bf4f77162 caused EEE support to be enabled in these devices. A fix
> for
> this regression for the KSZ9477 alone was merged in commit
> 08c6d8bae48c2.
> This patch extends this fix to the other affected devices.
> 
> [1] 
> https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ8567R-Errata-DS80000752.pdf
> [2] 
> https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ8567S-Errata-DS80000753.pdf
> [3] 
> https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ9477S-Errata-DS80000754.pdf
> [4] 
> https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ9567R-Errata-DS80000755.pdf
> [5] 
> https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ9567S-Errata-DS80000756.pdf
> [6] 
> https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ9896C-Errata-DS80000757.pdf
> [7] 
> https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ9897R-Errata-DS80000758.pdf
> [8] 
> https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ9897S-Errata-DS80000759.pdf
> 
> Fixes: 69d3b36ca045 ("net: dsa: microchip: enable EEE support") # for
> KSZ8567/KSZ9567/KSZ9896/KSZ9897
> Link: 
> https://lore.kernel.org/netdev/137ce1ee-0b68-4c96-a717-c8164b514eec@martin-whitaker.me.uk/
> Signed-off-by: Martin Whitaker <foss@martin-whitaker.me.uk>

Acked-by: Arun Ramadoss <arun.ramadoss@microchip.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net] net: dsa: microchip: disable EEE for KSZ8567/KSZ9567/KSZ9896/KSZ9897.
  2024-08-07 20:52 [PATCH net] net: dsa: microchip: disable EEE for KSZ8567/KSZ9567/KSZ9896/KSZ9897 Martin Whitaker
  2024-08-08  2:44 ` Arun.Ramadoss
@ 2024-08-08  4:14 ` Oleksij Rempel
  2024-08-08  9:02 ` Lukasz Majewski
  2024-08-08 16:20 ` patchwork-bot+netdevbpf
  3 siblings, 0 replies; 5+ messages in thread
From: Oleksij Rempel @ 2024-08-08  4:14 UTC (permalink / raw)
  To: Martin Whitaker
  Cc: netdev, UNGLinuxDriver, Woojung.Huh, lukma, Arun.Ramadoss, kuba

On Wed, Aug 07, 2024 at 09:52:09PM +0100, Martin Whitaker wrote:
> As noted in the device errata [1-8], EEE support is not fully operational
> in the KSZ8567, KSZ9477, KSZ9567, KSZ9896, and KSZ9897 devices, causing
> link drops when connected to another device that supports EEE. The patch
> series "net: add EEE support for KSZ9477 switch family" merged in commit
> 9b0bf4f77162 caused EEE support to be enabled in these devices. A fix for
> this regression for the KSZ9477 alone was merged in commit 08c6d8bae48c2.
> This patch extends this fix to the other affected devices.
> 
> [1] https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ8567R-Errata-DS80000752.pdf
> [2] https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ8567S-Errata-DS80000753.pdf
> [3] https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ9477S-Errata-DS80000754.pdf
> [4] https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ9567R-Errata-DS80000755.pdf
> [5] https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ9567S-Errata-DS80000756.pdf
> [6] https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ9896C-Errata-DS80000757.pdf
> [7] https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ9897R-Errata-DS80000758.pdf
> [8] https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ9897S-Errata-DS80000759.pdf
> 
> Fixes: 69d3b36ca045 ("net: dsa: microchip: enable EEE support") # for KSZ8567/KSZ9567/KSZ9896/KSZ9897
> Link: https://lore.kernel.org/netdev/137ce1ee-0b68-4c96-a717-c8164b514eec@martin-whitaker.me.uk/
> Signed-off-by: Martin Whitaker <foss@martin-whitaker.me.uk>

Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de>

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net] net: dsa: microchip: disable EEE for KSZ8567/KSZ9567/KSZ9896/KSZ9897.
  2024-08-07 20:52 [PATCH net] net: dsa: microchip: disable EEE for KSZ8567/KSZ9567/KSZ9896/KSZ9897 Martin Whitaker
  2024-08-08  2:44 ` Arun.Ramadoss
  2024-08-08  4:14 ` Oleksij Rempel
@ 2024-08-08  9:02 ` Lukasz Majewski
  2024-08-08 16:20 ` patchwork-bot+netdevbpf
  3 siblings, 0 replies; 5+ messages in thread
From: Lukasz Majewski @ 2024-08-08  9:02 UTC (permalink / raw)
  To: Martin Whitaker
  Cc: netdev, UNGLinuxDriver, Woojung.Huh, o.rempel, Arun.Ramadoss,
	kuba

[-- Attachment #1: Type: text/plain, Size: 3559 bytes --]

Hi Martin,

> As noted in the device errata [1-8], EEE support is not fully
> operational in the KSZ8567, KSZ9477, KSZ9567, KSZ9896, and KSZ9897
> devices, causing link drops when connected to another device that
> supports EEE. The patch series "net: add EEE support for KSZ9477
> switch family" merged in commit 9b0bf4f77162 caused EEE support to be
> enabled in these devices. A fix for this regression for the KSZ9477
> alone was merged in commit 08c6d8bae48c2. This patch extends this fix
> to the other affected devices.
> 
> [1]
> https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ8567R-Errata-DS80000752.pdf
> [2]
> https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ8567S-Errata-DS80000753.pdf
> [3]
> https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ9477S-Errata-DS80000754.pdf
> [4]
> https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ9567R-Errata-DS80000755.pdf
> [5]
> https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ9567S-Errata-DS80000756.pdf
> [6]
> https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ9896C-Errata-DS80000757.pdf
> [7]
> https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ9897R-Errata-DS80000758.pdf
> [8]
> https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/Errata/KSZ9897S-Errata-DS80000759.pdf
> 
> Fixes: 69d3b36ca045 ("net: dsa: microchip: enable EEE support") # for
> KSZ8567/KSZ9567/KSZ9896/KSZ9897 Link:
> https://lore.kernel.org/netdev/137ce1ee-0b68-4c96-a717-c8164b514eec@martin-whitaker.me.uk/
> Signed-off-by: Martin Whitaker <foss@martin-whitaker.me.uk> ---
>  drivers/net/dsa/microchip/ksz_common.c | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/drivers/net/dsa/microchip/ksz_common.c
> b/drivers/net/dsa/microchip/ksz_common.c index
> b074b4bb0629..cebc6eaa932b 100644 ---
> a/drivers/net/dsa/microchip/ksz_common.c +++
> b/drivers/net/dsa/microchip/ksz_common.c @@ -2578,7 +2578,11 @@
> static u32 ksz_get_phy_flags(struct dsa_switch *ds, int port) if
> (!port) return MICREL_KSZ8_P1_ERRATA;
>  		break;
> +	case KSZ8567_CHIP_ID:
>  	case KSZ9477_CHIP_ID:
> +	case KSZ9567_CHIP_ID:
> +	case KSZ9896_CHIP_ID:
> +	case KSZ9897_CHIP_ID:
>  		/* KSZ9477 Errata DS80000754C
>  		 *
>  		 * Module 4: Energy Efficient Ethernet (EEE) feature
> select must @@ -2588,6 +2592,13 @@ static u32
> ksz_get_phy_flags(struct dsa_switch *ds, int port)
>  		 *   controls. If not disabled, the PHY ports can
> auto-negotiate
>  		 *   to enable EEE, and this feature can cause link
> drops when
>  		 *   linked to another device supporting EEE.
> +		 *
> +		 * The same item appears in the errata for the
> KSZ9567, KSZ9896,
> +		 * and KSZ9897.
> +		 *
> +		 * A similar item appears in the errata for the
> KSZ8567, but
> +		 * provides an alternative workaround. For now, use
> the simple
> +		 * workaround of disabling the EEE feature for this
> device too. */
>  		return MICREL_NO_EEE;
>  	}
> --
> 2.41.1

Reviewed-by: Lukasz Majewski <lukma@denx.de>


Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net] net: dsa: microchip: disable EEE for KSZ8567/KSZ9567/KSZ9896/KSZ9897.
  2024-08-07 20:52 [PATCH net] net: dsa: microchip: disable EEE for KSZ8567/KSZ9567/KSZ9896/KSZ9897 Martin Whitaker
                   ` (2 preceding siblings ...)
  2024-08-08  9:02 ` Lukasz Majewski
@ 2024-08-08 16:20 ` patchwork-bot+netdevbpf
  3 siblings, 0 replies; 5+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-08-08 16:20 UTC (permalink / raw)
  To: Martin Whitaker
  Cc: netdev, UNGLinuxDriver, Woojung.Huh, o.rempel, lukma,
	Arun.Ramadoss, kuba

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Wed,  7 Aug 2024 21:52:09 +0100 you wrote:
> As noted in the device errata [1-8], EEE support is not fully operational
> in the KSZ8567, KSZ9477, KSZ9567, KSZ9896, and KSZ9897 devices, causing
> link drops when connected to another device that supports EEE. The patch
> series "net: add EEE support for KSZ9477 switch family" merged in commit
> 9b0bf4f77162 caused EEE support to be enabled in these devices. A fix for
> this regression for the KSZ9477 alone was merged in commit 08c6d8bae48c2.
> This patch extends this fix to the other affected devices.
> 
> [...]

Here is the summary with links:
  - [net] net: dsa: microchip: disable EEE for KSZ8567/KSZ9567/KSZ9896/KSZ9897.
    https://git.kernel.org/netdev/net/c/0411f73c13af

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-08-08 16:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-07 20:52 [PATCH net] net: dsa: microchip: disable EEE for KSZ8567/KSZ9567/KSZ9896/KSZ9897 Martin Whitaker
2024-08-08  2:44 ` Arun.Ramadoss
2024-08-08  4:14 ` Oleksij Rempel
2024-08-08  9:02 ` Lukasz Majewski
2024-08-08 16:20 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).