Skip to contentSkip to conversation

net: stmmac: Fix EST offset for dwmac 5.10

PATCH Applied Kurt Kanzenbach 4 participants 5 messages Feb 20, 2024 – Feb 22, 2024

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: stmmac: Fix EST offset for dwmac 5.10

Fix EST offset for dwmac 5.10.

Currently configuring Qbv doesn't work as expected. The schedule is configured, but never confirmed:

|[ 128.250219] imx-dwmac 428a0000.ethernet eth1: configured EST

The reason seems to be the refactoring of the EST code which set the wrong EST offset for the dwmac 5.10. After fixing this it works as before:

|[  106.359577] imx-dwmac 428a0000.ethernet eth1: configured EST
|[  128.430715] imx-dwmac 428a0000.ethernet eth1: EST: SWOL has been switched

Tested on imx93.

Fixes c3f3b97238f6 ("net: stmmac: Refactor EST implementation")
---
 drivers/net/ethernet/stmicro/stmmac/hwif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/stmicro/stmmac/hwif.c +1 -1
index 1bd34b2a47e8..29367105df54 100644
@@ -224,7 +224,7 @@ static const struct stmmac_hwif_entry {
 		.regs = {
 			.ptp_off = PTP_GMAC4_OFFSET,
 			.mmc_off = MMC_GMAC4_OFFSET,
-			.est_off = EST_XGMAC_OFFSET,
+			.est_off = EST_GMAC4_OFFSET,
 		},
 		.desc = &dwmac4_desc_ops,
 		.dma = &dwmac410_dma_ops,

---
base-commit: 40b9385dd8e6a0515e1c9cd06a277483556b7286
change-id: 20240220-stmmac_est-ea6884f9ba3c

Best regards,

Signature · 1 line
Kurt Kanzenbach <[email protected]>
Reviewed-by on v1 1/1
#1 lore raw

Hi Kurt

Quoted 26 lines · Kurt Kanzenbach

Fix EST offset for dwmac 5.10.

Currently configuring Qbv doesn't work as expected. The schedule is configured, but never confirmed:

|[ 128.250219] imx-dwmac 428a0000.ethernet eth1: configured EST

The reason seems to be the refactoring of the EST code which set the wrong EST offset for the dwmac 5.10. After fixing this it works as before:

|[  106.359577] imx-dwmac 428a0000.ethernet eth1: configured EST
|[  128.430715] imx-dwmac 428a0000.ethernet eth1: EST: SWOL has been switched

Tested on imx93.

Fixes c3f3b97238f6 ("net: stmmac: Refactor EST implementation")
---
 drivers/net/ethernet/stmicro/stmmac/hwif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/stmicro/stmmac/hwif.c +0 -0
index 1bd34b2a47e8..29367105df54 100644

drivers/net/ethernet/stmicro/stmmac/hwif.c static const struct stmmac_hwif_entry { · line 227

Quoted 5 lines
drivers/net/ethernet/stmicro/stmmac/hwif.c +1 -1
@@ -224,7 +224,7 @@ static const struct stmmac_hwif_entry {
 		.regs = {
 			.ptp_off = PTP_GMAC4_OFFSET,
 			.mmc_off = MMC_GMAC4_OFFSET,
-			.est_off = EST_XGMAC_OFFSET,
+			.est_off = EST_GMAC4_OFFSET,

Unfortunate c&p typo indeed. Thanks for fixing it!

-Serge(y)

Quoted 13 lines
drivers/net/ethernet/stmicro/stmmac/hwif.c +0 -1
 		},
 		.desc = &dwmac4_desc_ops,
 		.dma = &dwmac410_dma_ops,
 
---

base-commit: 40b9385dd8e6a0515e1c9cd06a277483556b7286
change-id: 20240220-stmmac_est-ea6884f9ba3c

Best regards,

Signature · 1 line
Kurt Kanzenbach <[email protected]>
#2 lore raw
Quoted 24 lines · Serge Semin

Hi Kurt

Quoted 21 lines · Kurt Kanzenbach

Fix EST offset for dwmac 5.10.

Currently configuring Qbv doesn't work as expected. The schedule is configured, but never confirmed:

|[ 128.250219] imx-dwmac 428a0000.ethernet eth1: configured EST

The reason seems to be the refactoring of the EST code which set the wrong EST offset for the dwmac 5.10. After fixing this it works as before:

|[  106.359577] imx-dwmac 428a0000.ethernet eth1: configured EST
|[  128.430715] imx-dwmac 428a0000.ethernet eth1: EST: SWOL has been switched

Tested on imx93.

Fixes c3f3b97238f6 ("net: stmmac: Refactor EST implementation")
---
 drivers/net/ethernet/stmicro/stmmac/hwif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 12 lines

drivers/net/ethernet/stmicro/stmmac/hwif.c static const struct stmmac_hwif_entry { · line 227

Quoted 10 lines
drivers/net/ethernet/stmicro/stmmac/hwif.c +1 -1
index 1bd34b2a47e8..29367105df54 100644
@@ -224,7 +224,7 @@ static const struct stmmac_hwif_entry {
 		.regs = {
 			.ptp_off = PTP_GMAC4_OFFSET,
 			.mmc_off = MMC_GMAC4_OFFSET,
-			.est_off = EST_XGMAC_OFFSET,
+			.est_off = EST_GMAC4_OFFSET,

Unfortunate c&p typo indeed. Thanks for fixing it!

No problem. I was just wondering why the confirmation message doesn't show up after updating to v6.8-RT :-).

Thanks,
Kurt

#3 lore raw
In reply to Kurt Kanzenbach
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Tue, 20 Feb 2024 09:22:46 +0100 you wrote:

Fix EST offset for dwmac 5.10.

Currently configuring Qbv doesn't work as expected. The schedule is configured, but never confirmed:

|[ 128.250219] imx-dwmac 428a0000.ethernet eth1: configured EST

[...]

Here is the summary with links:
- [net] net: stmmac: Fix EST offset for dwmac 5.10

    https://git.kernel.org/netdev/net/c/90d07e36d400

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
#4 lore raw

PATCH 1/1 net: stmmac: Fix EST offset for dwmac 5.10

In reply to Kurt Kanzenbach

Hi Kurt,

Quoted 14 lines · Kurt Kanzenbach

Fix EST offset for dwmac 5.10.

Currently configuring Qbv doesn't work as expected. The schedule is configured, but never confirmed:

|[ 128.250219] imx-dwmac 428a0000.ethernet eth1: configured EST

The reason seems to be the refactoring of the EST code which set the wrong EST offset for the dwmac 5.10. After fixing this it works as before:

|[  106.359577] imx-dwmac 428a0000.ethernet eth1: configured EST [
|128.430715] imx-dwmac 428a0000.ethernet eth1: EST: SWOL has been
|switched
Quoted 5 lines

Tested on imx93.

Fixes c3f3b97238f6 ("net: stmmac: Refactor EST implementation")

---

Thanks for fixing this. Sorry for the typo.

Best Regards,
Rohan