From: Andi Kleen <andi@firstfloor.org>
To: Jiri Kosina <jkosina@suse.cz>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Calvin Walton <calvin.walton@kepstin.ca>,
Andi Kleen <andi@firstfloor.org>,
linux-kernel@vger.kernel.org, shemminger@vyatta.com
Subject: Re: long boot delays caused by 070ad7e7 floppy change
Date: Tue, 3 Jul 2012 20:45:51 +0200 [thread overview]
Message-ID: <20120703184551.GL11413@one.firstfloor.org> (raw)
In-Reply-To: <alpine.LNX.2.00.1207031953570.17304@pobox.suse.cz>
On Tue, Jul 03, 2012 at 07:57:15PM +0200, Jiri Kosina wrote:
> On Tue, 3 Jul 2012, Linus Torvalds wrote:
>
> > > Ok, here's the dmesg output that I get:
> > >
> > > [ 0.714316] floppy0: lock_fdc: -1 (out of 8)
> >
> > Ok, thanks. That -1 definitely explains the long delay. It's using
> > "drive=-1" because it has no actual drive number, just the
> > *controller* number.
> >
> > And the backtrace shows what's going on too: it's the
> >
> > user_reset_fdc(-1, FD_RESET_ALWAYS, false);
> >
> > that passes in -1 as the floppy controller number.
> >
> > Ugh.
> >
> > It looks like the code meant for -1 to mean "regular delay"
> > (current_reqD), and -2 to mean MAXTIMEOUT. For some reason the "-1"
> > logic has gotten screwed.
>
> I am still trying to understand the exact situation.
>
> Andi, do I understand you correctly that even if you revert 070ad7e793dc
> on top of current Linus' tree, you are still seeing the 20 second delay
> inside the initcall?
Correct. Here's the debug output with just reverted (without Linus
patch):
[ 2.489559] calling floppy_init+0x0/0xe46 @ 1
[ 2.504363] floppy0: lock_fdc: -1 (out of 8)
[ 2.504410] floppy0: reschedule timeout lock fdc
[ 22.498784] floppy0: reschedule timeout do wakeup
[ 22.498811] floppy0: no floppy controllers found
[ 22.498944] initcall floppy_init+0x0/0xe46 returned -19 after
19577158 usecs
next prev parent reply other threads:[~2012-07-03 18:45 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-02 22:46 Andi Kleen
2012-07-02 23:01 ` Linus Torvalds
2012-07-03 13:47 ` Calvin Walton
2012-07-03 17:07 ` Linus Torvalds
2012-07-03 17:40 ` Calvin Walton
2012-07-03 17:50 ` Linus Torvalds
2012-07-03 17:57 ` Jiri Kosina
2012-07-03 18:45 ` Andi Kleen [this message]
2012-07-03 17:58 ` Linus Torvalds
2012-07-03 18:15 ` Jiri Kosina
2012-07-03 18:58 ` Andi Kleen
2012-07-03 19:12 ` Linus Torvalds
2012-07-03 19:36 ` Calvin Walton
2012-07-03 19:42 ` Andi Kleen
2012-07-03 20:05 ` Linus Torvalds
2012-07-03 20:11 ` Andi Kleen
2012-07-03 23:06 ` Jiri Kosina
2012-07-03 19:40 ` Andi Kleen
2012-07-03 23:01 ` Linus Torvalds
2012-07-03 17:45 ` Andi Kleen
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=20120703184551.GL11413@one.firstfloor.org \
--to=andi@firstfloor.org \
--cc=calvin.walton@kepstin.ca \
--cc=jkosina@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=shemminger@vyatta.com \
--cc=torvalds@linux-foundation.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
all inboxes | Powered by JetHome®