* Regression in KSZ9477 dsa driver - KSZ9567 et al. do not support EEE
@ 2024-08-05 12:15 Martin Whitaker
2024-08-05 20:54 ` Jakub Kicinski
0 siblings, 1 reply; 4+ messages in thread
From: Martin Whitaker @ 2024-08-05 12:15 UTC (permalink / raw)
To: woojung.huh, UNGLinuxDriver; +Cc: netdev
I have an embedded processor board running Linux that incorporates a
KSZ9567 ethernet switch. When using Linux 6.1 I can establish a stable
connection between two of these boards. When using Linux 6.6, the link
repeatedly drops and reconnects every few seconds.
From bisection, this bug was introduced in the patch series "net: add
EEE support for KSZ9477 switch family" which was merged in commit
9b0bf4f77162.
As noted in the errata for these devices, EEE support is not fully
operational in the KSZ9477, KSZ9567, KSZ9896, and KSZ9897 devices,
causing link drops when connected to another device that supports EEE.
A fix for this regression was merged in commit 08c6d8bae48c2, but only
for the KSZ9477. This fix should be extended to the other affected
devices as follows:
diff --git a/drivers/net/dsa/microchip/ksz_common.c
b/drivers/net/dsa/microchip/ksz_common.c
index 419476d07fa2..091dae6ac921 100644
--- a/drivers/net/dsa/microchip/ksz_common.c
+++ b/drivers/net/dsa/microchip/ksz_common.c
@@ -2346,6 +2346,9 @@ static u32 ksz_get_phy_flags(struct dsa_switch
*ds, int port)
return MICREL_KSZ8_P1_ERRATA;
break;
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
I have verified this fixes the bug for the KSZ9567 on my board.
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: Regression in KSZ9477 dsa driver - KSZ9567 et al. do not support EEE
2024-08-05 12:15 Regression in KSZ9477 dsa driver - KSZ9567 et al. do not support EEE Martin Whitaker
@ 2024-08-05 20:54 ` Jakub Kicinski
2024-08-06 5:08 ` Oleksij Rempel
0 siblings, 1 reply; 4+ messages in thread
From: Jakub Kicinski @ 2024-08-05 20:54 UTC (permalink / raw)
To: o.rempel, lukma; +Cc: Martin Whitaker, woojung.huh, UNGLinuxDriver, netdev
On Mon, 5 Aug 2024 13:15:49 +0100 Martin Whitaker wrote:
> I have an embedded processor board running Linux that incorporates a
> KSZ9567 ethernet switch. When using Linux 6.1 I can establish a stable
> connection between two of these boards. When using Linux 6.6, the link
> repeatedly drops and reconnects every few seconds.
>
> From bisection, this bug was introduced in the patch series "net: add
> EEE support for KSZ9477 switch family" which was merged in commit
> 9b0bf4f77162.
>
> As noted in the errata for these devices, EEE support is not fully
> operational in the KSZ9477, KSZ9567, KSZ9896, and KSZ9897 devices,
> causing link drops when connected to another device that supports EEE.
>
> A fix for this regression was merged in commit 08c6d8bae48c2, but only
> for the KSZ9477. This fix should be extended to the other affected
> devices as follows:
Thanks for the analysis, adding to CC the folks who wrote the commits
you mention.
> diff --git a/drivers/net/dsa/microchip/ksz_common.c
> b/drivers/net/dsa/microchip/ksz_common.c
> index 419476d07fa2..091dae6ac921 100644
> --- a/drivers/net/dsa/microchip/ksz_common.c
> +++ b/drivers/net/dsa/microchip/ksz_common.c
> @@ -2346,6 +2346,9 @@ static u32 ksz_get_phy_flags(struct dsa_switch
> *ds, int port)
> return MICREL_KSZ8_P1_ERRATA;
> break;
> 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
>
> I have verified this fixes the bug for the KSZ9567 on my board.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Regression in KSZ9477 dsa driver - KSZ9567 et al. do not support EEE
2024-08-05 20:54 ` Jakub Kicinski
@ 2024-08-06 5:08 ` Oleksij Rempel
2024-08-06 8:12 ` Arun.Ramadoss
0 siblings, 1 reply; 4+ messages in thread
From: Oleksij Rempel @ 2024-08-06 5:08 UTC (permalink / raw)
To: Jakub Kicinski
Cc: lukma, Martin Whitaker, woojung.huh, UNGLinuxDriver, netdev
Hi Martin,
On Mon, Aug 05, 2024 at 01:54:55PM -0700, Jakub Kicinski wrote:
> On Mon, 5 Aug 2024 13:15:49 +0100 Martin Whitaker wrote:
> > I have an embedded processor board running Linux that incorporates a
> > KSZ9567 ethernet switch. When using Linux 6.1 I can establish a stable
> > connection between two of these boards. When using Linux 6.6, the link
> > repeatedly drops and reconnects every few seconds.
> >
> > From bisection, this bug was introduced in the patch series "net: add
> > EEE support for KSZ9477 switch family" which was merged in commit
> > 9b0bf4f77162.
> >
> > As noted in the errata for these devices, EEE support is not fully
> > operational in the KSZ9477, KSZ9567, KSZ9896, and KSZ9897 devices,
> > causing link drops when connected to another device that supports EEE.
> >
> > A fix for this regression was merged in commit 08c6d8bae48c2, but only
> > for the KSZ9477. This fix should be extended to the other affected
> > devices as follows:
>
> Thanks for the analysis, adding to CC the folks who wrote the commits
> you mention.
Thank you!
> > diff --git a/drivers/net/dsa/microchip/ksz_common.c
> > b/drivers/net/dsa/microchip/ksz_common.c
> > index 419476d07fa2..091dae6ac921 100644
> > --- a/drivers/net/dsa/microchip/ksz_common.c
> > +++ b/drivers/net/dsa/microchip/ksz_common.c
> > @@ -2346,6 +2346,9 @@ static u32 ksz_get_phy_flags(struct dsa_switch
> > *ds, int port)
> > return MICREL_KSZ8_P1_ERRATA;
> > break;
> > 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
> >
> > I have verified this fixes the bug for the KSZ9567 on my board.
I can confirm it, Microchip officially removed EEE support from the
datasheets for this chips and extended errata documentations.
KSZ9567S-Errata-DS80000756.pdf
Module 4: Energy Efficient Ethernet (EEE) feature select must be manually disabled
KSZ9896C-Errata-DS80000757.pdf
Module 3: Energy Efficient Ethernet (EEE) feature select must be manually disabled
KSZ9897S-Errata-DS80000759.pdf
Module 4: Energy Efficient Ethernet (EEE) feature select must be manually disabled
Would you like to send this patch against net and add references to this erratum
to the code?
Regards,
Oleksij
--
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] 4+ messages in thread
* Re: Regression in KSZ9477 dsa driver - KSZ9567 et al. do not support EEE
2024-08-06 5:08 ` Oleksij Rempel
@ 2024-08-06 8:12 ` Arun.Ramadoss
0 siblings, 0 replies; 4+ messages in thread
From: Arun.Ramadoss @ 2024-08-06 8:12 UTC (permalink / raw)
To: o.rempel, kuba; +Cc: UNGLinuxDriver, Woojung.Huh, netdev, lukma, foss
Hi Oleksij/Martin,
On Tue, 2024-08-06 at 07:08 +0200, Oleksij Rempel wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you
> know the content is safe
>
> Hi Martin,
>
>
>
> I can confirm it, Microchip officially removed EEE support from the
> datasheets for this chips and extended errata documentations.
>
> KSZ9567S-Errata-DS80000756.pdf
> Module 4: Energy Efficient Ethernet (EEE) feature select must be
> manually disabled
>
> KSZ9896C-Errata-DS80000757.pdf
> Module 3: Energy Efficient Ethernet (EEE) feature select must be
> manually disabled
>
> KSZ9897S-Errata-DS80000759.pdf
> Module 4: Energy Efficient Ethernet (EEE) feature select must be
> manually disabled
KSZ8567 Errata - DS80000753.pdf
Module 4: 100BASE-TX Energy Efficient Ethernet (EEE) is subject to link
drop
KSZ8567 which is derivative product of KSZ9477, also has errata. But
unlikely to others, errata states two options,
1. Have a workaround through registers.
2. Disable EEE.
Atleast, for now with this patch set can include KSZ8567 as well for
disabling EEE. May be in future workaround can be implemented.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-08-06 8:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-05 12:15 Regression in KSZ9477 dsa driver - KSZ9567 et al. do not support EEE Martin Whitaker
2024-08-05 20:54 ` Jakub Kicinski
2024-08-06 5:08 ` Oleksij Rempel
2024-08-06 8:12 ` Arun.Ramadoss
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).