Bug#398962: [2.6.18] Platform devices incorrectly provide $MODALIAS?
Hi,
In Debian we are currently seeing some problems with drivers that are repeatedly loaded unsuccessfully:
kernel: Intel ISA PCIC probe: not found.
FATAL: Error inserting i82365: no such device
kernel: Intel ISA PCIC probe: not found.
[...]
According to Marco d'Itri this could be because "platform devices in recent kernels provide $MODALIAS while they should not. So udev will always try loading again the driver after it has been loaded."
He has suggested working around this by excluding loading drivers for platform devices in udev. However, Sven Luther noted that e.g. the Pegasos marvell gigabit ethernet port is a platform device for which the driver should be loaded.
Can anyone shed some light on this and suggest a solution?
See http://bugs.debian.org/398962 for details.
Thanks in advance,
Frans Pop
P.S. Please keep the debian BTS CCed on replies.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Re: Bug#398962: [2.6.18] Platform devices incorrectly provide
Quoted 11 lines · Frans Pop
In Debian we are currently seeing some problems with drivers that are repeatedly loaded unsuccessfully:
kernel: Intel ISA PCIC probe: not found.
FATAL: Error inserting i82365: no such device
kernel: Intel ISA PCIC probe: not found.
[...]According to Marco d'Itri this could be because "platform devices in recent kernels provide $MODALIAS while they should not. So udev will always try loading again the driver after it has been loaded."
Quoted 6 lines
He has suggested working around this by excluding loading drivers for platform devices in udev. However, Sven Luther noted that e.g. the Pegasos marvell gigabit ethernet port is a platform device for which the driver should be loaded.
Can anyone shed some light on this and suggest a solution?
The only sane solution is to fix the kernel platform-subsystem to use aliases instead of direct module names. In the bug you mentioned, the platform device requests its _own_ module, the one which has just created the device again. This misuse of modalias causes a modprobe-loop when the init of the module fails.
The author of that code seems ignorant to the issues he creates by doing that, but we hope to get that fixed. For now you can just blacklist all platform events like Marco already suggested.
Kay
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Re: Bug#398962: [2.6.18] Platform devices incorrectly provide
In reply to Frans PopQuoted 2 lines · Kay Sievers
For now you can just
blacklist all platform events like Marco already suggested.
Nope. modprobe don't have the knowledge that this is an alias.
Bastian
Signature · 13 lines
I have never understood the female capacity to avoid a direct answer to any question. -- Spock, "This Side of Paradise", stardate 3417.3 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Re: Bug#398962: [2.6.18] Platform devices incorrectly provide
In reply to Frans PopQuoted 5 lines · Bastian Blank
Quoted 2 lines · Kay Sievers
For now you can just
blacklist all platform events like Marco already suggested.Nope. modprobe don't have the knowledge that this is an alias.
Exactly, that's the root of the problem. But it isn't what Marco put in the Debian package, and I was referring to.
Kay
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel