* [PATCH net] net: stmmac: Fix EST offset for dwmac 5.10
@ 2024-02-20 8:22 Kurt Kanzenbach
2024-02-20 9:20 ` Serge Semin
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Kurt Kanzenbach @ 2024-02-20 8:22 UTC (permalink / raw)
To: Alexandre Torgue, Jose Abreu, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Maxime Coquelin, Andy Shevchenko,
Rohan G Thomas
Cc: Sebastian Andrzej Siewior, netdev, linux-stm32, linux-arm-kernel,
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")
Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
---
drivers/net/ethernet/stmicro/stmmac/hwif.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/stmicro/stmmac/hwif.c b/drivers/net/ethernet/stmicro/stmmac/hwif.c
index 1bd34b2a47e8..29367105df54 100644
--- a/drivers/net/ethernet/stmicro/stmmac/hwif.c
+++ b/drivers/net/ethernet/stmicro/stmmac/hwif.c
@@ -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,
--
Kurt Kanzenbach <kurt@linutronix.de>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH net] net: stmmac: Fix EST offset for dwmac 5.10
2024-02-20 8:22 [PATCH net] net: stmmac: Fix EST offset for dwmac 5.10 Kurt Kanzenbach
@ 2024-02-20 9:20 ` Serge Semin
2024-02-20 9:44 ` Kurt Kanzenbach
2024-02-22 1:20 ` patchwork-bot+netdevbpf
2024-02-22 13:52 ` Rohan G Thomas
2 siblings, 1 reply; 5+ messages in thread
From: Serge Semin @ 2024-02-20 9:20 UTC (permalink / raw)
To: Kurt Kanzenbach
Cc: Alexandre Torgue, Jose Abreu, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Maxime Coquelin, Andy Shevchenko,
Rohan G Thomas, Sebastian Andrzej Siewior, netdev, linux-stm32,
linux-arm-kernel
Hi Kurt
On Tue, Feb 20, 2024 at 09:22:46AM +0100, Kurt Kanzenbach 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
>
> 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")
> Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
> ---
> drivers/net/ethernet/stmicro/stmmac/hwif.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/stmicro/stmmac/hwif.c b/drivers/net/ethernet/stmicro/stmmac/hwif.c
> index 1bd34b2a47e8..29367105df54 100644
> --- a/drivers/net/ethernet/stmicro/stmmac/hwif.c
> +++ b/drivers/net/ethernet/stmicro/stmmac/hwif.c
> @@ -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!
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
-Serge(y)
> },
> .desc = &dwmac4_desc_ops,
> .dma = &dwmac410_dma_ops,
>
> ---
> base-commit: 40b9385dd8e6a0515e1c9cd06a277483556b7286
> change-id: 20240220-stmmac_est-ea6884f9ba3c
>
> Best regards,
> --
> Kurt Kanzenbach <kurt@linutronix.de>
>
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net] net: stmmac: Fix EST offset for dwmac 5.10
2024-02-20 9:20 ` Serge Semin
@ 2024-02-20 9:44 ` Kurt Kanzenbach
0 siblings, 0 replies; 5+ messages in thread
From: Kurt Kanzenbach @ 2024-02-20 9:44 UTC (permalink / raw)
To: Serge Semin
Cc: Alexandre Torgue, Jose Abreu, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Maxime Coquelin, Andy Shevchenko,
Rohan G Thomas, Sebastian Andrzej Siewior, netdev, linux-stm32,
linux-arm-kernel
[-- Attachment #1.1: Type: text/plain, Size: 1604 bytes --]
On Tue Feb 20 2024, Serge Semin wrote:
> Hi Kurt
>
> On Tue, Feb 20, 2024 at 09:22:46AM +0100, Kurt Kanzenbach 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
>>
>> 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")
>> Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
>> ---
>> drivers/net/ethernet/stmicro/stmmac/hwif.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/net/ethernet/stmicro/stmmac/hwif.c b/drivers/net/ethernet/stmicro/stmmac/hwif.c
>> index 1bd34b2a47e8..29367105df54 100644
>> --- a/drivers/net/ethernet/stmicro/stmmac/hwif.c
>> +++ b/drivers/net/ethernet/stmicro/stmmac/hwif.c
>> @@ -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
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]
[-- Attachment #2: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net] net: stmmac: Fix EST offset for dwmac 5.10
2024-02-20 8:22 [PATCH net] net: stmmac: Fix EST offset for dwmac 5.10 Kurt Kanzenbach
2024-02-20 9:20 ` Serge Semin
@ 2024-02-22 1:20 ` patchwork-bot+netdevbpf
2024-02-22 13:52 ` Rohan G Thomas
2 siblings, 0 replies; 5+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-02-22 1:20 UTC (permalink / raw)
To: Kurt Kanzenbach
Cc: alexandre.torgue, joabreu, davem, edumazet, kuba, pabeni,
mcoquelin.stm32, andriy.shevchenko, rohan.g.thomas, bigeasy,
netdev, linux-stm32, linux-arm-kernel
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
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!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH net] net: stmmac: Fix EST offset for dwmac 5.10
2024-02-20 8:22 [PATCH net] net: stmmac: Fix EST offset for dwmac 5.10 Kurt Kanzenbach
2024-02-20 9:20 ` Serge Semin
2024-02-22 1:20 ` patchwork-bot+netdevbpf
@ 2024-02-22 13:52 ` Rohan G Thomas
2 siblings, 0 replies; 5+ messages in thread
From: Rohan G Thomas @ 2024-02-22 13:52 UTC (permalink / raw)
To: kurt
Cc: alexandre.torgue, andriy.shevchenko, bigeasy, davem, edumazet,
joabreu, kuba, linux-arm-kernel, linux-stm32, mcoquelin.stm32,
netdev, pabeni, rohan.g.thomas
Hi Kurt,
On Tue, Feb 20, 2024 at 09:22:46AM +0100, Kurt Kanzenbach 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
>
> 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")
> Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
> ---
Thanks for fixing this. Sorry for the typo.
Best Regards,
Rohan
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-02-22 13:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-20 8:22 [PATCH net] net: stmmac: Fix EST offset for dwmac 5.10 Kurt Kanzenbach
2024-02-20 9:20 ` Serge Semin
2024-02-20 9:44 ` Kurt Kanzenbach
2024-02-22 1:20 ` patchwork-bot+netdevbpf
2024-02-22 13:52 ` Rohan G Thomas
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).