2003-07-23 21:58:57

by Yoav Weiss

[permalink] [raw]
Subject: KERN_ERR "ide: late registration of driver."

Recently installed 2.4.22-pre7 on 2 boxes here.

During boot, I always get the message "ide: late registration of driver."
which comes from ide.c:2234:ide_register_driver().

Seems like drivers_run is already set by the time ide_register_driver get
called. Following the logic of that driver, it makes sense. ide_init()
gets called early and inits the ide. (banner: "Uniform Multi-Platform
E-IDE driver..."). ide_register_driver() is never used inside the driver
but is exported and called after partition check, way down the line.

Therefore, I don't see why the late registration is an error. Am I
missing something ?

And if its not an error, it shouldn't be printed as KERN_ERR. When
booting the kernel with the 'quiet' option, thats the only message
printed.

Yoav Weiss


2003-07-23 22:21:00

by Alan

[permalink] [raw]
Subject: Re: KERN_ERR "ide: late registration of driver."

On Mer, 2003-07-23 at 23:14, Yoav Weiss wrote:
> Recently installed 2.4.22-pre7 on 2 boxes here.
> Seems like drivers_run is already set by the time ide_register_driver get
> called. Following the logic of that driver, it makes sense. ide_init()
> gets called early and inits the ide. (banner: "Uniform Multi-Platform
> E-IDE driver..."). ide_register_driver() is never used inside the driver
> but is exported and called after partition check, way down the line.
>
> Therefore, I don't see why the late registration is an error. Am I
> missing something ?

It may change drive ordering. I've not decided if its an error yet but
its on my todo list to fix it one way or the other. I have a hack fix I
can give marcelo for 2.4.22 so its not critical path

2003-07-23 22:58:18

by Yoav Weiss

[permalink] [raw]
Subject: Re: KERN_ERR "ide: late registration of driver."

> > Therefore, I don't see why the late registration is an error. Am I
> > missing something ?
>
> It may change drive ordering. I've not decided if its an error yet but
> its on my todo list to fix it one way or the other. I have a hack fix I
> can give marcelo for 2.4.22 so its not critical path
>

ok, I'll look into it some more. Could you please send your hack fix for
this ?

btw, isn't it a persistent problem for all cases ? As far as I can see,
registration will always be late, at least for machines that boot from
ide.

Yoav Weiss