From: Sean Wang <sean.wang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
To: Kristian Evensen
<kristian.evensen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: Frequent TX timeouts on a MT7623 (MT7530)
Date: Fri, 10 Nov 2017 17:55:42 +0800 [thread overview]
Message-ID: <1510307742.9363.9.camel@mtkswgap22> (raw)
In-Reply-To: <CAKfDRXjW_7F=hP4-mpn3KOcMYrag+XKWZaNi55FcY905e5XG0A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Fri, 2017-11-10 at 10:00 +0100, Kristian Evensen wrote:
> Hi Sean,
>
> On Fri, Nov 10, 2017 at 4:18 AM, Sean Wang <sean.wang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org> wrote:
> > Do you use both eth0 and eth1 for routing those packets ?
>
> Only eth0, it seems every port on my board is connected to gmac1. I
> found a switch with port mirroring today, so I will take a look to see
> if there is anything interesting going on on layer 2.
>
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.
> -Kristian
>
next prev parent reply other threads:[~2017-11-10 9:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-09 19:35 Frequent TX timeouts on a MT7623 (MT7530) Kristian Evensen
[not found] ` <CAKfDRXjU4wYXBfi=PV5fjsss_-4a2a4M24xKwEOVFXvk9daVTg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-11-10 3:18 ` Sean Wang
2017-11-10 9:00 ` Kristian Evensen
[not found] ` <CAKfDRXjW_7F=hP4-mpn3KOcMYrag+XKWZaNi55FcY905e5XG0A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-11-10 9:55 ` Sean Wang [this message]
2017-11-10 12:20 ` Kristian Evensen
[not found] ` <CAKfDRXiuCaZZ8qj1BU23FtYpRBJJHBj8kxJL3hGCC-syLWpabA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-11-10 19:08 ` Kristian Evensen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1510307742.9363.9.camel@mtkswgap22 \
--to=sean.wang-nus5lvnupcjwk0htik3j/w@public.gmane.org \
--cc=kristian.evensen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox