From dufberg@narnia.pp.se  Fri Oct 31 13:57:20 2003
Return-Path: <dufberg@narnia.pp.se>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7F54716A4CF
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 31 Oct 2003 13:57:20 -0800 (PST)
Received: from border.narnia.pp.se (as1-6-2.has.s.bonet.se [194.236.120.231])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C4AF643F93
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 31 Oct 2003 13:57:18 -0800 (PST)
	(envelope-from dufberg@narnia.pp.se)
Received: from kafka.home.narnia.pp.se (kafka.home.narnia.pp.se [172.25.25.56])
	by border.narnia.pp.se (Postfix) with ESMTP
	id 8588412B; Fri, 31 Oct 2003 22:57:16 +0100 (CET)
Received: by kafka.home.narnia.pp.se (Postfix, from userid 1001)
	id C998B115F9; Fri, 31 Oct 2003 22:57:16 +0100 (CET)
Message-Id: <20031031215716.C998B115F9@kafka.home.narnia.pp.se>
Date: Fri, 31 Oct 2003 22:57:16 +0100 (CET)
From: Mats Dufberg <mats@dufberg.se>
Reply-To: Mats Dufberg <mats@dufberg.se>
To: FreeBSD-gnats-submit@freebsd.org
Cc: mats@dufberg.se
Subject: ATA DMA fails and vx0 creates panic
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         58784
>Category:       i386
>Synopsis:       [ata] ATA does not work in DMA mode (ASUS P55TP4N motherboard)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    remko
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 31 14:00:36 PST 2003
>Closed-Date:    Tue Sep 12 08:44:58 GMT 2006
>Last-Modified:  Tue Sep 12 08:44:58 GMT 2006
>Originator:     Mats Dufberg
>Release:        FreeBSD 5.1-RELEASE i386
>Organization:
private
>Environment:

Pentium 150MHz on a ASUS P55TP4N motherboard with built-in ATA
controller.  On the primary channel there is a Seagate 4GB disk
(ST34311A/8.01, ATA/ATAPI rev 4). On the secondary channel there is an
ATAPI CD-ROM unit (ATAPI CDROM/V130B, ATA/ATAPI rev 0).

On the PCI bus there is a 3COM Etherlink III PCI card (3C590).

FreeBSD 5.1 installed.


>Description:

With FreeBSD 5.1 installed I encountered two problems:

1. The disk IO is very bad, and both dmeg and atacontrol reports that
both disk and CD-ROM are running in BIOSPIO (PIO0) mode even though
both motherboard and hard disk supports DMA mode.

2. As soon as I tried to configure the vx 3COM Ethernet card the
kernel panics.


After reinstalling the computer with FreeBSD 4.8-RELEASE all problems
are gone:

1. The disk is running in WDMA2 mode (and is much faster).

2. The CD ROM is running in PIO4 mode.

3. The vx card can be configured and works without any seen problems.


No change of hardware was done in between.



>How-To-Repeat:


>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Fri Oct 28 06:35:06 GMT 2005 
State-Changed-Why:  
Is this still a problem with modern versions of FreeBSD? 

Date: Sun, 30 Oct 2005 17:10:30 +0100 (CET)
From: Mats Dufberg <mats@dufberg.se>

I can confirm that the ATA problem remains with FreeBSD 5.4. I do not have
the network card any longer so I cannot test that.

All versions of FreeBSD 4.x have work with DMA.

http://www.freebsd.org/cgi/query-pr.cgi?pr=58784 
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Sun Oct 30 17:40:46 GMT 2005 
State-Changed-Why:  
Feedback received. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=58784 
State-Changed-From-To: open->feedback 
State-Changed-By: remko 
State-Changed-When: Mon Sep 11 12:28:40 UTC 2006 
State-Changed-Why:  
Hello, 

Can you tell me what kind of cable you use to talk with the 
ATA controller? they can really make a difference (from not 
working to working); in my own setup i needed to replace 
my 40 pins cables to 80 pins cables. 

Also; just for the record, can you tell me whether this is 
still a problem for 6.1 release? 


Responsible-Changed-From-To: freebsd-i386->remko 
Responsible-Changed-By: remko 
Responsible-Changed-When: Mon Sep 11 12:28:40 UTC 2006 
Responsible-Changed-Why:  
grab the pr 

http://www.freebsd.org/cgi/query-pr.cgi?pr=58784 
State-Changed-From-To: feedback->closed 
State-Changed-By: remko 
State-Changed-When: Tue Sep 12 08:44:56 UTC 2006 
State-Changed-Why:  
The submitter no longer has the problem, his last report indicated that 
it might have been ata on 5.x and later, but we cannot test that any 
longer.  If someone has feedback please let me know 

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