linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sd_mod load is delayed.
@ 2006-01-29  9:29 Hai Zaar
  2006-01-29 10:12 ` Andrey Borzenkov
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Hai Zaar @ 2006-01-29  9:29 UTC (permalink / raw)
  To: linux-hotplug

Hi!

I'm using 2.6.15 + udev 081 + udev rules from here:
http://ftp.jg555.com/udev/udev-cross-lfs.tar.bz2 Relevant modprobe rules are:
# hotplug
ENV{MODALIAS}="?*",    RUN+="/sbin/modprobe $env{MODALIAS}"

# scsi
SUBSYSTEM="scsi_device",   ACTION="add", SYSFS{device/type}="1",
SYSFS{device/vendor}="On[sS]tream", RUN+="/sbin/modprobe osst"
SUBSYSTEM="scsi_device",   ACTION="add", SYSFS{device/type}="1",
RUN+="/sbin/modprobe st"
SUBSYSTEM="scsi_device",   ACTION="add", SYSFS{device/type}="[45]",
RUN+="/sbin/modprobe sr_mod"
SUBSYSTEM="scsi_device",   ACTION="add", RUN+="/sbin/modprobe sg"

Those rules do not handle sd_mod loading, so I've added the following
line from SUSE rules:
SUBSYSTEM="scsi_device",   ACTION="add",
SYSFS{device/type}="0|7|14", RUN+="/sbin/modprobe sd_mod"

I have two storage controllers in my machine:
1. Intel SATA controller, handled by ata_piix driver.
2. LSI logic SCSI controller handled by mptlinux driver.

The situation:
During initramfs stage, if I trigger event only for SATA controller,
then after just 1 second lib_ata and  ata_piix modules are loaded
together with sd_mod and friends, and /proc/partitions is populated.
So just after 1-2 seconds I'm able boot from SATA.

When LSI logic event is triggered - mptlinux module is loaded and
spends about half a minute to scan the bus.

The problems with, that when I trigger events both for SATA and LSI
logic (like trigger_all_events function does), sd_mod is not get
loaded until _both_ SATA and LSI finish to initialize.
Why sd_mod is not get loaded just right after ata_piix has finished?

--
Zaar


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-01-30 14:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-29  9:29 sd_mod load is delayed Hai Zaar
2006-01-29 10:12 ` Andrey Borzenkov
2006-01-29 10:39 ` Andrey Borzenkov
2006-01-29 11:18 ` Hai Zaar
2006-01-29 12:24 ` Andrey Borzenkov
2006-01-29 12:40 ` Hai Zaar
2006-01-29 14:55 ` Kay Sievers
2006-01-29 15:19 ` Hai Zaar
2006-01-30 14:43 ` Hai Zaar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).