Subject: kern/3409: SCSI timeout problem to access CD changer NAKAMITI MBR-7
To: None <gnats-bugs@gnats.netbsd.org>
From: Koji Imada - je4owb/2 <koji@imada.math.human.nagoya-u.ac.jp>
List: netbsd-bugs
Date: 03/29/1997 23:53:28
>Number:         3409
>Category:       kern
>Synopsis:       SCSI timeout problem to access CD changer NAKAMITI MBR-7
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 29 07:50:01 1997
>Last-Modified:
>Originator:     Koji Imada - je4owb/2
>Organization:
Mathematics Group of Graduate School of Human
	Infomatics, Nagoya University, Japan.
>Release:        1.2_BETA
>Environment:
	
System: NetBSD bimota 1.2 NetBSD 1.2 (BIMOTA) #0: Fri Mar 28 07:10:55 JST 1997 koji@bimota:/mnt2/NetBSD/usr/NetBSD/src/sys/arch/i386/compile/BIMOTA i386


>Description:
	When accesing to NAKAMITI MBR-7(CD changer), SCSI timeout
	happens. So I can't read from MBR-7.
>How-To-Repeat:
	connect MBR-7 to SCSI bus and start system. Then insert CD-ROM
	to MBR-7 and try to mount it. It's enough.
>Fix:
	Apply following diffs to sys/scsi/cd.c

Index: sys/scsi/cd.c
===================================================================
RCS file: /mnt2/NetBSD/cvsroot/NetBSD/src/sys/scsi/cd.c,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 cd.c
*** cd.c	1997/03/07 11:35:11	1.1.1.1
--- cd.c	1997/03/09 22:20:37
***************
*** 992,998 ****
  	 */
  	if (scsi_scsi_cmd(cd->sc_link, (struct scsi_generic *)&scsi_cmd,
  	    sizeof(scsi_cmd), (u_char *)&rdcap, sizeof(rdcap), CDRETRIES,
! 	    2000, NULL, flags | SCSI_DATA_IN) != 0)
  		return 0;
  
  	blksize = _4btol(rdcap.length);
--- 992,998 ----
  	 */
  	if (scsi_scsi_cmd(cd->sc_link, (struct scsi_generic *)&scsi_cmd,
  	    sizeof(scsi_cmd), (u_char *)&rdcap, sizeof(rdcap), CDRETRIES,
! 	    20000, NULL, flags | SCSI_DATA_IN) != 0)
  		return 0;
  
  	blksize = _4btol(rdcap.length);

>Audit-Trail:
>Unformatted: