From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,22a56892db6848bf,start X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2003-12-24 10:40:04 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!news-out.visi.com!green.octanews.net!news.octanews.net!cox.net!news-xfer.cox.net!newshub.sdsu.edu!logbridge.uoregon.edu!arclight.uoregon.edu!news-ext.gatech.edu!news.fsu.edu!not-for-mail From: Erick Newsgroups: comp.os.linux.alpha Subject: DMA not working with PDC20269 Date: Wed, 24 Dec 2003 13:31:41 -0500 Organization: Florida State University Message-ID: NNTP-Posting-Host: cook.met.fsu.edu Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.fsu.edu 1072290702 15059 128.186.99.135 (24 Dec 2003 18:31:42 GMT) X-Complaints-To: abuse@fsu.edu NNTP-Posting-Date: 24 Dec 2003 18:31:42 GMT User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Xref: archiver1.google.com comp.os.linux.alpha:332 Hi, After compiling kernel 2.4.23 on Debian 3.0 my Promise TX2 Ultra133 (20269) ATA adapter is detected as ide2. However, the kernel cannot enable DMA on the attached Maxtor 250GB (7Y250P0) ATA disk. I am pretty sure it is not a cable issue. I know of someone else who gets the same errors with the same card and a different drive (tested using several UDMA-capable cables). [...] Dec 22 16:51:49 magellan kernel: hde: Maxtor 7Y250P0, ATA DISK drive Dec 22 16:51:49 magellan kernel: blk: queue fffffc00006670d0, no I/O memory limit Dec 22 16:51:49 magellan kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 Dec 22 16:51:49 magellan kernel: ide2 at 0x200008010-0x200008017,0x200008022 on irq 47 Dec 22 16:51:49 magellan kernel: hde: attached ide-disk driver. Dec 22 16:51:49 magellan kernel: hde: host protected area => 1 Dec 22 16:51:49 magellan kernel: hde: 490234752 sectors (251000 MB) w/7936KiB Cache, CHS=30515/255/63, UDMA(133) Dec 22 16:51:49 magellan kernel: hda: attached ide-cdrom driver. Dec 22 16:51:49 magellan kernel: hda: ATAPI 48X CD-ROM drive, 120kB Cache Dec 22 16:51:49 magellan kernel: Uniform CD-ROM driver Revision: 3.12 Dec 22 16:51:49 magellan kernel: Partition check: Dec 22 16:51:49 magellan kernel: hde:<4>hde: dma_timer_expiry: dma status == 0x21 Dec 22 16:51:49 magellan kernel: hde: error waiting for DMA Dec 22 16:51:49 magellan kernel: hde: dma timeout retry: status=0x51 { DriveReady SeekComplete Error } Dec 22 16:51:49 magellan kernel: hde: dma timeout retry: error=0x84 { DriveStatusError BadCRC } Dec 22 16:51:49 magellan kernel: hde3 hde4 [...] I searched Usenet archives and found only references to bad/overlong cables and unsupported DMA in the driver. I guess DMA is supported in this driver so I'm puzzled. I compiled out DMA from the kernel. No errors on boot (with PIO mode) afterwards. I *am* able to use ``hdparm -X66 -d1'' to enable UDMA2 mode manually at that point. So far this seems to work without error (after some basic testing). (FWIW I found tweaking DMA with hdparm this way on a mounted fs leads to the errors above. Unmounted, it is ok.) Perhaps I should try a bleeding edge kernel? Or, is it sufficent, do you guess, to add hdparm commands to my rc.local?