Subject: kern/6844: Hangs in disk access with ATAPI MMC CDR device.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <eric@mildew.org>
List: netbsd-bugs
Date: 01/18/1999 16:43:16
>Number:         6844
>Category:       kern
>Synopsis:       Hangs in disk access with ATAPI MMC CDR device.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 18 16:50:01 1999
>Last-Modified:
>Originator:     eric@mildew.org
>Organization:
>Release:        1.3I 1/17/1999
>Environment:
anything with IDE
	
System: NetBSD spleen.mildew.org 1.3I NetBSD 1.3I (SPLEEN) #13: Sun Jan 17 22:33:54 PST 1999 root@spleen.mildew.org:/usr/src/sys/arch/i386/compile/SPLEEN i386


>Description:
Access to Memorex CRW-2642 CD-RW drive hangs on SENSE command.

The Memorex CRW-2642 is a cheap, widely available current-production ATAPI 
CD-RW burner. The enclosed patch makes it work with NetBSD. 
It is reported that many other currently sold ATAPI CD-R and CD-RW drives
also suffer this quirk. 


>How-To-Repeat:
"eject cdrom" 
>Fix:
Add ADEV_NOSENSE quirk to dev/scsipi/atapiconf.c:


*** atapiconf.c.old	Tue Dec 22 12:15:00 1998
--- atapiconf.c	Sun Jan 17 23:55:45 1999
*************** struct scsi_quirk_inquiry_pattern atapi_
*** 96,101 ****
--- 96,103 ----
  	 "MATSHITA CR-574", "", "1.02"},          ADEV_NOCAPACITY},
  	{{T_CDROM, T_REMOV,
  	 "FX320S", "", "q01"},          	ADEV_NOSENSE},
+ 	{{T_CDROM, T_REMOV,
+ 	 "Memorex CRW-2642", "", "1.0g"},	ADEV_NOSENSE},
  };
  
  int
>Audit-Trail:
>Unformatted: