From owner-freebsd-questions@FreeBSD.ORG Mon Jul 5 22:40:25 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C170516A4D1 for ; Mon, 5 Jul 2004 22:40:25 +0000 (GMT) Received: from mailfe05.swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D10043D60 for ; Mon, 5 Jul 2004 22:40:24 +0000 (GMT) (envelope-from doktorn@sub.nu) X-T2-Posting-ID: dGyib7f8mOjyC5Bn3R4uXg== Received: from studsboll.realworld.nu ([213.100.166.81] verified) by mailfe05.swip.net (CommuniGate Pro SMTP 4.2b6) with ESMTP id 90767015 for freebsd-questions@freebsd.org; Tue, 06 Jul 2004 00:40:20 +0200 Received: from studsboll.realworld.nu (localhost.realworld.nu [127.0.0.1]) i65MeMrd025249 for ; Tue, 6 Jul 2004 00:40:23 +0200 (CEST) (envelope-from doktorn@sub.nu) Date: Tue, 6 Jul 2004 00:39:07 +0200 From: Rickard =?ISO-8859-1?Q?Borgm=E4ster?= To: freebsd-questions@freebsd.org Message-Id: <20040706003907.4905882c.doktorn@sub.nu> X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd4.10) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Subject: Hard drive problem... S-ATA/ATA and DMA error messages X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jul 2004 22:40:26 -0000 Hi, Having recently upgraded my motherboard to a brand new Asus P4V8X-X with S-ATA and added an S-ATA disk I experience some problems I find kind of weird. System is installed on 160MB S-ATA disk ad4 and my previous 160 ATA/UDMA133 is on ad0 mounted as /big. Booting up, dmesg gives me this confusing message: atapci1: port 0xfc00-0xfc0f at device 15.1 on pci0 ata0: at 0x1f0 irq 14 on atapci1 ata1: at 0x170 irq 15 on atapci1 [...] ad0: 156334MB [317632/16/63] at ata0-master UDMA133 ad4: DMA limited to UDMA33, non-ATA66 cable or device ad4: 152627MB [310101/16/63] at ata2-master UDMA33 How come FreeBSD kernel thinks my S-ATA disk is only capable of UDMA/33? The S-ATA disk is connected to the motherboard by it's own S-ATA cable, thus not the problem of two disks with different speeds on same cable. Beeing new to S-ATA I may have misunderstood things, but the way I see it, the S-ATA bus and regular ATA bus is isolated and should not bother eachofter, right? Next thing is that I today tried to move ~70GB of data from ad0 (ATA/UDMA133) to ad4 (S-ATA) disk. During the cp process I got these messages: Jul 5 15:13:18 studsboll /kernel: ad0s1e: hard error reading fsbn 390440063 of 195220000-195220255 (ad0s1 bn 390440063; cn 24303 tn 196 sn 20) trying PIO mode Jul 5 15:13:18 studsboll /kernel: ad0: DMA problem fallback to PIO mode Jul 5 15:13:18 studsboll last message repeated 6 times Jul 5 15:13:21 studsboll /kernel: ad0s1e: hard error reading fsbn 390440175 of 195220000-195220255 (ad0s1 bn 390440175; cn 24303 tn 198 sn 6) status=59 error=40 Jul 5 15:13:24 studsboll /kernel: ad0s1e: hard error reading fsbn 390440271 of 195220096-195220255 (ad0s1 bn 390440271; cn 24303 tn 199 sn 39) status=59 error=40 Jul 5 15:13:27 studsboll /kernel: ad0s1e: hard error reading fsbn 390440271 of 195220096-195220223 (ad0s1 bn 390440271; cn 24303 tn 199 sn 39) status=59 error=40 Jul 5 16:34:39 studsboll /kernel: ad0s1e: hard error reading fsbn 228774239 of 114387008-114387263 (ad0s1 bn 228774239; cn 14240 tn 137 sn 8) status=59 error=40 Jul 5 16:34:42 studsboll /kernel: ad0s1e: hard error reading fsbn 228774271 of 114387040-114387263 (ad0s1 bn 228774271; cn 14240 tn 137 sn 40) status=59 error=40 Jul 5 16:34:44 studsboll /kernel: ad0s1e: hard error reading fsbn 228774399 of 114387168-114387263 (ad0s1 bn 228774399; cn 14240 tn 139 sn 42) status=59 error=40 Jul 5 16:34:47 studsboll /kernel: ad0s1e: hard error reading fsbn 228774399 of 114387168-114387263 (ad0s1 bn 228774399; cn 14240 tn 139 sn 42) status=59 error=40 There are 2 different errors here. First we have a "hard reading error" and then "DMA problem". The DMA problem, at ad0 (ATA/UDMA133 disk, weird enough) tells me that I might be wrong about that S-ATA and regular ATA disk does not bother eachother. Someone please explain this... the disk has been working 100% fine on my old motherboard afaik. The "hard reading error" is supposed to be about damaged sectors on the disk. Is it always like that, or could the errors come from some kind of bus error, ie same source of problems as the UDMA errors? The disk is rather new and shouldn't have broken sectors. I suppose. I'd really like som kind of tip on where to start. At the moment I can't think of anything that's wrong. Complete dmesg follows: Copyright (c) 1992-2004 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.10-STABLE #1: Wed Jun 2 21:26:45 CEST 2004 root@:/usr/obj/usr/src/sys/STUDSBOLL Timecounter "i8254" frequency 1193182 Hz CPU: Intel(R) Celeron(R) CPU 2.80GHz (2799.93-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf29 Stepping = 9 Features=0xbfebfbff real memory = 536018944 (523456K bytes) avail memory = 516935680 (504820K bytes) Preloaded elf kernel "kernel" at 0xc0481000. Warning: Pentium 4 CPU: PSE disabled Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 10 entries at 0xc00f5a40 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 agp0: mem 0xe0000000-0xe3ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 11 pci1: at 0.1 ahc0: port 0xed00-0xedff mem 0xdfb00000-0xdfb00fff irq 3 at device 11.0 on pci0 aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xec00-0xec7f mem 0xdfd00000-0xdfd0007f irq 10 at device 13.0 on pci0 xl0: Ethernet address: 00:01:02:fa:84:31 miibus0: on xl0 xlphy0: <3c905C 10/100 internal PHY> on miibus0 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto atapci0: port 0xe800-0xe8ff,0xef90-0xef9f,0xefa8-0xefab,0xefa0-0xefa7,0xefac-0xefaf,0xe fe0-0xefe7 irq 10 at device 15.0 on pci0 ata2: at 0xefe0 on atapci0 ata3: at 0xefa0 on atapci0 atapci1: port 0xfc00-0xfc0f at device 15.1 on pci0 ata0: at 0x1f0 irq 14 on atapci1 ata1: at 0x170 irq 15 on atapci1 uhci0: port 0xeec0-0xeedf irq 11 at device 16.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 0xef00-0xef1f irq 11 at device 16.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 16.4 irq 5 isab0: at device 17.0 on pci0 isa0: on isab0 pcm0: port 0xe000-0xe0ff irq 5 at device 17.5 on pci0 pcm0: pci0: (vendor=0x1106, dev=0x3065) at 18.0 irq 11 orm0: