![](https://seccdn.libravatar.org/avatar/dcaea5e8a6fad867936a40a9c21e8ff3.jpg?s=120&d=mm&r=g)
Hi Michal, Le Thursday 06 June 2013 à 14:55 +0200, Michal Marek a écrit :
On 6.6.2013 14:40, Jean Delvare wrote:
Is there a magic command that would answer the question "is this driver useful for any device present on my machine"?
Remove it from the sysconfig file, run mkinitrd, reboot and see if udev loads it :).
Ah ah, yes of course :) Tried that and no, ata_generic is not loaded by udev. But I do not understand why, because: $ /sbin/modinfo ata_generic (...) alias: pci:v*d*sv*sd*bc01sc01i* $ /sbin/lspci -nn | grep '\[0101\]' 00:1f.2 IDE interface [0101]: Intel Corporation 82801JI (ICH10 Family) 4 port SATA IDE Controller #1 [8086:3a20] 00:1f.5 IDE interface [0101]: Intel Corporation 82801JI (ICH10 Family) 2 port SATA IDE Controller #2 [8086:3a26] So I would expect udev to load it. Unless udev skips module loading if the device already has a driver bound?
It could also be that ata_generic is only usable when the storage controller is set to IDE mode in the BIOS, and not when set to AHCI. Maybe that's why you don't have ata_generic on your machine, it is in AHCI mode?
I can't check right now, but the controller is driven by the ahci driver at least.
So it must be in AHCI mode, yes.
As a side note, I am wondering why my systems are all in IDE mode and if I should switch them to AHCI mode.
Strange. I am by no means an expert, but I thought that AHCI had been a de-facto standard on desktop and laptop hardware for the last couple of years.
But remember you're talking with Jean "I love legacy" Delvare ;) One of the machines is from 2004 IIRC, it has an Intel ICH5 south bridge and AFAIK AHCI was only introduced with the ICH6. The other two machines are more recent (ICH10) and I have no clue why I set them up in IDE mode. I remember one of them had a relatively old IDE DVD drive, maybe it didn't work in AHCI mode, I don't know. For the other I think I have simply no excuse. Anyway, the fact that ata_generic is not needed in AHCI mode is a good enough reason to keep ata_generic built as a module. Thanks for the clarification. -- Jean Delvare Suse L3 -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org