From Jan.Stocker@t-online.de  Fri Jan  9 07:44:22 2004
Return-Path: <Jan.Stocker@t-online.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9BED916A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  9 Jan 2004 07:44:22 -0800 (PST)
Received: from mailout03.sul.t-online.com (mailout03.sul.t-online.com [194.25.134.81])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8E3B643D31
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  9 Jan 2004 07:44:19 -0800 (PST)
	(envelope-from Jan.Stocker@t-online.de)
Received: from fwd07.aul.t-online.de 
	by mailout03.sul.t-online.com with smtp 
	id 1Aeyo6-0006Ha-01; Fri, 09 Jan 2004 16:44:18 +0100
Received: from Twoflower.intra.net (Ek8pN4ZHQeP5mM7WGd65-RfkInRvceTirynh6TLVTLcGkKpM2cC8k2@[217.225.123.32]) by fwd07.sul.t-online.com
	with esmtp id 1Aeyno-0txB0y0; Fri, 9 Jan 2004 16:44:00 +0100
Received: (from jstocker@localhost)
	by Twoflower.intra.net (8.12.10/8.12.10/Submit) id i09FhxZ7001121;
	Fri, 9 Jan 2004 16:43:59 +0100 (CET)
	(envelope-from jstocker)
Message-Id: <200401091543.i09FhxZ7001121@Twoflower.intra.net>
Date: Fri, 9 Jan 2004 16:43:59 +0100 (CET)
From: Jan.Stocker@t-online.de (Jan Stocker)
Reply-To: Jan Stocker <Jan.Stocker@t-online.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: atapicam / UDMA cdrom loop
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         61129
>Category:       kern
>Synopsis:       [atapicam] atapicam / UDMA cdrom loop
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    thomas
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 09 07:50:13 PST 2004
>Closed-Date:    Fri Apr 20 04:28:19 GMT 2007
>Last-Modified:  Fri Apr 20 04:28:19 GMT 2007
>Originator:     Jan Stocker
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD Twoflower.intra.net 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Wed Dec 31 15:16:12 CET 2003 root@Twoflower.intra.net:/usr/obj/usr/src/sys/Twoflower50 i386


	
>Description:
Booting with atapicam and atapi_dma on on my system with Traxdata CDRW 2224 Plus leads to an endless loop while checking for ATAPICAM cd1 drive.

Here are some lines i got with some additional output i created with Thomas.

acd1: WARNING - INQUIRY ... 0cbc21100 retries = 1
acd1: WARNING - INQUIRY ... 0cbc21100 retries = 0
atapi_cb: hcb@0xcbc0f780 error=b0: (sk=0b)
dev acd1: cmd12 status 51 result 05
(probe3: ata1:0:1:0): REQUEST SENSE CDB 3 0 0 0 0 20 0
atapi_action: hcb@0xcbc0f740: 3 0 0 0 0 20 0
acd1: WARNING - REQUEST SENSE ... 0xcbc21080 retries 1
acd1: WARNING - REQUEST SENSE ... 0xcbc21080 retries 0
atapi_cb: hcb@0xcbc0f740 error=b0: (sk=0b)
dev acd1: cmd 03 status 51 result 05
(probe3: ata1:0:1:0): INQUIRY. CDB: 12 0 0 0 24 0
atapi_action: hcb@0xcbc0f6c0: 12 0 0 0 24 0

this repeats from start with different base addresses all the time.

Doing some debugging leads to nothing special:

The output is from ata_completed, so i made a breakpoint and created
some steps until the ata_prtdev gives some output.... this leads to a
trace of this:

ata_completed
taskqueue_run + 0xcd
taskqueue_swi_run + 0x13
ithread_loop + 0x1d8
fork_exit + 0xB1
fork_trampoline + 0x8

in all the different output cases.... So nowhere a loop is visible into one
thread....

P.S:
The calling of ata_completed is the following

a) ata_completed failed with "WARNING - INQUIRE UDMA ICRC error (retrying request)"
b) the same as a): "WARNING - INQUIRE UDMA ICRC error (retrying request)"
c) producing no output
d) print "WARNING - SENSE UDMA ICRC error (retrying request)"
e) like d)

That's it.


P.S. This bug is on my system since september 2003.

>How-To-Repeat:
Turn on ATAPICAM
Turn on atapi_dma
Use these two drives: CDRW <CDRW2224 PLUS> at ata1-slave
                      CDROM <ASUS CD-S500/A> at ata1-master
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->thomas 
Responsible-Changed-By: arved 
Responsible-Changed-When: Sun Apr 25 04:35:41 PDT 2004 
Responsible-Changed-Why:  
over to atapicam maintainer 

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

From: Thomas Quinot <thomas@FreeBSD.org>
To: Jan Stocker <Jan.Stocker@t-online.de>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: kern/61129: atapicam / UDMA cdrom loop
Date: Fri, 15 Oct 2004 21:44:58 +0000

 On Fri, Jan 09, 2004 at 04:43:59PM +0100, Jan Stocker wrote:
 
 > System: FreeBSD Twoflower.intra.net 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Wed Dec 31 15:16:12 CET 2003 root@Twoflower.intra.net:/usr/obj/usr/src/sys/Twoflower50 i386
 > 
 > >Description:
 > Booting with atapicam and atapi_dma on on my system with Traxdata CDRW 2224 Plus leads to an endless loop while checking for ATAPICAM cd1 drive.
 
 Do you still see this problem with FreeBSD 5.3 or 6-CURRENT?
 
 Thomas.
 

From: "marco" <marrob@people.it>
To: <bug-followup@FreeBSD.org>, <Jan.Stocker@t-online.de>
Cc:  
Subject: Re: kern/61129: atapicam / UDMA cdrom loop
Date: Wed, 1 Feb 2006 12:27:33 +0100

 Same problem on last updagred freebsd 6.0 release
 Hardware:
 Pioneer DVD on secondary  IDE: slave (detected as UDM 66)
 TDK 16x DVD double layer burner on secondary IDE: master (detected as
 UDMA 33)
 Motherboard: tyan S2095A Trinity i845DDR
 
 Other OS: no problems booting from linux or windows they works without
 conflicts
 
 workaround: not known if not making a free atapicam kernel.
 
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Thu Apr 19 01:17:59 UTC 2007 
State-Changed-Why:  
Is this still a problem with recent versions of FreeBSD? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=61129 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Fri Apr 20 04:27:09 UTC 2007 
State-Changed-Why:  
Submitter no longer has this hardware, so no way to investigate. 
Thanks for your patience. 

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