From wilko@yedi.iaf.nl Mon Apr 12 14:38:33 1999
Return-Path: <wilko@yedi.iaf.nl>
Received: from uni4nn.gn.iaf.nl (osmium.gn.iaf.nl [193.67.144.12])
	by hub.freebsd.org (Postfix) with ESMTP id 7406215542
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 12 Apr 1999 14:38:25 -0700 (PDT)
	(envelope-from wilko@yedi.iaf.nl)
Received: (from uucp@localhost)
	  by uni4nn.gn.iaf.nl (8.9.2/8.9.2) with UUCP id XAA29289
	  for FreeBSD-gnats-submit@freebsd.org; Mon, 12 Apr 1999 23:22:58 +0200 (MET DST)
Received: (from wilko@localhost) by yedi.iaf.nl (8.8.8/8.6.12) id XAA03559; Mon, 12 Apr 1999 23:28:40 +0200 (CEST)
Message-Id: <199904122128.XAA03559@yedi.iaf.nl>
Date: Mon, 12 Apr 1999 23:28:40 +0200 (CEST)
From: wilko@freebsd.org
Sender: wilko@yedi.iaf.nl
Reply-To: wilko@freebsd.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: Pioneer SCSI CD changer not detected by scsi_cd.c probe
X-Send-Pr-Version: 3.2

>Number:         11100
>Category:       kern
>Synopsis:       Pioneer SCSI CD changer not detected by scsi_cd.c probe
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ken
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 12 14:40:01 PDT 1999
>Closed-Date:    Thu May 13 15:02:55 PDT 1999
>Last-Modified:  Thu May 13 15:03:47 PDT 1999
>Originator:     Wilko Bulte
>Release:        4.0-current
>Organization:
private FreeBSD site - Arnhem - The Netherlands
>Environment:

	4.0-current / Pioneer DRM604X SCSI cdchanger w/ firmware
	rev 2401

>Description:

	Certain Pioneer SCSI cd changers do not return the standard ASC
	codes during device probe. This makes the probe drop the device,
	making it unusable under FreeBSD.

>How-To-Repeat:

	You just need the right Pioneer f/w & device. No further
	special environment is needed.

>Fix:
Apply the following patch to /sys/cam/scsi/scsi_cd.c
	
*** scsi_cd.c   Mon Apr 12 22:36:04 1999
--- scsi_cd.c.orig      Mon Apr 12 22:35:00 1999
***************
*** 1747,1757 ****
                                 * not reportable), so we accept any "not
                                 * ready" type errors as well.  If the error
                                 * is anything else, though, we shouldn't
!                                * attach. Pioneer drives can also return
0xb0
                                 */
                                if ((have_sense)
!                                && ((asc == 0x3a) || (asc == 0x04) || 
!                                   (asc == 0xb0))
                                 && (error_code == SSD_CURRENT_ERROR))
                                        snprintf(announce_buf,
                                            sizeof(announce_buf),
--- 1747,1756 ----
                                 * not reportable), so we accept any "not
                                 * ready" type errors as well.  If the error
                                 * is anything else, though, we shouldn't
!                                * attach.
                                 */
                                if ((have_sense)
!                                && ((asc == 0x3a) || (asc == 0x04))
                                 && (error_code == SSD_CURRENT_ERROR))
                                        snprintf(announce_buf,
                                            sizeof(announce_buf),


>Release-Note:
>Audit-Trail:

From: "Kenneth D. Merry" <ken@plutotech.com>
To: wilko@FreeBSD.ORG
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/11100: Pioneer SCSI CD changer not detected by scsi_cd.c probe
Date: Mon, 12 Apr 1999 15:52:47 -0600 (MDT)

 wilko@FreeBSD.ORG wrote...
 > 
 > >Number:         11100
 > >Category:       kern
 > >Synopsis:       Pioneer SCSI CD changer not detected by scsi_cd.c probe
 > >Confidential:   no
 > >Severity:       serious
 > >Priority:       medium
 > >Responsible:    freebsd-bugs
 > >State:          open
 > >Quarter:        
 > >Keywords:       
 > >Date-Required:
 > >Class:          change-request
 > >Submitter-Id:   current-users
 > >Arrival-Date:   Mon Apr 12 14:40:01 PDT 1999
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     Wilko Bulte
 > >Release:        4.0-current
 > >Organization:
 > private FreeBSD site - Arnhem - The Netherlands
 > >Environment:
 > 
 > 	4.0-current / Pioneer DRM604X SCSI cdchanger w/ firmware
 > 	rev 2401
 > 
 > >Description:
 > 
 > 	Certain Pioneer SCSI cd changers do not return the standard ASC
 > 	codes during device probe. This makes the probe drop the device,
 > 	making it unusable under FreeBSD.
 > 
 > >How-To-Repeat:
 > 
 > 	You just need the right Pioneer f/w & device. No further
 > 	special environment is needed.
 
 Your diffs are reversed.  In any case, that's probably not the solution
 I'll use to fix the problem.
 
 Ken
 -- 
 Kenneth Merry
 ken@plutotech.com
 
State-Changed-From-To: open->analyzed 
State-Changed-By: ken 
State-Changed-When: Mon Apr 12 15:00:40 PDT 1999 
State-Changed-Why:  
I know what the problem is, and have a few ideas for solving it. 


Responsible-Changed-From-To: freebsd-bugs->ken 
Responsible-Changed-By: ken 
Responsible-Changed-When: Mon Apr 12 15:00:40 PDT 1999 
Responsible-Changed-Why:  
I'll handle this. 
State-Changed-From-To: analyzed->feedback 
State-Changed-By: ken 
State-Changed-When: Sat May 8 01:06:35 PDT 1999 
State-Changed-Why:  
This should be fixed as of revision 1.18 of scsi_cd.c in -current and revi 
1.14.2.4 of scsi_cd.c in -stable. 
Let me know whether this fixes your problem or not. 
State-Changed-From-To: feedback->closed 
State-Changed-By: ken 
State-Changed-When: Thu May 13 15:02:55 PDT 1999 
State-Changed-Why:  
The PR submitter reports that the changes to the CD driver fixed this 
particular problem. 
>Unformatted:
