回复: 回复: [PATCH] net: stmmac: enable MAC after MTL configuring
From: Fan Hailong/范海龙
Date: Sat Oct 19 2024 - 21:46:11 EST
Hi
Please find new patch in attachments, thanks.
-----邮件原件-----
发件人: Andrew Lunn <andrew@xxxxxxx>
发送时间: 2024年10月19日 1:57
收件人: Fan Hailong/范海龙 <hailong.fan@xxxxxxxxxxxx>
抄送: Simon Horman <horms@xxxxxxxxxx>; 2694439648@xxxxxx; alexandre.torgue@xxxxxxxxxxx; joabreu@xxxxxxxxxxxx; davem@xxxxxxxxxxxxx; edumazet@xxxxxxxxxx; kuba@xxxxxxxxxx; pabeni@xxxxxxxxxx; mcoquelin.stm32@xxxxxxxxx; netdev@xxxxxxxxxxxxxxx; linux-stm32@xxxxxxxxxxxxxxxxxxxxxxxxxxxx; linux-arm-kernel@xxxxxxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
主题: Re: 回复: [PATCH] net: stmmac: enable MAC after MTL configuring
On Fri, Oct 18, 2024 at 01:15:30AM +0000, Fan Hailong/范海龙 wrote:
> Hi
>
> For example, ETH is directly connected to the switch, which never power down and sends broadcast packets at regular intervals.
> During the process of opening ETH, data may flow into the MTL FIFO, once MAC RX is enabled.
> and then, MTL will be set, such as FIFO size.
> Once enable DMA, There is a certain probability that DMA will read incorrect data from MTL FIFO, causing DMA to hang up.
> By read DMA_Debug_Status, you can be observed that the RPS remains at a certain value forever.
> The correct process should be to configure MAC/MTL/DMA before enabling DMA/MAC
What Simon is asking for is that this is part of the commit message.
Please also don't top post.
Andrew
---
pw-bot: cr
Attachment:
0001-net-stmmac-enable-MAC-after-MTL-configuring.patch
Description: 0001-net-stmmac-enable-MAC-after-MTL-configuring.patch