From nobody@FreeBSD.org  Tue May 10 19:24:09 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0FBCE16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 10 May 2005 19:24:09 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D271743D8B
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 10 May 2005 19:24:08 +0000 (GMT)
	(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 j4AJO88j004874
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 10 May 2005 19:24:08 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j4AJO8Mt004873;
	Tue, 10 May 2005 19:24:08 GMT
	(envelope-from nobody)
Message-Id: <200505101924.j4AJO8Mt004873@www.freebsd.org>
Date: Tue, 10 May 2005 19:24:08 GMT
From: Nicolas Blais <nb_root@videotron.ca>
To: freebsd-gnats-submit@FreeBSD.org
Subject: acd0 broken, umass probe takes 5 minutes at boot.
X-Send-Pr-Version: www-2.3

>Number:         80867
>Category:       kern
>Synopsis:       acd0 broken, umass probe takes 5 minutes at boot.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 10 19:30:05 GMT 2005
>Closed-Date:    Sat May 21 01:23:33 GMT 2005
>Last-Modified:  Sat May 21 01:23:33 GMT 2005
>Originator:     Nicolas Blais
>Release:        6.0-CURRENT
>Organization:
>Environment:
FreeBSD clk01a 6.0-CURRENT FreeBSD 6.0-CURRENT #: Tue May 10 06:19:21 EDT 2005     root@clk01a:/usr/obj/usr/src/sys/CLK01A  i386

>Description:
Since I cvsup'd and buildworld/kernel a couple of days ago (after a fresh install of 
March_05 snapshot), my dvdr (acd0) no longer works. 
I have atapicam enabled in my kernel conf file and disabling it does nothing. I 
still get the following errors when trying to read a dvd :
acd0: timeout waiting for ATAPI ready
acd0: error issuing ATA PACKET command
and if I try to mount a cd/dvd, it crashes the system.  

With atapicam enabled, I get several loops of this at boot:
(da0:ata1:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 
(da0:ata1:0:0:0): CAM Status: SCSI Status Error
(da0:ata1:0:0:0): SCSI Status: Check Condition
(da0:ata1:0:0:0): NOT READY csi:0,0,bb,0 asc:3a,0
(da0:ata1:0:0:0): Medium not present
(da0:ata1:0:0:0): (da0:ata1:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 
(da0:ata1:0:0:0): NOT READY csi:0,0,bb,0 asc:3a,0
(da0:ata1:0:0:0): Medium not present
Unretryable error
(da0:ata1:0:0:0): error 6
(da0:ata1:0:0:0): Unretryable Error
Opened disk da0 -> 6
and still no access to acd0 or it's scsi form. The dvdr is set physically set 
as master (not CS) and runs alone on it's channel. I tried changing the cable 
from 80 conductor to 40 conductor (spare parts...) and nothing changed.

Also, whether I have atapicam enabled or not, booting takes about 5 minutes 
because the umass probe is hanging. It will ouput 5 times :
(probe0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR
(probe0:umass-sim0:0:0:0): Retrying Command.
With about a minute in between.

Ironically, after boot, pluging-in a USB mp3 player works and creates da1 successfully. These two problems were not present in the March_05 snapshot. 
My wild guess would be that something happened to either pass, da or scbus that my system doesn't like. This happens with both ULE and 4BSD.
>How-To-Repeat:
Enable atapicam or not, enable umass in kernel.
>Fix:

>Release-Note:
>Audit-Trail:

From: Giorgos Keramidas <keramida@freebsd.org>
To: Nicolas Blais <nb_root@videotron.ca>
Cc: bug-followup@freebsd.org
Subject: Re: kern/80867: acd0 broken, umass probe takes 5 minutes at boot.
Date: Wed, 11 May 2005 03:08:16 +0300

 On 2005-05-10 19:24, Nicolas Blais <nb_root@videotron.ca> wrote:
 > >Release:        6.0-CURRENT
 
 Problems with FreeBSD-CURRENT really belong to the mailing list, not to
 the Gnats database :-/
 
State-Changed-From-To: open->closed 
State-Changed-By: keramida 
State-Changed-When: Sat May 21 01:22:28 GMT 2005 
State-Changed-Why:  
Nicolas, who submitted this, says we can close it. 

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