From rabe@sigsys.homeip.net  Mon Mar 31 13:02:09 2008
Return-Path: <rabe@sigsys.homeip.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C62D11065676
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 31 Mar 2008 13:02:09 +0000 (UTC)
	(envelope-from rabe@sigsys.homeip.net)
Received: from mail.uugrn.org (mail.uugrn.org [195.49.138.123])
	by mx1.freebsd.org (Postfix) with ESMTP id 70E608FC36
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 31 Mar 2008 13:02:08 +0000 (UTC)
	(envelope-from rabe@sigsys.homeip.net)
Received: from rabe.uugrn.org (root@rabe.uugrn.org [195.49.138.102])
	by mail.uugrn.org (8.13.8/8.13.8) with ESMTP id m2VCftfX006460;
	Mon, 31 Mar 2008 14:42:05 +0200 (CEST)
	(envelope-from rabe@sigsys.homeip.net)
Received: from daemon.ma.sigsys.de (rabe@rabe.uugrn.org [195.49.138.102])
	by rabe.uugrn.org (8.13.8/8.13.8) with ESMTP id m2VCftWX006456;
	Mon, 31 Mar 2008 14:41:55 +0200 (CEST)
	(envelope-from rabe@sigsys.homeip.net)
Received: from daemon.ma.sigsys.de (localhost.ma.sigsys.de [127.0.0.1])
	by daemon.ma.sigsys.de (8.14.2/8.14.2) with ESMTP id m2VCgGF5003719;
	Mon, 31 Mar 2008 14:42:16 +0200 (CEST)
	(envelope-from rabe@daemon.ma.sigsys.de)
Received: (from rabe@localhost)
	by daemon.ma.sigsys.de (8.14.2/8.14.2/Submit) id m2VCgGTQ003718;
	Mon, 31 Mar 2008 14:42:16 +0200 (CEST)
	(envelope-from rabe)
Message-Id: <200803311242.m2VCgGTQ003718@daemon.ma.sigsys.de>
Date: Mon, 31 Mar 2008 14:42:16 +0200 (CEST)
From: Raphael Becker <rabe@uugrn.org>
Reply-To: Raphael Becker <rabe@uugrn.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: rabe@uugrn.org
Subject: acd0: timeout waiting to issue command / acd0: error issuing ATA PACKET command // Promise PDC40718 SATA300 controller // acd0: CDROM <HL-DT-ST DVDRAM GH20NS10/EL00> at ata2-master SATA150
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         122291
>Category:       kern
>Synopsis:       [ata] acd0: timeout waiting to issue command / acd0: error issuing ATA PACKET command // Promise PDC40718 SATA300 controller // acd0: CDROM <HL-DT-ST DVDRAM GH20NS10/EL00> at ata2-master SATA150
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 31 13:10:00 UTC 2008
>Closed-Date:    
>Last-Modified:  Fri Mar 12 05:10:03 UTC 2010
>Originator:     Raphael Becker
>Release:        FreeBSD 6.3-RELEASE i386
>Organization:
UUGRN.ORG - Unix User Group Rhein-Neckar e.V.
>Environment:
System: FreeBSD daemon.ma.sigsys.de 6.3-RELEASE FreeBSD 6.3-RELEASE #2: Wed Jan 16 21:22:57 CET 2008 root@daemon.ma.sigsys.de:/usr/obj/usr/src/sys/GENERIC i386

	Devices from kernel messages:
	acpi0: <AMIINT INTEL845> on motherboard
	pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
	pci0: <ACPI PCI bus> on pcib0
	pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
	pci2: <ACPI PCI bus> on pcib2
	atapci0: <Promise PDC40718 SATA300 controller> port 0xd800-0xd87f,0xd400-0xd4ff mem 0xdfeff000-0xdfefffff,0xdfec0000-0xdfedffff irq 18 at device 2.0 on pci2
	ata2: <ATA channel 0> on atapci0
	ata3: <ATA channel 1> on atapci0
	ata4: <ATA channel 2> on atapci0
	ata5: <ATA channel 3> on atapci0
	acd0: CDROM <HL-DT-ST DVDRAM GH20NS10/EL00> at ata2-master SATA150
	ad6: 476940MB <SAMSUNG HD501LJ CR100-10> at ata3-master SATA300
	ad10: 286188MB <Maxtor 7L300S0 BANC1G10> at ata5-master SATA150


>Description:
	LG S-SATA DVD-Writer <HL-DT-ST DVDRAM GH20NS10/EL00> is attached to a 
	'PDC40718-GP SATA 300 TX4 Controller'. 

	noticeable: The hard drives are connected to channel 1 and 2 
		    on the controller board, the DVD is conencted to channel 3
	            (also tested on ch4).
		The kernel detects two harddrives as channel 2+3 (counted from 0) i
		and the DVD on chanel 0 (first channel). On BIOS 

	Before the DVD is detected there are some ATA timeout / PACKET errors:
	acd0: timeout waiting to issue command
	acd0: error issuing ATA PACKET command
	acd0: timeout waiting to issue command
	acd0: error issuing ATA PACKET command
	acd0: timeout waiting to issue command
	acd0: error issuing ATA PACKET command
	acd0: CDROM <HL-DT-ST DVDRAM GH20NS10/EL00> at ata2-master SATA150
	acd0: timeout waiting to issue command
	acd0: error issuing ATA PACKET command
	[... forever ...]

	* I also tried to connect the DVD to the onboard-prmise
	atapci1: Promise PDC20376 SATA150 controller ... on pci2
	without success. 

	* I tried some other SATA-Cables.
	* I measured +12V and +5V from a 5.14" power plug parallel to the DVD 

	* I was lucky to boot one time with the DVD attached to the Promise 300 
	  by opening / ejecting while these ATA-timeouts on acd0. 
          # dd if=/dev/acd0 of=/dev/null bs=2k count=1  on console
          resulted in 3x timeout+error from kernel followed by the i/o error message 
	  from dd followed by 2 more timeout+error lines of the Kernel
	* The two hard drives ad6 and ad10 are doing fine and without any 
	  error messages, ad6 is a geli device which would thow error-messages 
	  on corrupted data.

	If there is something else I may test or information I have to provide 
	please ask soon. I'm willing to update to 6-STABLE or 7.0-RELEASE or 
	7-STABLE if this would be a solution.


>How-To-Repeat:
	attaching the DVD to the promise300
>Fix:

	-


>Release-Note:
>Audit-Trail:

From: Raphael Becker <rabe@uugrn.org>
To: bug-followup@FreeBSD.org
Cc: rabe@uugrn.org
Subject: Re: kern/122291: acd0: timeout waiting to issue command / acd0: error issuing ATA PACKET command // Promise PDC40718 SATA300 controller // acd0: CDROM <HL-DT-ST DVDRAM GH20NS10/EL00> at ata2-master SATA150
Date: Sat, 3 May 2008 19:10:08 +0200

 --W/nzBZO5zC0uMSeA
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 
 I tested with the 200804-snapshots of 7-STABLE and 8-CURRENT with the
 same results (on 8-CURRENT acd0 gets acd6). The DVD drive is able to
 boot both media using BIOS but the kernel isn't able to access the
 drive.
 
 I also tested successfully with the latest KNOPPIX 5.3 so it shouldn't
 be a general hardware problem.=20
 
 Regards
 Raphael Becker
 
 --=20
 Raphael Becker          <rabe@uugrn.org>          http://rabe.uugrn.org/
 GnuPG:                E7B2 1D66 3AF2 EDC7 9828  6D7A 9CDA 3E7B 10CA 9F2D
 =2E........|.........|.........|.........|.........|.........|.........|..
 
 --W/nzBZO5zC0uMSeA
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.2 (FreeBSD)
 
 iD8DBQFIHJxwnNo+exDKny0RAvnyAJwOLwgYVKbetECyDtGNzxolnvMhVgCeIVeh
 MLvxtIDYDEFK5Yx71jhKdpE=
 =b1qN
 -----END PGP SIGNATURE-----
 
 --W/nzBZO5zC0uMSeA--

From: Raphael Becker <rabe@uugrn.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/122291: [ata] acd0: timeout waiting to issue command / acd0: error issuing ATA PACKET command // Promise PDC40718 SATA300 controller // acd0: CDROM <HL-DT-ST DVDRAM GH20NS10/EL00> at ata2-master SATA150
Date: Wed, 17 Sep 2008 08:07:10 +0200

 --k+w/mQv8wyuph6w0
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 Update:
 
 I recently upgraded to 7.1-PRE, there is still
 
 [...]
 The GEOM class LABEL is already loaded.
 ad0: 78533MB <Hitachi HDS728080PLAT20 PF2OA21B> at ata0-master UDMA100
 ad2: 286168MB <SAMSUNG HD300LD WK100-12> at ata1-master UDMA100
 GEOM_LABEL: Label for provider ad0s1f is label/HOMEcrypt.
 GEOM_LABEL: Label for provider ad2s1 is ufs/DATA.
 acd0: timeout waiting to issue command
 acd0: error issuing ATA PACKET command
 acd0: timeout waiting to issue command
 acd0: error issuing ATA PACKET command
 acd0: timeout waiting to issue command
 acd0: error issuing ATA PACKET command
 acd0: CDROM <HL-DT-ST DVDRAM GH20NS10/EL00> at ata5-master SATA150
 [...]
 acd0: error issuing ATA PACKET command
 acd0: timeout waiting to issue command
 acd0: error issuing ATA PACKET command
 acd0: timeout waiting to issue command
 acd0: error issuing ATA PACKET command
 acd0: timeout waiting to issue command
 acd0: error issuing ATA PACKET command
 ad12: 286188MB <Maxtor 7L300S0 BANC1G10> at ata6-master SATA150
 ad14: 476940MB <SAMSUNG HD501LJ CR100-10> at ata7-master SATA150
 GEOM_LABEL: Label for provider ad12s1 is ufs/MULTIMEDIA.
 GEOM_LABEL: Label for provider ad14 is label/PRIVATEcrypt.=20
 [...]=20
 
 Complete dmesg.boot: http://rabe.uugrn.org/FreeBSD/dmesg_daemon_71PRE
 
 SATA harddrives are doing well on both Promise controllers, actually
 they are connected to the onboard, SATA-DVD isn't working with FreeBSD
 on both controllers.=20
 
 Regards
 Raphael Becker
 
 --=20
 Raphael Becker          <rabe@uugrn.org>          http://rabe.uugrn.org/
 GnuPG:                E7B2 1D66 3AF2 EDC7 9828  6D7A 9CDA 3E7B 10CA 9F2D
 =2E........|.........|.........|.........|.........|.........|.........|..
 
 --k+w/mQv8wyuph6w0
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.2 (FreeBSD)
 
 iD8DBQFI0J6OnNo+exDKny0RAn/rAKDY4u3VCVNkj/t4lo/x9rlyS1Gu4gCgglLR
 7Xf7HdE/pJVfhDDjQXgxKMk=
 =Ubyv
 -----END PGP SIGNATURE-----
 
 --k+w/mQv8wyuph6w0--

From: Alexander Motin <mav@FreeBSD.org>
To: bug-followup@FreeBSD.org, rabe@uugrn.org
Cc:  
Subject: Re: kern/122291: [ata] acd0: timeout waiting to issue command / acd0:
 error issuing ATA PACKET command // Promise PDC40718 SATA300 controller //
 acd0: CDROM &lt;HL-DT-ST DVDRAM GH20NS10/EL00&gt; at ata2-master SATA150
Date: Fri, 12 Mar 2010 07:06:07 +0200

 FreeBSD Promise driver still doesn't support ATAPI.
 
 -- 
 Alexander Motin
>Unformatted:
