From: Arnd Bergmann <arnd@arndb.de>
To: "Andreas Irestål" <andreas.irestal@axis.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"grant.likely@linaro.org" <grant.likely@linaro.org>,
"robh+dt@kernel.org" <robh+dt@kernel.org>,
"davem@davemloft.net" <davem@davemloft.net>,
"maxime.ripard@free-electrons.com"
<maxime.ripard@free-electrons.com>,
"abrodkin@synopsys.com" <abrodkin@synopsys.com>,
"jeffrey.t.kirsher@intel.com" <jeffrey.t.kirsher@intel.com>,
"ben@decadent.org.uk" <ben@decadent.org.uk>,
"sr@denx.de" <sr@denx.de>,
"jonas.jensen@gmail.com" <jonas.jensen@gmail.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Jesper Nilsson <jespern@axis.com>,
peppe.cavallaro@st.com
Subject: Re: [RFC PATCH] net:Add basic DWC Ethernet QoS Driver
Date: Thu, 08 May 2014 16:26 +0200 [thread overview]
Message-ID: <5261973.l3atPvULh6@wuerfel> (raw)
In-Reply-To: <201405081618.04475.Andreas.Irestal@axis.com>
On Thursday 08 May 2014 16:18:04 Andreas Irestål wrote:
>
> > > +
> > > + /* Set poll wait timeout to 2 seconds */
> > > + dwc_wait = 200;
> > > +
> > > + while (lp->tx_descs[i].tdes3.wr.own) {
> > > + mdelay(10);
> > > + if (!dwc_wait--)
> > > + break;
> > > + }
> >
> > This is really evil: you are blocking the CPU for up to two seconds!
> > You already mentioned that this is work-in-progress, but I guess it has
> > to be a little better than this and do something that doesn't block
> > out the CPU during TX.
> >
>
> It really is, but a 2s lockout is only happening upon TX failure. Anyway, this
> won't be an issue in the final version, since it won't use polling for TX.
Actually I'd expect a 10ms delay for most packets, which is also too much.
Just for scale: at gigabit speed, a 10 *microsecond* delay would be more
appropriate than a 10 milisecond delay. Anyway, it's not important here as
long as you find a proper solution.
Arnd
next prev parent reply other threads:[~2014-05-08 14:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-08 11:49 [RFC PATCH] net:Add basic DWC Ethernet QoS Driver Andreas Irestal
2014-05-08 12:51 ` Arnd Bergmann
2014-05-08 14:18 ` Andreas Irestål
2014-05-08 14:18 ` Andreas Irestål
2014-05-08 14:18 ` Andreas Irestål
2014-05-08 14:26 ` Arnd Bergmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-05-08 12:50 Andreas Irestal
[not found] ` <201405081450.14449.Andreas.Irestal-VrBV9hrLPhE@public.gmane.org>
2014-05-08 17:29 ` David Miller
2014-05-08 17:29 ` David Miller
2014-05-09 6:24 ` Andreas Irestål
2014-05-09 15:19 ` Tobias Klauser
2014-05-10 10:19 ` Anish Khurana
[not found] ` <20140509151946.GM6455-93Khv+1bN0NyDzI6CaY1VQ@public.gmane.org>
2014-05-10 10:38 ` Anish Khurana
2014-05-10 10:38 ` Anish Khurana
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=5261973.l3atPvULh6@wuerfel \
--to=arnd@arndb.de \
--cc=abrodkin@synopsys.com \
--cc=andreas.irestal@axis.com \
--cc=ben@decadent.org.uk \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=grant.likely@linaro.org \
--cc=jeffrey.t.kirsher@intel.com \
--cc=jespern@axis.com \
--cc=jonas.jensen@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maxime.ripard@free-electrons.com \
--cc=netdev@vger.kernel.org \
--cc=peppe.cavallaro@st.com \
--cc=robh+dt@kernel.org \
--cc=sr@denx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.