I'm not able to set DMA on my acer laptop: http://www.acer.be/acereuro/page9.do?sp=page4&dau34.oid=16773&UserCtxParam=0&GroupCtxParam=0&dctx1=2&CountryISOCtxParam=BE&LanguageISOCtxParam=nl&ctx3=-1&ctx4=BeLux&crc=3210271537 I tried selecting: CONFIG_ATA_PIIX => DMA doesn't work ATA_PIIX under the experimental drivers => DMA doesn't work PATA_OLDPIIX => DMA doesn't work it's a bothering problem because everything goes really slow especially fs checks. I asked to some people and they said it would be fixed in the 2.6.19 kernel (i was on 2.6.18 than.) but still it doesn't work. Reproducible: Always Steps to Reproduce: 1. Compile new kernel 2. Reboot 3. See that it doesn't work :-) Actual Results: DMA doesn't work, i even can't play a movie in a descend way. Expected Results: See hdparm -d 1 /dev/hda work Leviathan linux # lspci 00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03) 00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express PCI Express Root Port (rev 03) 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02) 00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02) 00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02) 00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02) 00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02) 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2) 00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller IDE (rev 02) 00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02) 01:00.0 VGA compatible controller: nVidia Corporation Quadro NVS 110M / GeForce Go 7300 (rev a1) 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. Unknown device 8168 (rev 01) 05:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02) 0a:06.0 CardBus bridge: Texas Instruments Unknown device 8039 0a:06.2 Mass storage controller: Texas Instruments 5-in-1 Multimedia Card Reader (SD/MMC/MS/MS PRO/xD) 0a:06.3 Class 0805: Texas Instruments Unknown device 803c
*** Bug 165950 has been marked as a duplicate of this bug. ***
Please define "doesn't work" and post dmesg attachments from the configurations you have tried
Created attachment 109747 [details] dmesg with ata_piix enabled
Created attachment 109782 [details] dmesg with blk_dev_piix enabled Leviathan alcoholica # hdparm -d 1 /dev/hda /dev/hda: setting using_dma to 1 (on) HDIO_SET_DMA failed: Operation not permitted using_dma = 0 (off)
Do i have to put some more information or is this enough? Greetz, Ewoud
Please try ata_piix on 2.6.20 without the generic IDE driver compiled into the kernel, and post new dmesg here if the problem still exists.
Created attachment 111257 [details] kernel 2.6.20 with ata_piix enabled This is the output of dmesg with the ata_piix option enabled in the 2.6.20 kernel. It still doesn't work when i try to hdparm -d1 /dev/hda. Also Use DMA by default is selected in my kernel. Greetz, Ewoud
You still have the generic IDE driver in your kernel: Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx Probing IDE interface ide0... hda: WDC WD1200UE-22KVT0, ATA DISK drive [...] ata_piix 0000:00:1f.2: version 2.00ac7 ata: 0x1F0 IDE port busy ata: conflict with ide0
Created attachment 111294 [details] .config of 2.6.20 kernel
Created attachment 111296 [details] dmesg of previous posted config DMA still doesn't work. I know it's a known issue because i googled around a time ago and i found this: http://www.spinics.net/lists/linux-ide/msg04732.html but I thought it would be fixed in the 2.6.20 kernel release. Thanks for helping me with this problem by the way. What can i do now? Ewoud
You still have the generic IDE driver in your kernel CONFIG_IDE_GENERIC=y
(In reply to comment #11) > You still have the generic IDE driver in your kernel > > CONFIG_IDE_GENERIC=y > Well when i don't select that option I get a kernel panic. Something about VFS.
Your hard disk will have moved to sda
(In reply to comment #13) > Your hard disk will have moved to sda > But in my fstab everything is hda and in grub.conf also is root=/dev/hda3 and when i ls /dev/ i don't have an sd[anything]. How should i fix this then?
and should BLK_DEV_GENERIC be on or off? Thanx
Your disk will move to sda as soon as the ata_piix driver activates. This will not happen in your current kernel as ata_piix is overruled by the generic driver. It will happen as soon as your new kernel boots. If you want to switch between the slow generic IDE kernel and the ata_piix-enabled one, then you can modify fstab to use the persistent names in /dev/disk and you can create a separate grub entry for each kernel.
I ran this: Leviathan alcoholica # hdparm -tT /dev/sda /dev/sda: Timing cached reads: 4220 MB in 2.00 seconds = 2112.23 MB/sec Timing buffered disk reads: 120 MB in 3.04 seconds = 39.41 MB/sec are these normal times? And do i have to enable BLK_DEV_GENERIC? what is thhhe difference between IDE_GENERIC and BLK_DEV_GENERIC anyway. I think the problem is fixed then if these reading times are normal. Thanx for helping.
Those look OK. You can disable the old ATA/IDE code in entirity now.