Re: SOLVED: DMA is turned off on my HDD
Florian Kulzer wrote: On Tue, Jul 29, 2008 at 21:57:56 +0300, Anton Liaukevich wrote: I have read some docs in the inet. I have understood what is initrd, how to use initramfs-tools debian package (in particular, update-initramfs command and /etc/initramfs-tools/modules file). I have being intended to add blacklist ide-generic string to /etc/initramfs-tools/modules file to run initramfs-tools -k $(uname -r) -u command but when I opened this file I was shocked. That is I have seen: # Added by Debian Installer ide-generic I decided simply delete this string from modules file (and update initrd then). And it has solved the problem! I am glad to hear that you have DMA working now. Nevertheless, I don't understand why Debian Installer add this ill-started module to /etc/initramfs-tools/modules file. Seems the bug to be Debian-specific. If the information on the Debian driver check page is correct, i.e. if you really need kernel 2.6.25 for the amd74xx module to work with your controller, then it may be reasonable to add ide_generic to /etc/modules to reduce the risk of the system not booting at all. (The installer has kernel 2.6.24.) However that may be, please send an installation report to the Debian installer team, describing your problems. Now I'm intended to update initrd for all my kernels ;). Watch out, the 2.6.24 kernel might need ide_generic to use the controller at all. I have ventured to update initrd for all my kernels and the result is good! But I have one more question. There is list of my kernels: leva:/home/anthony# awk '{if ($1==kernel $NF!=single) print $2}' /boot/grub/menu.lst /boot/vmlinuz-2.6.25-2-686 /boot/vmlinuz-2.6.24-1-686 /boot/vmlinuz-2.6.24-1-486 468-kernel is needed for me in case I will change my cpu to 686-incompatible :) or I will transport my hdd to old computer and boot Debian from it. But can I boot at least one of my kernels if I simply change my motherboard to one with non-nVidia chipset (that don't use amd74xx module) (after updating initrd for all kernels)? ide-generic module seem to be not-loaded: [EMAIL PROTECTED]:~$ lsmod | grep 'ide' video 19728 0 output 3712 1 video ide_cd_mod 32864 0 cdrom 31872 1 ide_cd_mod ide_disk 13952 8 ide_pci_generic 4228 0 [permanent] ide_core 100312 4 ide_cd_mod,ide_disk,ide_pci_generic,amd74xx But it is included in initrd: [EMAIL PROTECTED]:~$ zcat /boot/initrd.img-$(uname -r) | cpio --quiet -t | grep -E '(ide|ata|amd)[^/]*\.ko' lib/modules/2.6.25-2-686/kernel/drivers/ata/sata_sil.ko lib/modules/2.6.25-2-686/kernel/drivers/ata/sata_sis.ko lib/modules/2.6.25-2-686/kernel/drivers/ata/sata_sx4.ko lib/modules/2.6.25-2-686/kernel/drivers/ata/sata_svw.ko lib/modules/2.6.25-2-686/kernel/drivers/ata/sata_uli.ko lib/modules/2.6.25-2-686/kernel/drivers/ata/sata_via.ko lib/modules/2.6.25-2-686/kernel/drivers/ata/sata_vsc.ko lib/modules/2.6.25-2-686/kernel/drivers/ata/pata_artop.ko lib/modules/2.6.25-2-686/kernel/drivers/ata/sata_mv.ko lib/modules/2.6.25-2-686/kernel/drivers/ata/sata_nv.ko lib/modules/2.6.25-2-686/kernel/drivers/ata/sata_sil24.ko lib/modules/2.6.25-2-686/kernel/drivers/ata/ata_generic.ko lib/modules/2.6.25-2-686/kernel/drivers/ata/sata_promise.ko lib/modules/2.6.25-2-686/kernel/drivers/ata/pata_sis.ko lib/modules/2.6.25-2-686/kernel/drivers/ata/sata_qstor.ko lib/modules/2.6.25-2-686/kernel/drivers/ata/pata_marvell.ko lib/modules/2.6.25-2-686/kernel/drivers/ata/ata_piix.ko lib/modules/2.6.25-2-686/kernel/drivers/ata/sata_inic162x.ko lib/modules/2.6.25-2-686/kernel/drivers/ata/libata.ko lib/modules/2.6.25-2-686/kernel/drivers/ide/pci/amd74xx.ko lib/modules/2.6.25-2-686/kernel/drivers/ide/pci/ide-pci-generic.ko lib/modules/2.6.25-2-686/kernel/drivers/ide/ide-core.ko lib/modules/2.6.25-2-686/kernel/drivers/ide/ide-pnp.ko lib/modules/2.6.25-2-686/kernel/drivers/ide/ide-disk.ko lib/modules/2.6.25-2-686/kernel/drivers/ide/ide-cd_mod.ko lib/modules/2.6.25-2-686/kernel/drivers/ide/ide-tape.ko lib/modules/2.6.25-2-686/kernel/drivers/ide/legacy/ide-cs.ko lib/modules/2.6.25-2-686/kernel/drivers/ide/ide-generic.ko lib/modules/2.6.25-2-686/kernel/drivers/ide/ide-floppy.ko lib/modules/2.6.25-2-686/kernel/drivers/scsi/eata.ko lib/modules/2.6.25-2-686/kernel/drivers/block/paride/paride.ko Similarly for other kernels: [EMAIL PROTECTED]:~$ zcat /boot/initrd.img-2.6.24-1-686 | cpio --quiet -t | grep 'ide-generic' lib/modules/2.6.24-1-686/kernel/drivers/ide/ide-generic.ko [EMAIL PROTECTED]:~$ zcat /boot/initrd.img-2.6.24-1-486 | cpio --quiet -t | grep 'ide-generic' lib/modules/2.6.24-1-486/kernel/drivers/ide/ide-generic.ko -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: SOLVED: DMA is turned off on my HDD
On 08/04/08 06:39, Anton Liaukevich wrote: Florian Kulzer wrote: On Tue, Jul 29, 2008 at 21:57:56 +0300, Anton Liaukevich wrote: I have read some docs in the inet. I have understood what is initrd, how to use initramfs-tools debian package (in particular, update-initramfs command and /etc/initramfs-tools/modules file). I have being intended to add blacklist ide-generic string to /etc/initramfs-tools/modules file to run initramfs-tools -k $(uname -r) -u command but when I opened this file I was shocked. That is I have seen: # Added by Debian Installer ide-generic I decided simply delete this string from modules file (and update initrd then). And it has solved the problem! I am glad to hear that you have DMA working now. Nevertheless, I don't understand why Debian Installer add this ill-started module to /etc/initramfs-tools/modules file. Seems the bug to be Debian-specific. If the information on the Debian driver check page is correct, i.e. if you really need kernel 2.6.25 for the amd74xx module to work with your controller, then it may be reasonable to add ide_generic to /etc/modules to reduce the risk of the system not booting at all. (The installer has kernel 2.6.24.) However that may be, please send an installation report to the Debian installer team, describing your problems. Now I'm intended to update initrd for all my kernels ;). Watch out, the 2.6.24 kernel might need ide_generic to use the controller at all. I have ventured to update initrd for all my kernels and the result is good! But I have one more question. There is list of my kernels: leva:/home/anthony# awk '{if ($1==kernel $NF!=single) print $2}' /boot/grub/menu.lst /boot/vmlinuz-2.6.25-2-686 /boot/vmlinuz-2.6.24-1-686 /boot/vmlinuz-2.6.24-1-486 468-kernel is needed for me in case I will change my cpu to 686-incompatible :) or I will transport my hdd to old computer and boot Debian from it. AFAICT, the only currently-shipping ia32 686-incompatible chips are the Via C7 chips which go in little semi-embedded machines. But can I boot at least one of my kernels if I simply change my motherboard to one with non-nVidia chipset (that don't use amd74xx module) (after updating initrd for all kernels)? Yes. That's how I moved my hard drive from my old machine to the new one. -- Ron Johnson, Jr. Jefferson LA USA Scientists are people, too. IOW, they also crave power, money, respect, and influence, and they also fear for their jobs. Each can be a healthy motivator, but each has the ability to turn a good scientist into a bad one; and in some cases, they can turn a good scientist into a charlatan. http://thefutureofthings.com/book/3/the-bomb-that-never-was.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: SOLVED: DMA is turned off on my HDD
On Tue, Jul 29, 2008 at 21:57:56 +0300, Anton Liaukevich wrote: Andrei Popescu wrote: amd74xx module seems to be included in my initrd: [...] lib/modules/2.6.25-2-686/kernel/drivers/ide/ide-generic.ko And so is ide-generic. You could try to rebuild the initrd without it, BUT: [...] I have read some docs in the inet. I have understood what is initrd, how to use initramfs-tools debian package (in particular, update-initramfs command and /etc/initramfs-tools/modules file). I have being intended to add blacklist ide-generic string to /etc/initramfs-tools/modules file to run initramfs-tools -k $(uname -r) -u command but when I opened this file I was shocked. That is I have seen: # Added by Debian Installer ide-generic I decided simply delete this string from modules file (and update initrd then). And it has solved the problem! I am glad to hear that you have DMA working now. [...] Now I suppose that 2nd Florian's solution (booting with blacklist=ide_generic appended to the kernel command line) hasn't helped me because ill-started module was ide-generic (nor ide_generic (minus instead of underscope)). If I make mistakes please correct me. I think that - and underscore are equivalent when it comes to module names: modinfo ide-generic works the same as modinfo ide_generic. The module file itself has - in its name, i.e. ide-generic.ko. In any case, I think that appending blacklist=... will only influence what is loaded in the initrd stage. AFAIK, modules that are mentioned in /etc/modules will be loaded after the root FS has been mounted irrespective of the earlier blacklist directives. Nevertheless, I don't understand why Debian Installer add this ill-started module to /etc/initramfs-tools/modules file. Seems the bug to be Debian-specific. For information: I was install Lenny from netinst 7.3MB mini.iso (Lenny, i386, built before 2008-07-02) (downloaded from ftp://ftp.mgts.by/pub/debian-cd/ mirror). I use ftp.mgts.by/debian/ Debian mirror. If the information on the Debian driver check page is correct, i.e. if you really need kernel 2.6.25 for the amd74xx module to work with your controller, then it may be reasonable to add ide_generic to /etc/modules to reduce the risk of the system not booting at all. (The installer has kernel 2.6.24.) However that may be, please send an installation report to the Debian installer team, describing your problems. Now I'm intended to update initrd for all my kernels ;). Watch out, the 2.6.24 kernel might need ide_generic to use the controller at all. -- Regards,| http://users.icfo.es/Florian.Kulzer Florian | -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: SOLVED: DMA is turned off on my HDD
Andrei Popescu wrote: amd74xx module seems to be included in my initrd: [...] lib/modules/2.6.25-2-686/kernel/drivers/ide/ide-generic.ko And so is ide-generic. You could try to rebuild the initrd without it, BUT: 1. I don't know how to do it 2. You might end up with an unbootable system For 1. it might be enough to just rebuild the initrd with the blacklisted module. Otherwise you will have to unpack it, remove the module and repack it. You should be able to find instructions on the net for this procedure. To avoid 2. it would be best to keep the current initrds and create a backup stanza in grub to use it. Regards, Andrei Great thanks to Ron Johnson, Pavlos Parissis, Bob Cox, Florian Kulzer, Chris Bannister Andrei Popescu. I have read some docs in the inet. I have understood what is initrd, how to use initramfs-tools debian package (in particular, update-initramfs command and /etc/initramfs-tools/modules file). I have being intended to add blacklist ide-generic string to /etc/initramfs-tools/modules file to run initramfs-tools -k $(uname -r) -u command but when I opened this file I was shocked. That is I have seen: # Added by Debian Installer ide-generic I decided simply delete this string from modules file (and update initrd then). And it has solved the problem! While rebooting I haven't being seen warning message from fsck (about turned off dma mode). And after reboot I was convinced that DMA is on: leva:/home/anthony/admin# hdparm /dev/hda /dev/hda: multcount = 0 (off) IO_support= 1 (32-bit) unmaskirq = 1 (on) using_dma = 1 (on) keepsettings = 0 (off) readonly = 0 (off) readahead = 256 (on) geometry = 16383/255/63, sectors = 234441648, start = 0 Moreover my system became much faster and Debian boot time (from Grub to X11) (which I can see in the new 2.6.25 kernel) has reduced from 90 seconds to 30 seconds! Now I suppose that 2nd Florian's solution (booting with blacklist=ide_generic appended to the kernel command line) hasn't helped me because ill-started module was ide-generic (nor ide_generic (minus instead of underscope)). If I make mistakes please correct me. Nevertheless, I don't understand why Debian Installer add this ill-started module to /etc/initramfs-tools/modules file. Seems the bug to be Debian-specific. For information: I was install Lenny from netinst 7.3MB mini.iso (Lenny, i386, built before 2008-07-02) (downloaded from ftp://ftp.mgts.by/pub/debian-cd/ mirror). I use ftp.mgts.by/debian/ Debian mirror. Now I'm intended to update initrd for all my kernels ;). -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]