netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bhadram Varka <vbhadram@nvidia.com>
To: "Lars P (Mailing List Account)" <lists@bofh.nu>
Cc: "Joao.Pinto@synopsys.com" <Joao.Pinto@synopsys.com>,
	"peppe.cavallaro@st.com" <peppe.cavallaro@st.com>,
	linux-netdev <netdev@vger.kernel.org>
Subject: RE: NETDEV WATCHDOG: eth0 (dwc-eth-dwmac): transmit queue 1 timed out
Date: Fri, 1 Dec 2017 15:49:48 +0000	[thread overview]
Message-ID: <c41d3ab4ff694c5e952c65875c1e1784@bgmail102.nvidia.com> (raw)
In-Reply-To: <CADnJP=uxr=tfpP26Z2b6g--TK1cX+f3Qf=W0Q9HmezfHXVXfhQ@mail.gmail.com>

Hi Lars,

> -----Original Message-----
> From: netdev-owner@vger.kernel.org [mailto:netdev-
> owner@vger.kernel.org] On Behalf Of Lars P (Mailing List Account)
> Sent: Friday, December 01, 2017 9:05 PM
> To: Bhadram Varka <vbhadram@nvidia.com>
> Cc: Joao.Pinto@synopsys.com; peppe.cavallaro@st.com; linux-netdev
> <netdev@vger.kernel.org>
> Subject: Re: NETDEV WATCHDOG: eth0 (dwc-eth-dwmac): transmit queue 1
> timed out
> 
> Hi Bhadram,
> 
> Does the Tegra by any chance have TSO enabled on multiple TX-DMA
> channels ?

Yes. TSO enabled for multiple TX DMA channels.

> I recently noticed a second TSO bug in the stmmac while making the patch
> "stmmac: reset last TSO segment size after device open".
> 
> The last-used MSS setting in TSO is tracked as a device-global variable and not
> per TX queue. Using TSO on tx queue 0 will record mss to priv->mss and if we
> later use TSO on tx queue 1 with the same gso_size then the driver will not
> use a context descriptor to set the MSS size for this queue. This probably
> means that the TSO controller in channel 1 goes nuts with an undefined mss
> setting.

I believe it would be better we can make the MSS on per queue basis instead of getting through global variable.

Thanks,
Bhadram.
> BR,
>  Lars Persson
> 
> On Mon, Nov 20, 2017 at 7:38 AM, Bhadram Varka <vbhadram@nvidia.com>
> wrote:
> > Hi Joao/Peppe,
> >
> > Observed this issue more frequently with multi-channel case. Am I missing
> something in DT ?
> > Please help here to understand the issue.
> >
> > Thanks,
> > Bhadram
> >
> > -----Original Message-----
> > From: Bhadram Varka
> > Sent: Thursday, November 16, 2017 9:41 AM
> > To: linux-netdev <netdev@vger.kernel.org>
> > Subject: NETDEV WATCHDOG: eth0 (dwc-eth-dwmac): transmit queue 1
> timed
> > out
> >
> > Hi,
> >
> > I am trying to enable multi-queue in Tegra186 EQOS (which has support for
> 4 channels). Observed below netdev watchdog warning. Its easily reproable
> with iperf test.
> > In normal ping scenario this is not observed. I did not observe any issue if
> we disable TSO. Looks like issue in stmmac_tso_xmit() in multi-channel
> scenario.
> >

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------

      reply	other threads:[~2017-12-01 15:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-16  4:11 NETDEV WATCHDOG: eth0 (dwc-eth-dwmac): transmit queue 1 timed out Bhadram Varka
2017-11-20  6:38 ` Bhadram Varka
2017-11-20 13:06   ` Giuseppe CAVALLARO
2017-11-20 14:22     ` Bhadram Varka
2017-11-23  6:27       ` Giuseppe CAVALLARO
2017-12-01 15:39         ` Bhadram Varka
2017-12-02 13:19           ` Giuseppe CAVALLARO
2017-12-01 15:34   ` Lars P (Mailing List Account)
2017-12-01 15:49     ` Bhadram Varka [this message]

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=c41d3ab4ff694c5e952c65875c1e1784@bgmail102.nvidia.com \
    --to=vbhadram@nvidia.com \
    --cc=Joao.Pinto@synopsys.com \
    --cc=lists@bofh.nu \
    --cc=netdev@vger.kernel.org \
    --cc=peppe.cavallaro@st.com \
    /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;
as well as URLs for NNTP newsgroup(s).