From: Nicolas Mailhot <Nicolas.Mailhot@laPoste.net>
To: David Brownell <david-b@pacbell.net>
Cc: greg@kroah.com, linux-usb-devel@lists.sourceforge.net,
linux-kernel@vger.kernel.org
Subject: Re: [linux-usb-devel] 2.5.42-ac1, 2.5.42, 2.5.41 boot hang with CONFIG_USB_DEBUG=n
Date: Mon, 14 Oct 2002 23:20:00 +0200 [thread overview]
Message-ID: <20021014212000.GA1002@rousalka.noos.fr> (raw)
In-Reply-To: <3DAAF67F.1080504@pacbell.net>; from david-b@pacbell.net on lun, oct 14, 2002 at 18:53:19 +0200
On 2002.10.14 18:53 David Brownell wrote:
>> Now it turns out I didn't do such a piss-poor of configuring my 2.5
>> kernel, since the only option I could find that make a difference
>> was CONFIG_USB_DEBUG. When I accept flooding my system logs with
>> obscure usb incantations the system boots:(. ...
>>
>> Can an helpful soul help me bring my system some relief ? I'd
>> really like not to boot in debug mode.
>
> That's a new failure mode! Can you help narrow this down?
>
> You're using the OHCI driver, so you can just tweak the lines at the
> top of drivers/usb/host/ohci-hcd.c that can #define DEBUG. If you
> comment out that #define, and leave CONFIG_USB_DEBUG on (and then
> rebuild and re-init with the new OHCI driver), does that work or not?
As requested, I changed the defines in this file to :
/*#ifdef CONFIG_USB_DEBUG
# define DEBUG
#else*/
# undef DEBUG
/*#endif*/
rebuild a kernel, and started rebooting like mad.
Procedure was following :
1. reboot the computer (software reboot if ok kernel, else reset)
2. go through bios (long initiation with memory testing)
3. when the bootloader shows up (might hang just before, my disks
really do not like being stopped before reboot) / when the system
hangs, press reset
4. go through bios initialization (bis)
5. when grub shows up, play a bit in the menus (up-down...) then choose
a kernel
With this protocol I got a 100% boot rate on the original kernel and an
almost-always hang with the kernel where debuging was undefed in
drivers/usb/host/ohci-hcd.c. It did boot two times (out of maybe 10-15
tries) but that doesn't count since both times the keyboard was dead.
Since I can't do a lost of things with only the mouse, I clicked reboot
in gdm these two times.
> If that works, it'd be time to see which OHCI printk()s morph init (?)
> timing enough to matter to your K7 box. Looked to me like they were
> all either before or after the timing-critical bits (chip init), so
> disabling just the OHCI messages "should" not change your failure
> mode.
No such luck. It really looks like ohci is the culprit:(
I guess I'm lucky it's got a maintainer as responsive as you:)
Any other ideas ?
Regards,
P.S.
I don't know if it's important, but I had to enable usb
keyboard legacy mode in the bios to have keyboard support in the
bootloader stage. I had a bad feeling about the option though, a good
bios is a lean bios.
--
Nicolas Mailhot
next prev parent reply other threads:[~2002-10-14 21:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-13 17:25 2.5.42-ac1, 2.5.42, 2.5.41 boot hang with CONFIG_USB_DEBUG=n Nicolas Mailhot
2002-10-14 16:53 ` [linux-usb-devel] " David Brownell
2002-10-14 21:20 ` Nicolas Mailhot [this message]
2002-10-15 17:10 ` David Brownell
2002-10-15 17:39 ` Nicolas Mailhot
2002-10-15 21:00 ` David Brownell
2002-10-18 17:45 ` Nicolas Mailhot
2002-10-21 2:44 ` David Brownell
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=20021014212000.GA1002@rousalka.noos.fr \
--to=nicolas.mailhot@laposte.net \
--cc=david-b@pacbell.net \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
/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