linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: "Hector Palacios" <hector.palacios@digi.com>,
	"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
	"Tim Sander" <tim.sander@hbm.com>,
	"linux-rt-users@vger.kernel.org" <linux-rt-users@vger.kernel.org>,
	"lclaudio@uudg.org" <lclaudio@uudg.org>,
	"efault@gmx.de" <efault@gmx.de>,
	netdev@veger.kernel.org, "Shawn Guo" <shawn.guo@linaro.org>
Subject: Re: infinite spin in RT when booting with DHCP on
Date: Wed, 8 Feb 2012 21:41:13 +0100 (CET)	[thread overview]
Message-ID: <alpine.LFD.2.02.1202082112460.2794@ionos> (raw)
In-Reply-To: <1328534873.5882.227.camel@gandalf.stny.rr.com>

On Mon, 6 Feb 2012, Steven Rostedt wrote:

> On Mon, 2012-02-06 at 09:51 +0100, Hector Palacios wrote:
> > On 02/03/2012 06:39 PM, Steven Rostedt wrote:
> > > Note that you see that this causes a hang in the system if ksoftirqd is
> > > a real time task.
> > 
> > This is true.
> > 
> > > Not to mention, that ksoftirqd spins in an infinite
> > > loop if the cable isn't connected (regardless of ksoftirqd's priority).
> > 
> > This is not true. The infinite loop is only hit when ksoftirqd is a real time task. I 
> > think you got confused by the different patches we tried. That dirty hack of yours 
> > with the workqueue was the one hanging with the cable disconnected. ;o)
> > 
> 
> I didn't say it was going to hang the box, I said it was going to spin.
> 
> With the cable disconnected, did you run top to see if ksoftirqd was
> running at near 100%?  It wont lock up the box because ksoftirqd is not
> a real time task in mainline.

NETDEV_TX_BUSY has always been a source of trouble and we carry a
bunch of patches in RT which handle the obvious candidates since we
encountered the first spinning lockup on RT.

Mainline does not notice as it falls back to the SCHED_OTHER softirq
thread after trying to reschedule the same thing over and
over.

NETDEV_TX_BUSY simply should die. It's a bad design decision (invented
for mitigation of SMP lock contention problems) and it's abuse by
driver writers to bridge the gap of hardware bringup is just a
consequence of that decision.

        if (!fep->link) {
                /* Link is down or autonegotiation is in progress. */
                return NETDEV_TX_BUSY;
        }

So instead of handling link down and autonegotiation gracefully this
code relies on the fact that a 2 seconds spinning loop goes unnoticed
in mainline because ksoftirqd runs with SCHED_OTHER.

Oh well,

	tglx

      reply	other threads:[~2012-02-08 20:41 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-01 12:28 infinite spin in RT when booting with DHCP on Hector Palacios
2012-02-02 12:38 ` Tim Sander
2012-02-02 12:57   ` Hector Palacios
2012-02-02 14:25     ` Tim Sander
2012-02-02 15:32       ` Tim Sander
2012-02-02 15:53         ` Hector Palacios
2012-02-02 18:10       ` Steven Rostedt
2012-02-03 10:09         ` Hector Palacios
2012-02-03 10:54           ` John Ogness
2012-02-03 14:26           ` Steven Rostedt
2012-02-02 17:33   ` Steven Rostedt
2012-02-02 18:21     ` Steven Rostedt
2012-02-02 20:13   ` Uwe Kleine-König
2012-02-02 21:34     ` Steven Rostedt
2012-02-02 23:44       ` Tim Sander
2012-02-03  9:45         ` Tim Sander
2012-02-06 14:49       ` Tim Sander
2012-02-03 10:23     ` Hector Palacios
2012-02-03 10:35       ` Uwe Kleine-König
2012-02-03 16:14         ` Hector Palacios
2012-02-03 16:43           ` Steven Rostedt
2012-02-03 17:25             ` Hector Palacios
2012-02-03 17:39               ` Steven Rostedt
2012-02-03 19:25                 ` Uwe Kleine-König
2012-02-03 20:04                   ` Steven Rostedt
2012-02-06  8:51                 ` Hector Palacios
2012-02-06 13:27                   ` Steven Rostedt
2012-02-08 20:41                     ` Thomas Gleixner [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=alpine.LFD.2.02.1202082112460.2794@ionos \
    --to=tglx@linutronix.de \
    --cc=efault@gmx.de \
    --cc=hector.palacios@digi.com \
    --cc=lclaudio@uudg.org \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=netdev@veger.kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=shawn.guo@linaro.org \
    --cc=tim.sander@hbm.com \
    --cc=u.kleine-koenig@pengutronix.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 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).