lkml.org 
[lkml]   [2003]   [Dec]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [2.6 PATCH/RFC] Firmware loader - fix races and resource dealloocation problems
On Mon, Dec 22, 2003 at 03:22:50PM -0800, Greg KH wrote:
> On Tue, Dec 23, 2003 at 12:05:59AM +0100, Manuel Estrada Sainz wrote:
> >
> > What can actually be a problem is that hotplug delays event handling
> > while booting, and if firmware needing drivers load at boot time they
> > usually timeout before the event gets handled, and when hotplug tryies
> > to handle the event the files are already gone.
>
> What would remove the files?

Once the firmware load is over, whether normally or because of any error
request_firmware() cleans up, and that includes removing sysfs files.

> And if you need firmware at boot time, stick it, and the firmware loader
> in initramfs.

Once klibc and hotplug go into the standard kernel I'll look into
request_firmware support there, even ACPI could benefit from it, but
until then ...

Although I don't have it clear, what happens between mounting the real
root device on top of rootfs and hotplug starting to handle events?
Maybe hotplug could treat firmware events specially and not delay them
even while booting.

I guess that we will get the real taste of it once initramfs gets it's
klibc and starts being used broadly.

Have a nice day

Manuel


--
--- Manuel Estrada Sainz <ranty@debian.org>
<ranty@bigfoot.com>
<ranty@users.sourceforge.net>
------------------------ <manuel.estrada@hispalinux.es> -------------------
Let us have the serenity to accept the things we cannot change, courage to
change the things we can, and wisdom to know the difference.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:59    [from the cache]
©2003-2011 Jasper Spaans