From owner-freebsd-questions Wed Nov 22 7:14:42 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.thpoon.com (cr103675-a.bloor1.on.wave.home.com [24.114.152.71]) by hub.freebsd.org (Postfix) with SMTP id AA36B37B4C5 for ; Wed, 22 Nov 2000 07:14:38 -0800 (PST) Received: (qmail 32494 invoked from network); 22 Nov 2000 15:14:37 -0000 Received: from unknown (HELO tea.thpoon.com) (mail@192.168.1.2) by cr103675-a.bloor1.on.wave.home.com with SMTP; 22 Nov 2000 15:14:37 -0000 Received: from antipode by tea.thpoon.com with local (Exim 3.12 #1 (Debian)) id 13ybbZ-0007AW-00 for ; Wed, 22 Nov 2000 10:14:37 -0500 To: freebsd-questions@FreeBSD.ORG Subject: ata driver, PIIX3, DMA for hard drive, and HARD READ ERROR From: Arcady Genkin X-Face: 0=A/O5-+sE[Tf%X>rYr?Y5LD4,:^'jaJ!4jC&UR*ZrrK2>^`g22Qeb]!:d;}2YJ|Hq"LHdF OX`jWX|AT-WVFQ(TPhFVak)0nt$aEdlOq=1~D,:\z5QlVOrZ2(H,mKg=Xr|'VlHA="r Organization: thpoon.com Mail-Copies-To: never Date: 22 Nov 2000 10:14:37 -0500 Message-ID: <87aeas9gyq.fsf@tea.thpoon.com> Lines: 72 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Channel Islands) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have a Pentium Gigabyte GA-586HX motherboard with an HX chipset. It has PIIX3 IDE controller on board. To it are connected two hard drives: a 13G IBM (72K RPM) and a 19G Quantum BigFoot. The IBM is the master drive, and both drives are connected to the secondary controller.[1] The system is a 4.1.1. ,----[ dmesg ] | atapci0: port 0xf000-0xf00f at device 7.1 on pci0 | ata1: at 0x170 irq 15 on atapci0 | ata1-master: DMA limited to UDMA33, non-ATA66 compliant cable | ad2: 13042MB [26500/16/63] at ata1-master WDMA2 | ad3: 18366MB [37317/16/63] at ata1-slave WDMA2 `---- The IBM disk gives me HARD READ ERRORS, which scares me quite a bit. It all starts with a message from the kernel: ,----[ dmesg ] | ad2: HARD READ ERROR blk# 25418671ad2: DMA problem fallback to PIO mode | ad2: HARD READ ERROR blk# 25418687 status=59 error=40 | ad2: DMA problem fallback to PIO mode | ad2: HARD READ ERROR blk# 25418687 status=59 error=40 | ad2: HARD READ ERROR blk# 25418687 status=59 error=40 | ad2: HARD READ ERROR blk# 25677679 status=59 error=40 | ad2: HARD READ ERROR blk# 25677679 status=59 error=40 `---- The ata(4) man page says that PIIX3 supports DMA2, and I know that the drive supports it for sure. However, the documentation to the motherboard has no mention of DMA for the IDE: ,----[ GA-586HX manual ] | 2-channel Enhanced IDE on board. | Supports Mode 3,4 IDE & ATAPI CD-ROM. `---- The errors only come up once in several days. The computer has been up for 20 days, and there have been only 7 such messages. The first drive has fallen back to pio mode, while the second still remains in DMA. However, also note that even in PIO mode it still gives me the HARD READ errors. ,----[ soup:~# sysctl hw.atamodes ] | hw.atamodes: pio,dma, `---- I've installed this hard drive 20 days ago, when the previous one died. The previous drive was also giving me the same kind of errors, which makes me think that perhaps the errors are not the drive's fault. My kernel config file has the following relevant options: ,---- | options SOFTUPDATES | device ata | device atadisk # ATA disk drives | options ATA_STATIC_ID #Static device numbering `---- The question is: how do I find out if the error comes from the drive or the controller or a bug in the driver? [1] I moved the IBM to the secondary controller when I started getting the HARD READ ERROR's. Before that it was on the primary by itself, and the Quantum was on the secondary by itself. I thought that perhaps the primary controller was broken, so I switched it, and it turns out that the same problem appears on the secondary. Many thanks, -- Arcady Genkin Don't read everything you believe. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message