Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 165944 - DMA doesn't work on acer aspire 9410 with ICH7 chipset (82801G)
Summary: DMA doesn't work on acer aspire 9410 with ICH7 chipset (82801G)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
: 165950 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-02-08 17:23 UTC by Ewoud Canniere
Modified: 2007-02-26 17:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
dmesg with ata_piix enabled (dmesg-ata_piix,25.96 KB, text/plain)
2007-02-10 16:45 UTC, Ewoud Canniere
Details
dmesg with blk_dev_piix enabled (dmesg-blk_dev_piix,20.73 KB, text/plain)
2007-02-10 16:58 UTC, Ewoud Canniere
Details
kernel 2.6.20 with ata_piix enabled (dmesg.txt,21.84 KB, text/plain)
2007-02-26 09:07 UTC, Ewoud Canniere
Details
.config of 2.6.20 kernel (.config,33.42 KB, text/plain)
2007-02-26 14:30 UTC, Ewoud Canniere
Details
dmesg of previous posted config (dmesg,21.55 KB, text/plain)
2007-02-26 14:34 UTC, Ewoud Canniere
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ewoud Canniere 2007-02-08 17:23:45 UTC
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
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-02-08 18:17:21 UTC
*** Bug 165950 has been marked as a duplicate of this bug. ***
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2007-02-08 18:43:44 UTC
Please define "doesn't work" and post dmesg attachments from the configurations you have tried
Comment 3 Ewoud Canniere 2007-02-10 16:45:42 UTC
Created attachment 109747 [details]
dmesg with ata_piix enabled
Comment 4 Ewoud Canniere 2007-02-10 16:58:30 UTC
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)
Comment 5 Ewoud Canniere 2007-02-14 09:11:03 UTC
Do i have to put some more information or is this enough?

Greetz,
Ewoud
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2007-02-24 18:10:34 UTC
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.
Comment 7 Ewoud Canniere 2007-02-26 09:07:46 UTC
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
Comment 8 Daniel Drake (RETIRED) gentoo-dev 2007-02-26 13:09:47 UTC
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
Comment 9 Ewoud Canniere 2007-02-26 14:30:17 UTC
Created attachment 111294 [details]
.config of 2.6.20 kernel
Comment 10 Ewoud Canniere 2007-02-26 14:34:45 UTC
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
Comment 11 Daniel Drake (RETIRED) gentoo-dev 2007-02-26 15:57:13 UTC
You still have the generic IDE driver in your kernel

CONFIG_IDE_GENERIC=y

Comment 12 Ewoud Canniere 2007-02-26 16:07:38 UTC
(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.
Comment 13 Daniel Drake (RETIRED) gentoo-dev 2007-02-26 16:26:13 UTC
Your hard disk will have moved to sda
Comment 14 Ewoud Canniere 2007-02-26 16:38:03 UTC
(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?
Comment 15 Ewoud Canniere 2007-02-26 16:45:47 UTC
and should BLK_DEV_GENERIC be on or off? 

Thanx
Comment 16 Daniel Drake (RETIRED) gentoo-dev 2007-02-26 16:57:24 UTC
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.
Comment 17 Ewoud Canniere 2007-02-26 17:21:39 UTC
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.
Comment 18 Daniel Drake (RETIRED) gentoo-dev 2007-02-26 17:40:14 UTC
Those look OK. You can disable the old ATA/IDE code in entirity now.