From nobody@FreeBSD.ORG  Tue Nov 21 10:56:22 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 556DC37B4D7; Tue, 21 Nov 2000 10:56:22 -0800 (PST)
Message-Id: <20001121185622.556DC37B4D7@hub.freebsd.org>
Date: Tue, 21 Nov 2000 10:56:22 -0800 (PST)
From: tigner@msu.edu
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: UDMA 66 not working on 4.1.1-Release ?
X-Send-Pr-Version: www-1.0

>Number:         23011
>Category:       kern
>Synopsis:       UDMA 66 not working on 4.1.1-Release ?
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 21 11:00:01 PST 2000
>Closed-Date:    Wed May 30 03:51:35 PDT 2001
>Last-Modified:  Wed May 30 03:54:31 PDT 2001
>Originator:     Barry Tigner
>Release:        FreeBSD 4.1.1 Release
>Organization:
Michigan State University
>Environment:
> uname -a
FreeBSD Speedy.home 4.1.1-RELEASE FreeBSD 4.1.1-RELEASE #0: Fri Nov 17 18:46:49 EST 2000     root@Speedy.home:/usr/src/sys/compile/SPEEDY  i386
>       
>Description:
dmesg reports HD is running at ata33, cdrom at PIO4. Both
work ok in Win98, checked bios settings , recompiled kernel
with ata dma enabled, still get the same message. I AM using
an 80 wire ata66 cable on ATA0 and a 40 wire ata33 cable on
ATA1. I've tried replacing the cables with new ones even though
it appears to work ok in windows, and still get the same message.

dmesg excerpt follows here.
> dmesg |grep ata
atapci0: <SiS 5591 ATA33 controller> port 0xd000-0xd00f,0xd400-0xd403,0xd800-0xd807,0xe000-0xe003,0xe400-0xe407 irq 14 at device 0.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
ata0-master: DMA limited to UDMA33, non-ATA66 compliant cable
ad0: 19531MB <Maxtor 92048U8> [39683/16/63] at ata0-master using UDMA33
acd0: CDROM <CD-ROM 56X> at ata1-master using PIO4
afd0: 120MB <LS-120 COSM 02 UHD Floppy> [963/8/32] at ata1-slave using PIO2  


Mainboard=Asus p5A-B, Ali chipset, builtin snd,agp2x , shared mem for vga
CPU=AMD K6-2 3DNow/400mhz.
MEM=64MB PC100 SDRAM
HD=Maxtor 7200rpm 2MB cache ata66 20GB  ATA0-master
CDrom=56x ATA33 MagicSpin ATA1-master
nofloppy
LS-120 superfloppy = ATA1-slave
>How-To-Repeat:
it repeats all the time.
>Fix:
no clue at all. I have enabled ata dma in the kernel and recompiled.
I've tried recompiling with optimizations on, still same problem.

>Release-Note:
>Audit-Trail:

From: "Joe R. Doupnik" <jrd@cc.usu.edu>
To: freebsd-gnats-submit@FreeBSD.org, tigner@msu.edu
Cc:  
Subject: Re: kern/23011: UDMA 66 not working on 4.1.1-Release ?
Date: Sat, 25 Nov 2000 18:54:02 -0700

  Same problem appears on FBSD 4.2-RELEASE. Using Promise 66
 paddle board, IBM fast IDE drive, proper UDMA ribbon cable
 (including those supplied by Promise Inc and IBM).
 
 dmesg excerpt:
 ata2-master: DMA limited to UDMA33, non-ATA66 compliant cable
 ad4: 29314MB <IBM-DTLA-307030> [59560/16/63] at ata2-master UDMA33
 acd0: CDROM <TOSHIBA CD-ROM XM-6402B> at ata2-slave using PIO4
 Mounting root from ufs:/dev/ad4s1a
 
 Motherboard is an older Tyan TomCat IV. IDE DMA support is
 turned on in the <rebuilt> kernel.
 	Joe D.
 

From: "Gary" <gary@ossc.ossc.com>
To: <freebsd-gnats-submit@FreeBSD.org>, <tigner@msu.edu>
Cc:  
Subject: Re: kern/23011: UDMA 66 not working on 4.1.1-Release ?
Date: Tue, 28 Nov 2000 16:26:40 -0500

 This is a multi-part message in MIME format.
 
 ------=_NextPart_000_0003_01C05957.FCFBA170
 Content-Type: text/plain;
 	charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 From: gArgraves@earthlink.net
 
 I have experiance the same problems.
 
 hardware: MB =3D EPOX EP-MVP3G2 w/VIA Apollo MVP3 AGPset
                CPU =3D AMD K6-2 500Mhz
                RAM =3D 128 SDRAM
                2 Linksys Fast ethernet 10/100
                HD =3D MAXSTOR 20G (ATA66) and also tried with a WD 45G =
 (ATA66)
 
 I have also tried other modes like various PIO. Nothing seem to work =
 correctly. Always get a variaty of disk errors.
 
 If i put a non-ATA (UDMA) drive in system I can install freeBSD with =
 sucessfully.
 
 This seems to be true for ver 4.0 from CD.  4.1.1 from ftp server and =
 ver 4.2 from ftp server.
 
 PS this URL may give in-site to problem:=20
 http://www.uwsg.indiana.edu/hypermail/linux/kernel/9812.0/0621.html
 
 Gary
 
 
 
 ------=_NextPart_000_0003_01C05957.FCFBA170
 Content-Type: text/html;
 	charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 <HTML><HEAD>
 <META http-equiv=3DContent-Type content=3D"text/html; =
 charset=3Diso-8859-1">
 <META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
 <STYLE></STYLE>
 </HEAD>
 <BODY bgColor=3D#ffffff>
 <DIV><FONT face=3DArial size=3D2>From: <A=20
 href=3D"mailto:gArgraves@earthlink.net">gArgraves@earthlink.net</A></FONT=
 ></DIV>
 <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
 <DIV><FONT face=3DArial size=3D2>I have experiance the same =
 problems.</FONT></DIV>
 <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
 <DIV><FONT face=3DArial size=3D2><STRONG>hardware: MB =3D EPOX EP-MVP3G2 =
 w/VIA Apollo=20
 MVP3 AGPset</STRONG></FONT></DIV>
 <DIV><STRONG><FONT face=3DArial=20
 size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
 p;&nbsp;&nbsp;&nbsp;=20
 CPU =3D AMD K6-2 500Mhz</FONT></STRONG></DIV>
 <DIV><FONT face=3DArial=20
 size=3D2><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
 bsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
 RAM =3D 128 SDRAM</STRONG></FONT></DIV>
 <DIV><FONT face=3DArial=20
 size=3D2><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
 bsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
 2 Linksys Fast ethernet 10/100</STRONG></FONT></DIV>
 <DIV><FONT face=3DArial=20
 size=3D2><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
 bsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
 HD =3D MAXSTOR 20G (ATA66) and also tried with a WD 45G=20
 (ATA66)</STRONG></FONT></DIV>
 <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
 <DIV><FONT face=3DArial size=3D2>I have also tried other modes like =
 various PIO.=20
 </FONT><FONT face=3DArial size=3D2>Nothing seem to work correctly. =
 Always get a=20
 variaty of disk errors.</FONT></DIV>
 <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
 <DIV><FONT face=3DArial size=3D2>If i put a non-ATA (UDMA) drive in =
 system I=20
 can&nbsp;install freeBSD with sucessfully.</FONT></DIV>
 <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
 <DIV><FONT face=3DArial size=3D2>This seems to be true for ver 4.0 from =
 CD.&nbsp;=20
 4.1.1 from ftp server and ver 4.2 from ftp server.</FONT></DIV>
 <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
 <DIV><FONT face=3DArial size=3D2>PS this URL may give in-site to =
 problem: <BR><A=20
 href=3D"http://www.uwsg.indiana.edu/hypermail/linux/kernel/9812.0/0621.ht=
 ml">http://www.uwsg.indiana.edu/hypermail/linux/kernel/9812.0/0621.html</=
 A><BR></FONT></DIV>
 <DIV><FONT face=3DArial size=3D2>Gary</FONT></DIV>
 <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
 <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>
 
 ------=_NextPart_000_0003_01C05957.FCFBA170--
 
 

From: Mark Redding <mark@grawlfang.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc: tigner@msu.edu
Subject: Re: kern/23011: UDMA 66 not working on 4.1.1-Release ?
Date: Mon, 4 Dec 2000 00:44:59 +0000

 Hi,
 
 I'm experiencing the same problem in getting UDMA66 out of FreeBSD.
 
 dmesg snippet follows:
 ...
 atapci0: <VIA 82C686 ATA66 controller> port 0xd000-0xd00f at device 7.1 on 
 pci0
 ata0: at 0x1f0 irq 14 on atapci0
 ata1: at 0x170 irq 15 on atapci0
 ...
 ad0: 9773MB <FUJITSU MPF3102AT> [19857/16/63] at ata0-master UDMA66
 ad1: 4110MB <QUANTUM FIREBALL ST4.3A> [14848/9/63] at ata0-slave UDMA33
 acd0: CD-RW <YAMAHA CRW8824E> at ata1-master using WDMA2
 acd1: DVD-ROM <Pioneer DVD-ROM ATAPIModel DVD-104S 0118> at ata1-slave using 
 UDMA33
 
 I believe I've got round the problem by editing ata-dma.c and commenting out 
 the code that sets udmamode back to 2 (which the above dmesg shows).
 
 Anyone knowing a good I/O benchmark to confirm this please let me know.
 
 
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Wed May 30 03:51:35 PDT 2001 
State-Changed-Why:  
We only support uptil UDMA33 on the Sis chips. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=23011 
>Unformatted:
