LWN.net Logo

Quotes of the week

Quotes of the week

Posted Dec 1, 2011 10:44 UTC (Thu) by nlucas (subscriber, #33793)
Parent article: Quotes of the week

It's obvious Linus never tried to compile a minimalist generic kernel.

There are drivers who don't even work well unless loaded as module (many usb ones included).

Heck, the ehci-hcd driver (USB 2.0 hci) must be a module if you have some crappy BIOS, because you need to unload it for poweroff to work (will reboot if loaded, instead). And this is the driver that now claims in dmesg that it needs to be loaded before any other hci driver (which can only be done if the other "hardware" hci drivers are modules and udev configured for that).


(Log in to post comments)

Quotes of the week

Posted Dec 1, 2011 11:10 UTC (Thu) by neilbrown (subscriber, #359) [Link]

> It's obvious Linus never tried to compile a minimalist generic kernel.

An alternate interpretation is that Linus did, and fixed all the problems that affected him on his hardware. :-)

Quotes of the week

Posted Dec 1, 2011 14:11 UTC (Thu) by mpr22 (subscriber, #60784) [Link]

Heck, the ehci-hcd driver (USB 2.0 hci) must be a module if you have some crappy BIOS, because you need to unload it for poweroff to work (will reboot if loaded, instead).

Is there a bug report, and is it idle, work-in-progress, or closed WONTFIX? Because (regardless of the deficiencies of the BIOS) that driver sounds buggy to me.

Quotes of the week

Posted Dec 1, 2011 14:51 UTC (Thu) by nlucas (subscriber, #33793) [Link]

I'm not the original discover of the issue. I just found about it by googling for a fix and found that some distros already fix this somehow.

I can't know if there is any open/closed bug for this. Kernel bugzila is still down.

Quotes of the week

Posted Dec 1, 2011 19:22 UTC (Thu) by mlankhorst (subscriber, #52260) [Link]

well my system currently refuses to shut down completely too. It forgets suspend to ram and wakes up after a few seconds, cleaning everything in memory.. Powerdown acts the same way, turning back on after a few seconds too. So link please? :P

Quotes of the week

Posted Dec 1, 2011 20:05 UTC (Thu) by nlucas (subscriber, #33793) [Link]

This was some time ago, but my current google-fu gets me this links that may help you:

http://www.thinkwiki.org/wiki/Problems_with_ACPI_suspend-...
http://www.thinkwiki.org/wiki/How_to_make_ACPI_work
https://bbs.archlinux.org/viewtopic.php?pid=942749

Note that in all three, one of the advises for fixing rebooting instead of shutting down is a "rmmod ehci-hcd" before the "poweroff" command.

Quotes of the week

Posted Dec 2, 2011 2:05 UTC (Fri) by Alan.Stern (subscriber, #12437) [Link]

I bet ehci-hcd does not need to be unloaded before poweroff; unbinding it should work just as well. Sure, it would be nice to fix this -- but if it's caused by a crappy BIOS then fixing it won't be easy.

Although ehci-hcd claims it should be loaded before ohci-hcd and uhci-hcd, this isn't really necessary. The only reason is to avoid unlikely problems when a high-speed device is first initialized at full speed and then switched over to high speed when ehci-hcd gets going.

Quotes of the week

Posted Dec 5, 2011 13:49 UTC (Mon) by nlucas (subscriber, #33793) [Link]

Only today I could test that theory and you were right: unbind also solves the problem.

Now we only need some kernel hacker to look into this... (my experience with the kernel mailing list is not too famous).

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds