From nobody@FreeBSD.org  Thu Oct  4 20:54:44 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 4F8B416A468
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  4 Oct 2007 20:54:44 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 4829313C468
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  4 Oct 2007 20:54:44 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l94KsheG094424
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 4 Oct 2007 20:54:43 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l94Ksh6o094423;
	Thu, 4 Oct 2007 20:54:43 GMT
	(envelope-from nobody)
Message-Id: <200710042054.l94Ksh6o094423@www.freebsd.org>
Date: Thu, 4 Oct 2007 20:54:43 GMT
From: Peter <pb@ludd.luth.se>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Intermittent error with Promise PDC40718
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         116935
>Category:       kern
>Synopsis:       [ata] Intermittent error with Promise PDC40718
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 04 21:00:04 GMT 2007
>Closed-Date:    
>Last-Modified:  Mon Jun 25 23:50:12 UTC 2012
>Originator:     Peter
>Release:        6.2-RELEASE #0
>Organization:
>Environment:
FreeBSD opto 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:
Using a PCI 32/33 Promise PDC40718 SATA300 controller with FreeBSD-6.2 on
a i386 pci system result in I/O errors eventually. (Using it with geli(8)
causes spontaneous reboots as well)

The error doesn't occur for some time, but eventually cause any operation
to stall for some minute, and then throw out an I/O error.

dmesg:
Copyright (c) 1992-2007 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 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007
    root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel Pentium III (598.06-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x681  Stepping = 1
  Features=0x387f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PA
T,PSE36,PN,MMX,FXSR,SSE>
real memory  = 334430208 (318 MB)
avail memory = 317763584 (303 MB)
kbd1 at kbdmux0
ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0: <PTLTD   RSDT> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xf008-0xf00b 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: <Intel 82810E (i810E GMCH) SVGA controller> mem 0xf8000000-0xfbffffff,0xf4000000-0xf407ffff irq 11 at device 1.0 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci1: <ACPI PCI bus> on pcib1
atapci0: <Promise PDC40718 SATA300 controller> port 0x3400-0x347f,0x3000-0x30ff 
mem 0xf4120000-0xf4120fff,0xf4100000-0xf411ffff irq 11 at device 5.0 on pci1
ata2: <ATA channel 0> on atapci0
ata3: <ATA channel 1> on atapci0
ata4: <ATA channel 2> on atapci0
ata5: <ATA channel 3> on atapci0
rl0: <Accton MPX 5030/5038 10/100BaseTX> port 0x3800-0x38ff mem 0xf4121000-0xf41
210ff irq 10 at device 9.0 on pci1
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:10:b5:4a:0a:b9
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci1: <Intel ICH UDMA66 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,
0x1c00-0x1c0f at device 31.1 on pci0
ata0: <ATA channel 0> on atapci1
ata1: <ATA channel 1> on atapci1
uhci0: <Intel 82801AA (ICH) USB controller> port 0x1000-0x101f irq 9 at device 3
1.2 on pci0
uhci0: [GIANT-LOCKED]
usb0: <Intel 82801AA (ICH) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
pci0: <multimedia, audio> at device 31.5 (no driver attached)
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0: <Standard parallel printer port> port 0x378-0x37b irq 7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xccfff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 598062981 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 6149MB <QUANTUM FIREBALL SE6.4A API.0C00> at ata0-master UDMA33
ad1: 38166MB <WDC WD400BB-00CAA1 17.07W17> at ata0-slave UDMA66
acd0: CDRW <LITE-ON DVDRW LDW-451S/GSB4> at ata1-slave UDMA33
ad10: 305245MB <MAXTOR STM3320820AS 3.AAE> at ata5-master SATA150
Trying to mount root from ufs:/dev/ad0s1a
rl0: link state changed to UP

syslog:
Sep 19 13:05:47 opto kernel: ad10: WARNING - SETFEATURES SET TRANSFER MODE taskqueue timeout - completing request directly
Sep 19 13:05:51 opto kernel: ad10: WARNING - SETFEATURES SET TRANSFER MODE taskqueue timeout - completing request directly
Sep 19 13:05:55 opto kernel: ad10: WARNING - SETFEATURES ENABLE RCACHE taskqueue timeout - completing request directly
Sep 19 13:05:59 opto kernel: ad10: WARNING - SETFEATURES ENABLE WCACHE taskqueue timeout - completing request directly
Sep 19 13:06:03 opto kernel: ad10: WARNING - SET_MULTI taskqueue timeout - completing request directly
Sep 19 13:06:03 opto kernel: ad10: TIMEOUT - READ_DMA retrying (1 retry left) LBA=20711520

>How-To-Repeat:
Install Promise PDC40718 controller + disc in a i386/FreeBSD-6 machine.
And use the disc for some time (2-3 days).
>Fix:
Don't use that controller.


>Release-Note:
>Audit-Trail:

From: George Kontostanos <gkontos.mail@gmail.com>
To: bug-followup@FreeBSD.org,
 pb@ludd.luth.se
Cc:  
Subject: Re: kern/116935: [ata] Intermittent error with Promise PDC40718
Date: Thu, 23 Jun 2011 15:23:54 +0300

 I was wondering if there is any update regarding this bug or if this =
 controller is  marked as a "don't use".=20
 
 I have been using it for a year with no issues at all till after =
 8.2-Release were I keep getting:
 
 Jun 22 17:08:53 hp kernel: ata2: timeout waiting to issue command
 Jun 22 17:08:53 hp kernel: ata2: error issuing SETFEATURES ENABLE WCACHE =
 command
 Jun 22 17:09:33 hp kernel: ad4: WARNING - SET_MULTI taskqueue timeout - =
 completing request directly
 Jun 22 17:09:33 hp kernel: ad4: WARNING - WRITE_DMA48 requeued due to =
 channel reset LBA=3D321558741
 Jun 22 17:09:34 hp kernel: ata2: SIGNATURE: 00000101
 Jun 22 17:09:34 hp kernel: ad4: WARNING - WRITE_DMA48 requeued due to =
 channel reset LBA=3D321558869
 Jun 22 17:09:34 hp kernel: ata2: FAILURE - already active DMA on this =
 device
 Jun 22 17:09:34 hp kernel: ata2: setting up DMA failed
 Jun 22 17:09:34 hp kernel: ata2: FAILURE - already active DMA on this =
 device
 Jun 22 17:09:34 hp kernel: ata2: setting up DMA failed
 
 The disk has been changed 3 times.
 
 thanks=

From: Andrea Venturoli <ml@netfence.it>
To: bug-followup@freebsd.org, pb@ludd.luth.se
Cc:  
Subject: Re: kern/116935: [ata] Intermittent error with Promise PDC40718
Date: Mon, 25 Jun 2012 19:42:58 +0200

 I've had gobs of troubles with this hardware and agreed with the "Don't 
 use" statement (I also had troubles with other SATA controllers, however).
 With two HDs it used to crash and/or lock the system: I tried different 
 HD vendors, different MBs, different FreeBSD versions and architectures, 
 but nothing would help.
 
 This was however until I tried 9.0 release.
 I don't know if the reason is the "new CAM-based ATA stack", but it's 
 been working flawlessly with four HDs for weeks now.
 
 HTH.

From: Peter B <pb@ludd.ltu.se>
To: ml@netfence.it (Andrea Venturoli)
Cc: bug-followup@freebsd.org
Subject: Re: kern/116935: [ata] Intermittent error with Promise PDC40718
Date: Tue, 26 Jun 2012 01:42:14 +0200 (MEST)

 >I've had gobs of troubles with this hardware and agreed with the "Don't 
 >use" statement (I also had troubles with other SATA controllers, however).
 >
 >With two HDs it used to crash and/or lock the system: I tried different 
 >HD vendors, different MBs, different FreeBSD versions and architectures, 
 >but nothing would help.
 
 After the Promise trouble, I bought a cheap S-ATA controller which
 "just worked".
 
 >This was however until I tried 9.0 release.
 >I don't know if the reason is the "new CAM-based ATA stack", but it's 
 >been working flawlessly with four HDs for weeks now.
 
 If there's one bug in the silicon. One might wonder if there's others too.
 Let's hope the new driver can handle the bug without suprises when the disc
 is full with important data.
>Unformatted:
