LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   AcerTM4152LMi - cannot enable DMA (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/acertm4152lmi-cannot-enable-dma-340897/)

new.thing 07-07-2005 06:55 AM

AcerTM4152LMi - cannot enable DMA
 
Hi all,
I'm trying to install Slackware 10.1 on my Acer laptop, but I'm not able to set DMA on the hard disk. I've been recompiling kernel 2.6.12.2 for 2 days enabling/disabling all chipsets support.
lspci output is
...
00:1f.2 IDE interface: Intel Corp.: Unknown device 2653 (rev 04)
...

Finally yesterday I booted with Dyne:bolic which identified my IDE controller as SATA:

00:1f.2 IDE interface: Intel Corp. 82801FBM (ICH6M) SATA Controller (rev 04)

So I googled a bit finding a guy with the same chipset in http://www.meltin.net/hacks/linux/t43.html and here .config file flags suggested:

ATA/ATAPI/MFM/RLL support (IDE) [Y/n/m/?] y
Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support (BLK_DEV_IDE) [Y/n/m/?] y
Intel PIIXn chipsets support (BLK_DEV_PIIX) [Y/n/m/?] y
Include IDE/ATA-2 DISK support (BLK_DEV_IDEDISK) [Y/n/m/?] y
...
Include IDE/ATAPI CDROM support (BLK_DEV_IDECD) [M/n/y/?] m

SCSI device support (SCSI) [Y/m/?] y
...
SCSI disk support (BLK_DEV_SD) [Y/n/m/?] y
...
SCSI CDROM support (BLK_DEV_SR) [M/n/y/?] m
...
* SCSI low-level drivers
Serial ATA (SATA) support (SCSI_SATA) [Y/n/?] y
...
Intel PIIX/ICH SATA support (SCSI_ATA_PIIX) [Y/n/m/?] y

However I'm still not able to get DMA working..
Any suggestions would be really appreciated.. thanks a lot!!

new.thing 07-07-2005 07:23 AM

I add ioports usage:

0000-001f : dma1
0020-0021 : pic1
0040-0043 : timer0
0050-0053 : timer1
0060-006f : keyboard
0080-008f : dma page reg
00a0-00a1 : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : libata
0376-0376 : ide1
03c0-03df : vga+
0cf8-0cff : PCI conf1
1000-107f : motherboard
1000-1003 : PM1a_EVT_BLK
1004-1005 : PM1a_CNT_BLK
1008-100b : PM_TMR
1010-1015 : ACPI CPU throttle
1020-1020 : PM2_CNT_BLK
1028-102f : GPE0_BLK
1100-110f : 0000:00:1f.2
1100-110f : libata

and interrupts table:

CPU0
0: 2904750 XT-PIC timer
1: 9942 XT-PIC i8042
2: 0 XT-PIC cascade
5: 1 XT-PIC Intel ICH6
9: 71 XT-PIC acpi
10: 1 XT-PIC Intel ICH Modem, uhci_hcd:usb4, uhci_hcd:usb5
11: 6371 XT-PIC eth0, ehci_hcd:usb1, uhci_hcd:usb2, uhci_hcd:usb3
12: 365107 XT-PIC i8042
14: 0 XT-PIC libata
15: 134147 XT-PIC ide1
NMI: 0
ERR: 5

libata driver isn't working, because the counter is 0
may be the issue is in irq routing?

new.thing 07-07-2005 07:28 AM

Again an excerpt from dmesg:

Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ide0: I/O resource 0x1F0-0x1F7 not free.
ide0: ports already in use, skipping probe
Probing IDE interface ide1...
hdc: IC25N060ATMR04-0, ATA DISK drive
hdd: Slimtype DVDRW SOSW-833S, ATAPI CD/DVD-ROM drive
Probing IDE interface ide2...
Probing IDE interface ide3...
Probing IDE interface ide4...
Probing IDE interface ide5...
ide1 at 0x170-0x177,0x376 on irq 15
hdc: max request size: 1024KiB
hdc: 117210240 sectors (60011 MB) w/7884KiB Cache, CHS=16383/255/63
hdc: cache flushes supported
hdc: hdc1 hdc2 hdc3
hdd: ATAPI 24X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache
Uniform CD-ROM driver Revision: 3.20
libata version 1.11 loaded.
ata_piix version 1.03
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
ACPI: PCI Interrupt 0000:00:1f.2[B] -> Link [LNKD] -> GSI 11 (level, low) -> IRQ
11
ata: 0x170 IDE port busy
PCI: Setting latency timer of device 0000:00:1f.2 to 64
ata1: SATA max UDMA/133 cmd 0x1F0 ctl 0x3F6 bmdma 0x1100 irq 14
ata1: SATA port has no device.
scsi0 : ata_piix


.. I'll try to use libata driver only because it looks like ata_piix driver cannot allocate IO resources.. do you agree?

dhenry 07-20-2005 07:24 AM

Hello, I got exactly the same problem with an ACER TravelMate 4150LMi.

Outputs from hdparm/lscpi/dmesg can be found at http://tfc.duke.free.fr/acer.html

I tried to rebuild kernel too, but still no DMA... ;-(

I don't know why I have the message :
Code:

ide0: I/O resource 0x1F0-0x1F7 not free.
ide0: ports already in use, skipping probe

and then hard disk is on hdc instead of hda...

If you find something new, please post-it !

EDIT: found on LKML: http://www.ussg.iu.edu/hypermail/lin...05.2/1619.html
Perhaps it'll be fixed in the future... (I hope :-))

dhenry 07-20-2005 06:22 PM

Look at http://marc.theaimsgroup.com/?l=linu...piix+ICH6M&q=b, there are some interesting notes.

These threads are very interesting. There is a patch (not clean) that I have applied on the PIIXn module and I could enable DMA !!! I got 28 MB/s on /dev/hdc (hard disk) instead of 2 MB/s and could play a DVD movie !
-> http://marc.theaimsgroup.com/?l=linu...2992832526&w=2 but THIS IS NOT THE FINAL PROPER SOLUTION, it's a hack, it works in my case (and probably your) because I have only PATA disks, no SATA...

Moreover, it seems that it is going (or already?) to be fixed in ata_piix soon, according to http://www.forbiddenweb.org/viewtopic.php?id=39027 the fix must be enabled manually because “SATA ATAPI support is disabled by default because the code is not yet complete.”, Jeff Garzik said.

gromf88 07-21-2005 11:06 AM

Hello !

I also have an acer travelmate 4150lmi, and I have, of course, the same problem... Could you post or send me your .config file ?

Thanks a lot !

dhenry 07-21-2005 05:06 PM

Ok here is what I did :
* I downloaded the 2.6.10 kernel from ubuntu packages (because I'm running Ubuntu on this machine).
* I ran menuconfig (make menuconfig) and leaved it with default config. Here is it : http://tfc.duke.free.fr/old/tmp/.config (note that you can change the default arch to Pentium-M instead of i386).
* I applied this patch^Wwork-around manually : http://marc.theaimsgroup.com/?l=linu...2992832526&w=2 ; but I could'nt add the line DECLARE_PIIX_DEV("ICH6M") (kernel too old for that I suppose).
* I rebuild it (make, make modules_install, cp arch/i386/boot/bzImage /boot/vmLinuz-2.6.10, cp System.map /boot/System.map-2.6.10, mkinitrd -o /boot/initrd-2.6.10 2.6.10, edited /boot/grub/menu.lst to add my new kernel).

I rebooted and the DMA was working :-)

hdparm test with 2.6.10 :
Code:

/dev/hdc:
 Timing cached reads:  2568 MB in  2.00 seconds = 1282.91 MB/sec
 Timing buffered disk reads:    8 MB in  3.41 seconds =  2.34 MB/sec

/dev/hdd:
 Timing cached reads:  3064 MB in  2.00 seconds = 1531.47 MB/sec
 Timing buffered disk reads:    2 MB in  3.37 seconds = 607.81 kB/sec

hdparm test with 2.6.10 + PATCH :
Code:

/dev/hdc:
 Timing cached reads:  2144 MB in  2.00 seconds = 1072.16 MB/sec
 Timing buffered disk reads:  86 MB in  3.02 seconds =  28.49 MB/sec

/dev/hdd:
 Timing cached reads:  3156 MB in  2.00 seconds = 1576.66 MB/sec
 Timing buffered disk reads:    8 MB in  3.59 seconds =  2.23 MB/sec

I could play a DVD movie fine :-)

[/dev/hdc is hard disk, /dev/hdd is DVD drive, both PATA]

Now I will try to build a 2.6.12 kernel, using ata_piix where it should be properly fixed : according to http://www.forbiddenweb.org/viewtopic.php?id=39027, there is just this little change to do :
Quote:

You'll need to enable ATAPI support for ata_piix in
include/linux/libata.h

Change:
#undef ATA_ENABLE_ATAPI

into
#define ATA_ENABLE_ATAPI
I will repost here latter for conclusions.

[edit: je me suis fait chier à écrire tout ça en anglais alors que tu parles français ! ;o)]

gromf88 07-22-2005 03:02 AM

[Petite remarque: moi aussi je n'avais pas vu que tu parlais français... Mais si cela ne t'ennuie pas, on peut continuer en anglais vu que c'est un forum anglophone, comme cela ca pourra surement servir à d'autres...]

OK thank you for your reply !

But how did you manage to boot or install ubuntu (5.04 ?) ? On my laptop, it doesn't detect the cdrom drive during the boot instance...

I will try to compile a 2.6.12 kernel, and if it fails, I will try a 2.6.10...

dhenry 07-22-2005 04:31 AM

I installed Warty 4.10 and then upgraded to Hoary 5.04 (no problem has been encountered). I have also tried a daily CD image of breezy (july 16th 2005) and the IDE drives were still not detected... I bypassed this problem unloading ata_piix and ide-generic modules and reloading them : ide-generic first, and then ata_piix. But ata_piix caused a segfault and then hardware detection failed in the install process... I think we should open a bug. It has been corrected with latest CD images of Mandriva (10.1 and 10.2 failed too), probably because it uses a 2.6.12 kernel for the installer.

mac_is_mac 07-22-2005 05:04 AM

Hello David !

I was about to let you a message on linuxfr to advice you to have a look here.
I'm currently compiling a 2.6.12 modified with the hack and crossing the fingers !

Do you think that it is still necessary to add

ide-generic
ata_piix
sd_mod

in the initrd module list in order the DVD to be seen ?

dhenry 07-22-2005 05:17 AM

I have'nt tried it yet (I'll do this afternoon), so I don't know. Try it with and without. Don't forget the #define ATA_ENABLE_ATAPI.

mac_is_mac 07-22-2005 01:07 PM

The soft trick described in

http://www.forbiddenweb.org/viewtopic.php?id=39027

also works on a standard debian 2.6.11 kernel, as described by

http://irbs.sourceforge.net/toshiba-...-howto-en.html

I didn't put anything in /etc/mkinitrd/modules

The DVD becomes sr0 with DMA 33 enabled.

Strangely, my former eth1 becomes eth2 !

I did not switch to 2.6.12 due to a current problem with ipw2200
(fix exists, see http://www.bughost.org/bugzilla/show_bug.cgi?id=702 but
I did'nt succed at once, and I'm a bit fed up with linux tricks.

Thanks for your help.

dhenry 08-11-2005 11:55 AM

I haven't been able to get it working with the 2.6.12 kernel, and I'm quite bored so I will stay with the 2.6.10 from my Hory with the 4 lines patch for the 82801FBM.

gromf88 has found me on IRC, I give him my kernel and it worked. You can download it at : http://tfc.duke.free.fr/old/tmp/acer...l-acer.tar.bz2

This is a 2.6.10 kernel from Ubuntu hoary. You will need to copy the iwp2200 firmware files in order to get the WIFI working with this kernel.

mac_is_mac 08-11-2005 01:19 PM

You can try my 2.6.12 kernel at

http://www.univ-orleans.fr/mapmo/mem.../medion/noyau/

Got support for ipw2200 by compilling manually
ipw2200-1.0.6.tgz
ieee80211-1.0.3.tgz


All times are GMT -5. The time now is 12:02 AM.