Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 26 Nov 2000 14:52:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 26 Nov 2000 14:52:34 -0500 Received: from mailout03.sul.t-online.com ([194.25.134.81]:63502 "EHLO mailout03.sul.t-online.com") by vger.kernel.org with ESMTP id convert rfc822-to-8bit; Sun, 26 Nov 2000 14:52:25 -0500 Date: Sun, 26 Nov 2000 20:21:56 +0100 (CET) From: chr.roessner@t-online.de (Christian Roessner) Subject: PROBLEM: (U)DMA, dma_intr status=0x51, error=0x84 To: linux-kernel@vger.kernel.org X-Mailer: Mahogany, 0.60 'Redmond', compiled for Linux 2.2.16 i686 Reply-To: chr.roessner@t-online.de MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-1; CHARSET=ISO-8859-1 Content-Transfer-Encoding: 8BIT Content-Disposition: INLINE Message-ID: <1407NL-1qe1CqC@fwd01.sul.t-online.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hello, I recently sent an eMail to you, reporting a bug. I got two answers. One talking about a wrong used cable. Another talking about problems with ATI graphic cards and (U)DMA. My ATI is an AGP-card so the answer couldn?t help me. I changed the cable, although I used the correct cable before and nothing has changed. I still have problems using DMA Mode (33 and 66 MB/sec). So I think there must be an other reason for the DMA problem. The anser-eMails are at the end of this mail. I compiled the kernel with CONFIG_BLK_DEV_VIA82CXXX=yes, but this does not help anything. Do you think it is the hardware or the kernel? Can I damage my system using (U)DMA mode although I get errors? I used the formular to produce a bug-report: 1.) See subject 2.) I have trouble using DMA mode with my Siemens Fujitsu harddisk on a NMC 6vcx Motherboard. I compiled the kernel with DMA support, multi mode VIA chipset support and booting DMA by default when available. I used the command "updatedb" and "find" and "bonnie" to have much read access. No problem occurs. I used xmms to convert mp3-files into wav. There I get many errors of the following: hda: dma_intr status=0x51 {DriveReadySeekComplete Error} hda: dma_intr error=0x84 {DriveStatusError BadCRC} I do not want to run the harddisk in PIO mode. I used hdparm to change some settings (infos from SuSE Support database) hdparm -d 1 -c 0 -X66 /dev/hda (also without -X66) and hdparm -d 1 -c 1 -X66 /dev/hda (also without -X66) at least hdparm -d 0 /dev/hda Nothing changed. (only performance maybe) 3.) Keywords: (U)DMA 4.) Linux version 2.4.0-test11 (root@informatik) (gcc version 2.95.2 19991024 (release)) #15 Wed Nov 22 18:40:38 CET 2000 5.) No Oops Output available 6.) Xmms is able to produce the error by using the diskwriter modul 7.) Environment: -1.) Kernel modules 2.3.20 Gnu C 2.95.2 Gnu Make 3.79.1 Binutils 2.9.5.0.24 Linux C Library x 1 root root 4070406 Jul 30 21:41 /lib/libc.so.6 Dynamic linker ldd (GNU libc) 2.1.3 Procps 2.0.6 Mount 2.10q Net-tools 1.56 Kbd 0.99 Sh-utils 2.0 Modules Loaded snd-pcm-oss snd-pcm-plugin snd-mixer-oss tuner tvaudio bttv videodev ppp_deflate bsd_comp ppp_async ppp_generic snd-card-via686a snd-pcm snd-timer snd-mpu401-uart snd-rawmidi snd-seq-device snd-ac97-codec snd-mixer snd ipv6 3c59x hisax isdn slhc AM53C974 ide-scsi usb-uhci usbcore -2.) processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 5 model name : Pentium II (Deschutes) stepping : 2 cpu MHz : 350.000809 cache size : 512 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes features : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr bogomips : 699.60 -3.) snd-pcm-oss 18352 0 (autoclean) snd-pcm-plugin 14672 0 (autoclean) [snd-pcm-oss] snd-mixer-oss 5120 1 (autoclean) [snd-pcm-oss] tuner 3232 1 (autoclean) tvaudio 7792 0 (autoclean) (unused) bttv 54768 1 (autoclean) videodev 4512 3 (autoclean) [bttv] ppp_deflate 39200 0 (autoclean) bsd_comp 4160 0 (autoclean) ppp_async 6224 1 (autoclean) ppp_generic 13024 3 (autoclean) [ppp_deflate bsd_comp ppp_async] snd-card-via686a 7408 1 (autoclean) snd-pcm 31776 0 (autoclean) [snd-pcm-oss snd-pcm-plugin snd-card-via686a] snd-timer 8512 0 (autoclean) [snd-pcm] snd-mpu401-uart 2640 0 (autoclean) [snd-card-via686a] snd-rawmidi 10144 0 (autoclean) [snd-mpu401-uart] snd-seq-device 3744 0 (autoclean) [snd-rawmidi] snd-ac97-codec 24288 0 (autoclean) [snd-card-via686a] snd-mixer 24208 0 (autoclean) [snd-mixer-oss snd-ac97-codec] snd 36384 1 [snd-pcm-oss snd-pcm-plugin snd-mixer-oss snd-card-via686a snd-pcm snd-timer snd-mpu401-uart snd-rawmidi snd-seq-device sc97-codec snd-mixer] ipv6 113296 -1 (autoclean) 3c59x 22192 1 (autoclean) hisax 146608 5 isdn 98912 6 [hisax] slhc 4592 2 [ppp_generic isdn] AM53C974 12096 0 (unused) ide-scsi 7840 0 usb-uhci 21424 0 (unused) usbcore 49344 1 [usb-uhci] -4.) 0000-001f : dma1 0020-003f : pic1 0040-005f : timer 0060-006f : keyboard 0080-008f : dma page reg 00a0-00bf : pic2 00c0-00df : dma2 00f0-00ff : fpu 0170-0177 : ide1 01f0-01f7 : ide0 0213-0213 : isapnp read 0240-025f : avm PnP 02f8-02ff : serial(auto) 0320-0321 : VIA 82C686A - MPU401 0376-0376 : ide1 03c0-03df : vga+ 03f6-03f6 : ide0 03f8-03ff : serial(auto) 0a79-0a79 : isapnp write 0cf8-0cff : PCI conf1 5000-500f : VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] 6000-607f : VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] c000-cfff : PCI Bus #01 c000-c0ff : ATI Technologies Inc Rage 128 RF d000-d00f : VIA Technologies, Inc. Bus Master IDE d000-d007 : ide0 d008-d00f : ide1 d400-d41f : VIA Technologies, Inc. UHCI USB d400-d41f : usb-uhci dc00-dcff : VIA Technologies, Inc. AC97 Audio Controller dc00-dcff : VIA 82C686A - AC'97 e000-e003 : VIA Technologies, Inc. AC97 Audio Controller e400-e403 : VIA Technologies, Inc. AC97 Audio Controller e400-e403 : VIA 82C686A - MPU401 config e800-e87f : Advanced Micro Devices [AMD] 53c974 [PCscsi] ec00-ec7f : 3Com Corporation 3c905B 100BaseTX [Cyclone] ec00-ec7f : eth0 00000000-0009fbff : System RAM 0009fc00-0009ffff : reserved 000a0000-000bffff : Video RAM area 000c0000-000c7fff : Video ROM 000cc000-000ce1ff : Extension ROM 000f0000-000fffff : System ROM 00100000-07feffff : System RAM 00100000-00240747 : Kernel code 00240748-00259667 : Kernel data 07ff0000-07ff2fff : ACPI Non-volatile Storage 07ff3000-07ffffff : ACPI Tables e0000000-e3ffffff : VIA Technologies, Inc. VT82C693A/694x [Apollo PRO133x] e4000000-e7ffffff : PCI Bus #01 e4000000-e7ffffff : ATI Technologies Inc Rage 128 RF e4000000-e7ffffff : aty128fb FB e8000000-e9ffffff : PCI Bus #01 e9000000-e9003fff : ATI Technologies Inc Rage 128 RF e9000000-e9003fff : aty128fb MMIO ec000000-ec00007f : 3Com Corporation 3c905B 100BaseTX [Cyclone] ec001000-ec001fff : Brooktree Corporation Bt848 TV with DMA push ec001000-ec001fff : bttv ffff0000-ffffffff : reserved -5.) Look at the bottom please. -6.) Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: IOMEGA Model: ZIP 250 Rev: 51.G Type: Direct-Access ANSI SCSI revision: ffffffff Host: scsi0 Channel: 00 Id: 01 Lun: 00 Vendor: ATAPI Model: CD-R/RW 4X4X32 Rev: 3.DS Type: CD-ROM ANSI SCSI revision: 02 Host: scsi1 Channel: 00 Id: 00 Lun: 00 Vendor: PIONEER Model: CD-ROM DR-U24X Rev: 1.01 Type: CD-ROM -7.) hdparm -i /dev/hda Model=FUJITSU MPE3273AT, FwRev=ED-82-25, SerialNo=05006851 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs } RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4 BuffType=0(?), BuffSize=2048kB, MaxMultSect=16, MultSect=16 DblWordIO=no, OldPIO=2, DMA=yes, OldDMA=0 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=53377152 tDMA={min:120,rec:120}, DMA modes: mword0 mword1 mword2 IORDY=yes, tPIO={min:120,w/IORDY:120}, PIO modes: mode3 mode4 UDMA modes: mode0 mode1 *mode2 Drive Supports : ATA-1 ATA-2 ATA-3 ATA-4 hdparm -I /dev/hda Model=UFIJST UPM3E72A3 T , FwRev=DE8--252, SerialNo=50008615 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs } RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4 BuffType=0(?), BuffSize=2048kB, MaxMultSect=16, MultSect=16 DblWordIO=no, OldPIO=2, DMA=yes, OldDMA=0 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=53377152 tDMA={min:120,rec:120}, DMA modes: mword0 mword1 mword2 IORDY=yes, tPIO={min:120,w/IORDY:120}, PIO modes: mode3 mode4 UDMA modes: mode0 mode1 *mode2 Drive Supports : ATA-1 ATA-2 ATA-3 ATA-4 I hope that is all you need on information. The problem does not occur with Kernel 2.2.16 (SuSE-patch) Please let me know, if that is/was a bug. If I did something wrong with configuration, I was thankful for helping me fixing the problem. Sincercley Christian Roessner ----- Attachments: 00:00.0 Host bridge: VIA Technologies, Inc. VT82C691 [Apollo PRO] (rev 44) Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- 00:01.0 PCI bridge: VIA Technologies, Inc. VT82C598 [Apollo MVP3 AGP] (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- Reset- FastB2B- Capabilities: [80] Power Management version 2 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- 00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super] (rev 1b) Subsystem: VIA Technologies, Inc. VT82C686/A PCI to ISA Bridge Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B- Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- [disabled] [size=128K] Capabilities: [50] AGP version 2.0 Status: RQ=31 SBA+ 64bit- FW- Rate=x1,x2 Command: RQ=0 SBA+ AGP- 64bit- FW- Rate= Capabilities: [5c] Power Management version 1 Flags: PMEClk- DSI- D1+ D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- First answer eMail: > hda: dma_intr error=0x84 {DriveStatusError BadCRC} CRC means that a transfer was corrupted. normally, this is because you are using a bogus cable. all ide/ata cables must be 18" or less, with both ends plugged in. > hdparm -d 1 -c 0 -X66 /dev/hda (also without -X66) udma2 (33 MB/s) doesn't require the 80-conductor cable, but it never hurts. you could try X65. is it safe to assume you have CONFIG_BLK_DEV_VIA82CXXX=y? Second answer eMail: We just had to replace a PCI video card with an AGP card as the old video card couldn't handle the higher PCI bus rates. We were getting disk corruption with Windows NT. The video card was an ATI (don't think it was a Rage though). If you have an AGP slot you might consider giving this a try. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/