Frequent TX timeouts on a MT7623 (MT7530)

Kristian Evensen kristian.evensen at gmail.com
Fri Nov 10 04:20:04 PST 2017


Hi Sean,

On Fri, Nov 10, 2017 at 10:55 AM, Sean Wang <sean.wang at mediatek.com> wrote:
> One reason for skb watchdog timeout might be that the whole TX patch is
> enabling flow control on each joint, which makes the internal hardware
> circuit queue got full and then would cause the hardware can't serve
> following incoming packets and can't send TX complete interrupt on time.
>
> You could disable FC between GMAC and MT7530 switch, just by remove the
> setup with PMCR_RX_FC_EN in the line.
>
> https://elixir.free-electrons.com/linux/latest/source/drivers/net/dsa/mt7530.c#L686
>
> But so far I have no much idea why it also happens in low rate.

One of my earlier fixes (for MT7621 though) was to disable the pause
frame and this did make the switch a lot more stable. I will try to
remove the PMCR_RX_FC_EN and see what happens, and let you know. Just
out of curiosity, do you know what would be the equivalent
bit/register with the mt7621? Then I can test this on more devices.

-Kristian



More information about the Linux-mediatek mailing list