From nobody@FreeBSD.org  Thu Feb 15 11:09:34 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 98FF616A400
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Feb 2007 11:09:34 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 89AB613C46B
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Feb 2007 11:09:34 +0000 (UTC)
	(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 l1FB9XXY098264
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Feb 2007 11:09:33 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l1FB9XPC098263;
	Thu, 15 Feb 2007 11:09:33 GMT
	(envelope-from nobody)
Message-Id: <200702151109.l1FB9XPC098263@www.freebsd.org>
Date: Thu, 15 Feb 2007 11:09:33 GMT
From: Joris Dobbelsteen<joris@familiedobbelsteen.nl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: READ_UDMA UDMA ICRC error cause not detecting cable type
X-Send-Pr-Version: www-3.0

>Number:         109200
>Category:       i386
>Synopsis:       [ata] READ_UDMA UDMA ICRC error cause not detecting cable type
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-i386
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 15 11:10:06 GMT 2007
>Closed-Date:    Tue Jul 13 20:28:50 UTC 2010
>Last-Modified:  Tue Jul 13 20:28:50 UTC 2010
>Originator:     Joris Dobbelsteen
>Release:        6.2-RELEASE
>Organization:
>Environment:
FreeBSD 6.2-RELEASE FreeBSD 6.2-RELEASE #0 Fri Jan 12 10:40:27 UTC 2007 root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Several:
ad0: WARNING - READ_DMA UDMA ICRC error (retrying request) LBA=XXXXXX
repeatedly, eventually you will see
ad0: FAILURE - READ_DMA status=51<READY,DSC,ERROR> error=84<ICRC,ABORTED> LBA=XXXXXX

The cable is not suited for UDMA66 mode, but it is for UDMA33 mode.


System is AMD-K6 3D (500 MHz)
some things from the dmesg (for identification purposes)
atapci0: <VIA 82C596B UDMA66 controller> port .. at device 7.1 on pci0

>How-To-Repeat:
Just wait, it will fail...
>Fix:
Do like everybody else:
The BIOS detects: 40-conductor cable instead of 80-conductor cable...
Linux sets the mode to UDMA33 at most, automatically...
Windows sets the mode to UDMA33 at most, automatically...

FreeBSD won't, except in safe mode it default to PIO4 (which works).
Otherwise you need to manually instruct it "/sbin/atacontrol mode ad0 UDMA33".
So please detect it and go into UDMA33 mode.
>Release-Note:
>Audit-Trail:

From: Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
To: Joris Dobbelsteen <joris@familiedobbelsteen.nl>, bug-followup@freebsd.org
Cc:  
Subject: Re: i386/109200: [ata] READ_UDMA UDMA ICRC error cause not
	detecting cable type
Date: Fri, 25 May 2007 12:17:38 +0100

 Hi,
 
 Can you please provide a full verbose dmesg for this system?  Also, is
 it possible to confirm that the IDE cable has been connected the correct
 way around (e.g. the (usually blue or red) connector is connected to the
 motherboard, and the furthest (usually black) connector is plugged into
 the master device)?  
 
 Thanks,
 
 Gavin
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Fri May 25 11:26:49 UTC 2007 
State-Changed-Why:  
Note that submitter has been asked for feedback. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109200 

From: "Joris Dobbelsteen" <Joris@familiedobbelsteen.nl>
To: "Gavin Atkinson" <gavin.atkinson@ury.york.ac.uk>
Cc: <bug-followup@freebsd.org>
Subject: RE: i386/109200: [ata] READ_UDMA UDMA ICRC error cause notdetecting cable type
Date: Fri, 25 May 2007 13:31:41 +0200

 >-----Original Message-----
 >From: Gavin Atkinson [mailto:gavin.atkinson@ury.york.ac.uk]=20
 >Sent: vrijdag 25 mei 2007 13:18
 >To: Joris Dobbelsteen; bug-followup@freebsd.org
 >Subject: Re: i386/109200: [ata] READ_UDMA UDMA ICRC error=20
 >cause notdetecting cable type
 >
 >Hi,
 >
 >Can you please provide a full verbose dmesg for this system? =20
 
 Sorry, at this point FreeBSD was dropped. And the system is mostly
 inoperational. Will perhaps try later on. Will also try to lookup
 componentes.
 
 The bios string is 09/27/2000-693A-686-6a6LGA1AC-UX
 It is a VIA chipset.
 
 Unfortunally cannot corfirm the brand, but most likely either abit,
 chaintech, gigabyte, asus or msi.
 
 >Also, is it possible to confirm that the IDE cable has been=20
 >connected the correct way around (e.g. the (usually blue or=20
 >red) connector is connected to the motherboard, and the=20
 >furthest (usually black) connector is plugged into the master=20
 >device)? =20
 
 The issue is not the cable in any way. It operates under both Windows
 (for years) and Linux without problems.
 The issue is that FreeBSD uses UDMA66 mode. However the cable is NOT an
 80-conductor and hence interference causes a lot of CRC errors. The
 system should detect whether a 80-conductor cable is, or is not, in
 place and possiblity limit the speed to UDMA33.
 
 Joris Dobbelsteen B.ICT.
 
State-Changed-From-To: feedback->suspended 
State-Changed-By: linimon 
State-Changed-When: Tue Jun 12 08:02:05 UTC 2007 
State-Changed-Why:  
Submitter does not have a system to replicate this on right now. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109200 

From: Bruce Cran <bruce@cran.org.uk>
To: bug-followup@FreeBSD.org, joris@familiedobbelsteen.nl
Cc:  
Subject: Re: i386/109200: [ata] READ_UDMA UDMA ICRC error cause not
 detecting cable type
Date: Mon, 14 Jul 2008 20:34:24 +0100

 --Sig_/o.Akd1fzD4g1U1pCHrX7Yvh
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: quoted-printable
 
 I've seen this issue as well; I solved it by getting UDMA66 cables.
 I've definitely seen it on 7.0 but will double check it occurs with
 known good UDMA33 cables.
 Here's the dmesg:
 
 Copyright (c) 1992-2008 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 is a registered trademark of The FreeBSD Foundation.
 FreeBSD 7.0-RELEASE-p1 #0: Sat May 17 22:56:30 BST 2008
     brucec@gluon.draftnet:/usr/obj/usr/src/sys/GENERIC
 Timecounter "i8254" frequency 1193182 Hz quality 0
 CPU: AMD Athlon(TM) XP 2800+ (1668.71-MHz 686-class CPU)
   Origin =3D "AuthenticAMD"  Id =3D 0x6a0  Stepping =3D 0
   Features=3D0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE=
 ,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
   AMD Features=3D0xc0400800<SYSCALL,MMX+,3DNow!+,3DNow!>
 real memory  =3D 1073725440 (1023 MB)
 avail memory =3D 1028722688 (981 MB)
 ACPI APIC Table: <ASUS   A7V333  >
 ioapic0: Changing APIC ID to 2
 ioapic0 <Version 0.2> irqs 0-23 on motherboard
 kbd1 at kbdmux0
 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413,
 RF5413) hptrr: HPT RocketRAID controller driver v1.1 (May 17 2008
 22:55:59) acpi0: <ASUS A7V333> on motherboard
 acpi0: [ITHREAD]
 acpi0: Power Button (fixed)
 acpi0: reservation of 0, a0000 (3) failed
 acpi0: reservation of 100000, 3ff00000 (3) failed
 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
 acpi_timer0: <32-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0
 cpu0: <ACPI CPU> on acpi0
 acpi_button0: <Power Button> on acpi0
 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
 pci0: <ACPI PCI bus> on pcib0
 agp0: <VIA 8367 (KT266/KY266x/KT333) host to PCI bridge> on hostb0
 agp0: aperture size is 256M
 pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
 pci1: <ACPI PCI bus> on pcib1
 vgapci0: <VGA-compatible display> mem
 0xde000000-0xdeffffff,0xe0000000-0xefffffff,0xdd000000-0xddffffff irq
 16 at device 0.0 on pci1 nvidia0: <Unknown> on vgapci0 vgapci0: child
 nvidia0 requested pci_enable_busmaster vgapci0: child nvidia0 requested
 pci_enable_io nvidia0: [GIANT-LOCKED]
 nvidia0: [ITHREAD]
 pcm0: <CMedia CMI8738> port 0xd800-0xd8ff irq 17 at device 5.0 on pci0
 pcm0: [ITHREAD]
 uhci0: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 19 at device
 9.0 on pci0 uhci0: [GIANT-LOCKED]
 uhci0: [ITHREAD]
 usb0: <VIA 83C572 USB controller> on uhci0
 usb0: USB revision 1.0
 uhub0: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
 uhub0: 2 ports with 2 removable, self powered
 uhci1: <VIA 83C572 USB controller> port 0xd000-0xd01f irq 16 at device
 9.1 on pci0 uhci1: [GIANT-LOCKED]
 uhci1: [ITHREAD]
 usb1: <VIA 83C572 USB controller> on uhci1
 usb1: USB revision 1.0
 uhub1: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1
 uhub1: 2 ports with 2 removable, self powered
 ehci0: <VIA VT6202 USB 2.0 controller> mem 0xdc800000-0xdc8000ff irq 17
 at device 9.2 on pci0 ehci0: [GIANT-LOCKED]
 ehci0: [ITHREAD]
 usb2: EHCI version 0.95
 usb2: companion controllers, 2 ports each: usb0 usb1
 usb2: <VIA VT6202 USB 2.0 controller> on ehci0
 usb2: USB revision 2.0
 uhub2: <VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb2
 uhub2: 4 ports with 4 removable, self powered
 sis0: <NatSemi DP8381[56] 10/100BaseTX> port 0xb800-0xb8ff mem
 0xdc000000-0xdc000fff irq 19 at device 16.0 on pci0 sis0: Silicon
 Revision: DP83815D miibus0: <MII bus> on sis0
 ukphy0: <Generic IEEE 802.3u media interface> PHY 0 on miibus0
 ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 sis0: Ethernet address: 00:40:f4:57:98:71
 sis0: [ITHREAD]
 isab0: <PCI-ISA bridge> at device 17.0 on pci0
 isa0: <ISA bus> on isab0
 atapci0: <VIA 8233A UDMA133 controller> port
 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xb400-0xb40f at device 17.1 on
 pci0 ata0: <ATA channel 0> on atapci0 ata0: [ITHREAD]
 ata1: <ATA channel 1> on atapci0
 ata1: [ITHREAD]
 uhci2: <VIA 83C572 USB controller> port 0xb000-0xb01f at device 17.2 on
 pci0 uhci2: [GIANT-LOCKED]
 uhci2: [ITHREAD]
 usb3: <VIA 83C572 USB controller> on uhci2
 usb3: USB revision 1.0
 uhub3: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb3
 uhub3: 2 ports with 2 removable, self powered
 uhci3: <VIA 83C572 USB controller> port 0xa800-0xa81f irq 21 at device
 17.3 on pci0 uhci3: [GIANT-LOCKED]
 uhci3: [ITHREAD]
 usb4: <VIA 83C572 USB controller> on uhci3
 usb4: USB revision 1.0
 uhub4: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb4
 uhub4: 2 ports with 2 removable, self powered
 fdc0: <floppy drive controller> port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 on
 acpi0 fdc0: [FILTER]
 fd0: <1440-KB 3.5" drive> on fdc0 drive 0
 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 on acpi0
 sio0: type 16550A
 sio0: [FILTER]
 atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
 atkbd0: <AT Keyboard> irq 1 on atkbdc0
 kbd0 at atkbd0
 atkbd0: [GIANT-LOCKED]
 atkbd0: [ITHREAD]
 pmtimer0 on isa0
 orm0: <ISA Option ROM> at iomem 0xd0000-0xd3fff pnpid ORM0000 on isa0
 ppc0: parallel port not found.
 sc0: <System console> at flags 0x100 on isa0
 sc0: VGA <16 virtual consoles, flags=3D0x300>
 sio1: configured irq 3 not in bitmap of probed irqs 0
 sio1: port may not be enabled
 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on
 isa0 Timecounter "TSC" frequency 1668711383 Hz quality 800
 Timecounters tick every 1.000 msec
 hptrr: no controller detected.
 ad0: 76319MB <WDC WD800BB-00CAA1 17.07W17> at ata0-master UDMA100
 ad1: 58644MB <IC35L060AVER07 0 ER6OA46A> at ata0-slave UDMA100
 ad2: 78167MB <Maxtor 6Y080L0 YAR41BW0> at ata1-master UDMA133
 acd0: DVDR <HL-DT-ST DVDRAM GSA-4163B/A104> at ata1-slave UDMA33
 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=3D0x64 ascq=3D0x00=20
 GEOM_LABEL: Label for provider acd0 is iso9660/FreeBSD_Install.
 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=3D0x64 ascq=3D0x00=20
 Trying to mount root from ufs:/dev/ad0s1a
 sis0: Applying short cable fix (reg=3Df4)
 sis0: Applying short cable fix (reg=3De8)
 sis0: Applying short cable fix (reg=3De8)
 sis0: Applying short cable fix (reg=3De8)
 sis0: Applying short cable fix (reg=3De8)
 sis0: Applying short cable fix (reg=3De8)
 sis0: Applying short cable fix (reg=3De8)
 
 --Sig_/o.Akd1fzD4g1U1pCHrX7Yvh
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Disposition: attachment; filename=signature.asc
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.6 (GNU/Linux)
 
 iD8DBQFIe6pEn4uvqcJsLfgRAsYhAJ405sXDXjKZ9oMucYh349YeiFUQCACgu6A3
 W/zpK5K/LEsWFhfwUXnxXkY=
 =BBdE
 -----END PGP SIGNATURE-----
 
 --Sig_/o.Akd1fzD4g1U1pCHrX7Yvh--
State-Changed-From-To: suspended->closed 
State-Changed-By: remko 
State-Changed-When: Tue Jul 13 20:28:49 UTC 2010 
State-Changed-Why:  
Do people still sell those old cables? ATA had seen many updates since 
7.x and a workaround is available. Please test that and report in case 
it is still a problem that should be resolved. 

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