retitle 290629 hdparm: Does not set up devices that need modules loaded first merge 290629 250232 thanks
This one time, at band camp, Christophe Combelles said: > One of my systems have an aditionnal PCI IDE adapter (via pdc202xx_new) > I have configured /etc/hparm.conf with: > /dev/hde { > dma=on > interrupt_unmask = on > io32_support = 1 > } > /dev/hdg { > dma=on > interrupt_unmask = on > io32_support = 1 > } > > but hde and hdg are never optimized at boot. > I have to manually run: /etc/init.d/hdparm restart > or hdparm -d 1 /dev/hde > in order to enable DMA on these drives. > > I guess the pdc202 module is loaded after hdparm? > or anything else ? That is exactly the problem. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=250232 for a lot of ideas about how to implement this, and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=249446 and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=274109 for udev related bug reports. My main problem with working with this recently is lack of time and hardware that has these requirements - all of my machines only need the modules that are in my initrd, so the hdparm script works correctly for all of them the first time. I think moving towards an hdparm.second or something is probably the way to go, but I am not sure yet how I am going to accomplish this. There are problems introduced by alternate init schemes (runit, minit, etc) that I also don't use, so determining which script is being run is not as trivial as I would like. So, since this bug is mostly the same as #250232 (needs a two stage init run to properly set up devices that depend on a later module load), I am going to merge this with that bug, and leave them both open until I can get the time to properly sort this out. Thanks for reporting, -- ----------------------------------------------------------------- | ,''`. Stephen Gran | | : :' : [EMAIL PROTECTED] | | `. `' Debian user, admin, and developer | | `- http://www.debian.org | -----------------------------------------------------------------
pgpkxPHeLRVPU.pgp
Description: PGP signature