From owner-freebsd-stable Wed Jan 8 5:59: 7 2003 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B5A3137B401 for ; Wed, 8 Jan 2003 05:59:03 -0800 (PST) Received: from fed1mtao04.cox.net (fed1mtao04.cox.net [68.6.19.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1700343EB2 for ; Wed, 8 Jan 2003 05:59:03 -0800 (PST) (envelope-from ciscogeek@vzavenue.net) Received: from vzavenue.net ([68.99.199.125]) by fed1mtao04.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20030108135903.QACU27125.fed1mtao04.cox.net@vzavenue.net> for ; Wed, 8 Jan 2003 08:59:03 -0500 Message-ID: <3E1C2EA6.18C86871@vzavenue.net> Date: Wed, 08 Jan 2003 06:59:02 -0700 From: Janet Sullivan X-Mailer: Mozilla 4.8 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-stable@freebsd.org Subject: ATA corruption in DMA mode Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG If I copy large (500 meg) files between directories with DMA on, the copy becomes corrupt. If I turn DMA off and use PIO mode, the copy is fine. Smaller files do not seem to trigger this problem. I am using STABLE from a couple of days ago, although I think I may have been having this problem for a longer time. I have a Soyo KT333 Platinum Dragon motherboard with a built in Highpoint IDE raid controller. The corruption happens on my ar0 array, which is RAID 1 and consists of two Western Digital 40g drives. fsck has never found any problems with these drives. I'm using 80-pin cables, and the array used to run clean (around 4.6 and before). Any suggestions would be welcome. My dmesg follows: [esca] (ciscogeek) dmesg -a Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.7-STABLE #0: Mon Jan 6 22:24:04 MST 2003 root@esca.apocrypha.bgp4.net:/usr/obj/usr/src/sys/ESCA Timecounter "i8254" frequency 1193182 Hz CPU: AMD Athlon(tm) XP 2000+ (1666.49-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x662 Stepping = 2 Features=0x383f9ff AMD Features=0xc0400000 real memory = 268369920 (262080K bytes) avail memory = 257699840 (251660K bytes) Preloaded elf kernel "kernel" at 0xc0366000. Pentium Pro MTRR support enabled Using $PIR table, 10 entries at 0xc00fded0 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 11 fxp0: port 0x9000-0x903f mem 0xe7000000-0xe70fffff,0xe7100000-0xe7100fff irq 10 at device 10.0 on pci0 fxp0: Ethernet address 00:d0:b7:a0:f3:d0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pcm0: port 0x9400-0x943f irq 11 at device 11.0 on pci0 uhci0: port 0x9c00-0x9c1f irq 10 at device 14.0 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xa000-0xa01f irq 10 at device 14.1 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered pci0: at 14.2 irq 11 atapci0: port 0xb400-0xb4ff,0xb000-0xb003,0xac00-0xac07,0xa800-0xa803,0xa400-0xa407 irq 10 at device 15.0 on pci0 ata2: at 0xa400 on atapci0 ata3: at 0xac00 on atapci0 isab0: at device 17.0 on pci0 isa0: on isab0 atapci1: port 0xbc00-0xbc0f at device 17.1 on pci0 ata0: at 0x1f0 irq 14 on atapci1 ata1: at 0x170 irq 15 on atapci1 uhci2: port 0xc000-0xc01f irq 11 at device 17.2 on pci0 usb2: on uhci2 usb2: USB revision 1.0 uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhci3: port 0xc400-0xc41f irq 11 at device 17.3 on pci0 usb3: on uhci3 usb3: USB revision 1.0 uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered orm0: