From nobody@FreeBSD.org  Mon Dec 27 04:42:40 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id CA16416A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 27 Dec 2004 04:42:40 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A3BF943D2F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 27 Dec 2004 04:42:40 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id iBR4geYZ067744
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 27 Dec 2004 04:42:40 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id iBR4gepv067743;
	Mon, 27 Dec 2004 04:42:40 GMT
	(envelope-from nobody)
Message-Id: <200412270442.iBR4gepv067743@www.freebsd.org>
Date: Mon, 27 Dec 2004 04:42:40 GMT
From: Steve Fatula <sfatula@usa.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Various DMA errors result in system panics
X-Send-Pr-Version: www-2.3

>Number:         75531
>Category:       i386
>Synopsis:       Various DMA errors result in system panics
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    remko
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 27 04:50:23 GMT 2004
>Closed-Date:    Sat Oct 29 14:15:30 GMT 2005
>Last-Modified:  Sat Oct 29 14:23:47 GMT 2005
>Originator:     Steve Fatula
>Release:        5.3 Stable
>Organization:
SOHO PBX Consulting Inc.
>Environment:
FreeBSD linux.sohopbxconsulting.biz 5.3-STABLE FreeBSD 5.3-STABLE #0: Tue Dec 21
 19:19:56 CST 2004     root@linux.sohopbxconsulting.biz:/usr/obj/usr/src/sys/cur
rent5.3  i386

>Description:
Ok, using 120GB WD Drives, WD1200JB-00FUA0/15.05R15, 2 of them, ASUS A7V880 Motherboard (also, A7V600-X Motherboard), get lots of WRITE_DMA failed messages from AD0. Eventually, system panics. Tried only 1 drive on a cable (IDE controller), it;s actually worse, also get READ-DMA errors, UDMA ICRC errors, etc. Both drives on one IDE cable (Master/Slave) runs for around an hour before panic. 

I see lots and lots of other people with similar problems. Apparently, many of them run fine with FreeBSD 4. I do not have a 4 box. I tried numerous permutations of BIOS settings to no avail. Only solution is hw.ata.ata_dma="0" to disable DMA. 

This hardware worked fine on an ASUS A7V133 motherboard running 5.2.1, and, when updated motherboard to a ASUS A7V600-X, problems occurred. Thinking it might be hardware (motherboard), went to a A7V880. Same issues. Here's the pciconf output:

pciconf -vl
agp0@pci0:0:0:  class=0x060000 card=0x81221043 chip=0x02691106 rev=0x80 hdr=0x00
    vendor   = 'VIA Technologies Inc'
    device   = 'KT880 CPU to PCI Bridge'
    class    = bridge
    subclass = HOST-PCI
hostb0@pci0:0:1:        class=0x060000 card=0x81221043 chip=0x12691106 rev=0x00 hdr=0x00
    vendor   = 'VIA Technologies Inc'
    device   = 'KT880 CPU to PCI Bridge'
    class    = bridge
    subclass = HOST-PCI
hostb1@pci0:0:2:        class=0x060000 card=0x81221043 chip=0x22691106 rev=0x00 hdr=0x00
    vendor   = 'VIA Technologies Inc'
    device   = 'KT880 CPU to PCI Bridge'
    class    = bridge
    subclass = HOST-PCI
hostb2@pci0:0:3:        class=0x060000 card=0x81221043 chip=0x32691106 rev=0x00 hdr=0x00
    vendor   = 'VIA Technologies Inc'
    device   = 'KT880 CPU to PCI Bridge'
    class    = bridge
    subclass = HOST-PCI
hostb3@pci0:0:4:        class=0x060000 card=0x81221043 chip=0x42691106 rev=0x00 hdr=0x00
    vendor   = 'VIA Technologies Inc'
    device   = 'KT880 CPU to PCI Bridge'
    class    = bridge
    subclass = HOST-PCI
hostb4@pci0:0:7:        class=0x060000 card=0x81221043 chip=0x72691106 rev=0x00 hdr=0x00
    vendor   = 'VIA Technologies Inc'
    device   = 'KT880 CPU to PCI Bridge'
    class    = bridge
    subclass = HOST-PCI
pcib1@pci0:1:0: class=0x060400 card=0x00000070 chip=0xb1981106 rev=0x00 hdr=0x01
    vendor   = 'VIA Technologies Inc'
    device   = 'ProSavageDDR P4X600 CPU to AGP Bridge'
    class    = bridge
    subclass = PCI-PCI
skc0@pci0:9:0:  class=0x020000 card=0x811a1043 chip=0x432011ab rev=0x13 hdr=0x00
    vendor   = 'Marvell Semiconductor (Was: Galileo Technology Ltd)'
    device   = '88E8001 Gigabit 32-bit Ethernet Controller with Integrated PHY'
    class    = network
    subclass = ethernet
atapci0@pci0:15:0:      class=0x010400 card=0x80ed1043 chip=0x31491106 rev=0x80 hdr=0x00
    vendor   = 'VIA Technologies Inc'
    device   = '??? SATA RAID Controller'
    class    = mass storage
    subclass = RAID
atapci1@pci0:15:1:      class=0x01018a card=0x80ed1043 chip=0x05711106 rev=0x06 hdr=0x00
    vendor   = 'VIA Technologies Inc'
    device   = 'VT82xxxx EIDE Controller (All VIA Chipsets)'
    class    = mass storage
    subclass = ATA
isab0@pci0:17:0:        class=0x060100 card=0x80ed1043 chip=0x32271106 rev=0x00 hdr=0x00
    vendor   = 'VIA Technologies Inc'
    device   = 'VT8237 PCI-to-ISA Bridge'
    class    = bridge
    subclass = PCI-ISA
none0@pci1:0:0: class=0x030000 card=0x002e1043 chip=0x51591002 rev=0x00 hdr=0x00
    vendor   = 'ATI Technologies Inc.'
    device   = 'RV100 Radeon 7000 / Radeon VE'
    class    = display
    subclass = VGA

>How-To-Repeat:
      Not much to do, simply, boot or try to install. I have seen some reports that say that drives of 80Gb may work with this hardware.
>Fix:
      
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Sat Oct 29 14:13:34 GMT 2005 
State-Changed-Why:  
After various attempts to contact the submitter [1]i will close the PR 
with the following reason: 

This seems like a problem which occurs when using a 40 pins IDE 
cable on a fast IDE drive. If you replace the 40 pins cable with 
a 80 pins the problem is solved (at least on my machine). 

[1]: host mail.nerdshack.com[209.189.235.50] said: 550 
This message is being rejected as a result of an SPF failure. If you are 
trying to send an outgoing message, please authenticate first. (in reply to 
RCPT TO command) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75531 
Responsible-Changed-From-To: freebsd-i386->remko 
Responsible-Changed-By: remko 
Responsible-Changed-When: Sat Oct 29 14:22:46 GMT 2005 
Responsible-Changed-Why:  
Note that i made a mistake in the email address: 
It should have read: 

<sfatula@usa.net>: host mxpool01.netaddress.usa.net[165.212.8.32] said: 550 
<sfatula@usa.net>... User account not activated (in reply to RCPT TO 
command) 

Also since i closed this PR, make me responsible for any 
comments that might come. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75531 
>Unformatted:
