2006-05-11 08:24:47

by Razvan Gavril

[permalink] [raw]
Subject: Coldpluging or USB Issues ?

For start, i don't know if a big part of the problem is not cause by
userland tools and not the kernel itself, but i think is proper to ask
this questions here as there are a lot of people who can guide me to the
right place to search for information.

We are developing a custom debian sarge based linux distribution focused
on home entertainment & other. Since we made the switch from 2.6.13 to
2.6.15 we come to a lot of problems cause by coldpluging, sometimes the
module for various usb devices are not loaded at boot (by the hotplug
scripts). Since the hotplug script that we use with 2.6.15 are the same
with the one that we've been using with 2.6.13 i suspect that something
in the kernel changed because they used to work flawless with the older
version. For the last week we updated to 2.6.16.12 hoping that it fixes
this issue but nothing has changed, the problem is still there, we even
had bigger problem, not directly related to coldplug, when a computer
had multiple usb devices attached it worked for a while that all the usb
system stoped working, when rebooting , it even blocked when loading the
modules for usb, we needed to remove some of the usb devices to get it
boot again.

We tried switching from the debian default bash hotplug scripts and use
a alternative version written in perl but the problem are still there so
the idea that this has something to do with the kernel is getting closer
to reality.

As far as i know since 2.6.15 there is a new coldplug mechanism using
uevent and switching to a newer version of udevd that can do the cold
plugging and replacing the old hotplug scripts would be the natural next
step but before doing this i need to ask some questions like :
1) Where there any changes sine 2.6.15 that could cause the old hotplug
scripts to work reliable because most part of the time (95%) they are
working ?
2) Upgrading to newer version of udevd to let the udev scripts to do
the coldpluging can solve any issues that where described ?

If any of you wants to debug the problems fill free to contact me as i
can provide you with all the needed information.

Thx


2006-05-11 23:46:51

by Greg KH

[permalink] [raw]
Subject: Re: Coldpluging or USB Issues ?

On Thu, May 11, 2006 at 11:25:05AM +0300, Razvan Gavril wrote:
> As far as i know since 2.6.15 there is a new coldplug mechanism using
> uevent and switching to a newer version of udevd that can do the cold
> plugging and replacing the old hotplug scripts would be the natural next
> step but before doing this i need to ask some questions like :
> 1) Where there any changes sine 2.6.15 that could cause the old hotplug
> scripts to work reliable because most part of the time (95%) they are
> working ?

I don't know, what is failing?

> 2) Upgrading to newer version of udevd to let the udev scripts to do
> the coldpluging can solve any issues that where described ?

Probably, that's what all of the major distros have already done. It
makes the startup logic much smaller and simpler.

This should be continued on the linux-hotplug-devel mailing list if you
are interested.

thanks,

greg k-h

2006-05-12 12:09:04

by Razvan Gavril

[permalink] [raw]
Subject: Re: Coldpluging or USB Issues ?

Greg KH wrote:
> On Thu, May 11, 2006 at 11:25:05AM +0300, Razvan Gavril wrote:
>
>> As far as i know since 2.6.15 there is a new coldplug mechanism using
>> uevent and switching to a newer version of udevd that can do the cold
>> plugging and replacing the old hotplug scripts would be the natural next
>> step but before doing this i need to ask some questions like :
>> 1) Where there any changes sine 2.6.15 that could cause the old hotplug
>> scripts to work reliable because most part of the time (95%) they are
>> working ?
>>
>
> I don't know, what is failing?
>
>
Sometimes if fails to load the modules for the usb devices at boot but
there are no step to reproduce, looks totally random and only on rare
occasions if failing.
>> 2) Upgrading to newer version of udevd to let the udev scripts to do
>> the coldpluging can solve any issues that where described ?
>>
>
> Probably, that's what all of the major distros have already done. It
> makes the startup logic much smaller and simpler.
>
> This should be continued on the linux-hotplug-devel mailing list if you
> are interested.
>
> thanks,
>
> greg k-h
>
I know that most major distros made the switch, but does anything
changed so it would make debian's hotplug scripts (and i don't thing
they are only used on debian) incompatible with kernels greater than
2.6.15 ? I cannot risk to upgrade to udev and have the same unstable
platform. The most secure option that i have now is going back to 2.6.13
if udev can't give me a satisfactory answer.

PS: I can't find any mailing list named linux-hotplug-devel as i would
be more that happy to move my mail there.

2006-05-12 15:15:52

by Greg KH

[permalink] [raw]
Subject: Re: Coldpluging or USB Issues ?

On Fri, May 12, 2006 at 03:09:18PM +0300, Razvan Gavril wrote:
> Greg KH wrote:
> >On Thu, May 11, 2006 at 11:25:05AM +0300, Razvan Gavril wrote:
> >
> >>As far as i know since 2.6.15 there is a new coldplug mechanism using
> >>uevent and switching to a newer version of udevd that can do the cold
> >>plugging and replacing the old hotplug scripts would be the natural next
> >>step but before doing this i need to ask some questions like :
> >>1) Where there any changes sine 2.6.15 that could cause the old hotplug
> >>scripts to work reliable because most part of the time (95%) they are
> >>working ?
> >>
> >
> >I don't know, what is failing?
> >
> >
> Sometimes if fails to load the modules for the usb devices at boot but
> there are no step to reproduce, looks totally random and only on rare
> occasions if failing.

I have not heard of this problem before, nor can I think of anything
that has changed to affect this.

But those hotplug scripts are old and crufty and not really supported by
anyone anymore.

> >>2) Upgrading to newer version of udevd to let the udev scripts to do
> >>the coldpluging can solve any issues that where described ?
> >>
> >
> >Probably, that's what all of the major distros have already done. It
> >makes the startup logic much smaller and simpler.
> >
> >This should be continued on the linux-hotplug-devel mailing list if you
> >are interested.
> I know that most major distros made the switch, but does anything
> changed so it would make debian's hotplug scripts (and i don't thing
> they are only used on debian) incompatible with kernels greater than
> 2.6.15 ?

Why not ask the Debian maintainer of these scripts. I'm sure that a lot
of Debian users still use them without udev.

> I cannot risk to upgrade to udev and have the same unstable platform.
> The most secure option that i have now is going back to 2.6.13 if udev
> can't give me a satisfactory answer.
>
> PS: I can't find any mailing list named linux-hotplug-devel as i would
> be more that happy to move my mail there.

http://www.google.com/search?q=linux-hotplug-devel+mailing+list second
hit shows the mailman interface to sign up or send mail to it.

thanks,

greg k-h