Subject: kern/1207: Another CDROM that doesn't do non-zero LUN's
To: None <gnats-admin@sun-lamp.pc.cs.cmu.edu>
From: None <osymh@gemini.oscs.montana.edu>
List: netbsd-bugs
Date: 07/10/1995 21:20:11
>Number:         1207
>Category:       kern
>Synopsis:       Another CDROM that doesn't do non-zero LUN's
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 10 21:20:05 1995
>Originator:     Michael L. Hitch
>Organization:
	Montana State University
>Release:        1.0A 07/10/95
>Environment:
	
System: NetBSD amiga2.oscs.montana.edu 1.0A NetBSD 1.0A (ZEUS) #950705-10: Sun Jul 9 22:40:55 MDT 1995 root@amiga2.oscs.montana.edu:/opt/tmp/src/sys/arch/amiga/compile/ZEUS amiga


>Description:
	The Chinon CDS-431 Rev H40 does not respond to select with ATN,
	so does not process the IDENTIFY message.  The LUN needs to be
	encoded in the SCSI command for the drive to recognize non-zero
	LUN's.  I suspect that the later Rev H42 does the same thing, so
	if there isn't a later revision of the CDS-431 that handles the
	IDENTIFY message, this entry probably be a single entry with
	an empty revision field.
>How-To-Repeat:
>Fix:
diff -cr /usr/src/sys/scsi/scsiconf.c sys/scsi/scsiconf.c
*** /usr/src/sys/scsi/scsiconf.c	Wed Jun 28 01:13:53 1995
--- sys/scsi/scsiconf.c	Fri Jul  7 20:43:38 1995
***************
*** 258,263 ****
--- 258,265 ----
  
  struct scsi_quirk_inquiry_pattern scsi_quirk_patterns[] = {
  	{T_CDROM, T_REMOV,
+ 	 "CHINON  ", "CD-ROM CDS-431  ", "H40",  SDEV_NOLUNS},
+ 	{T_CDROM, T_REMOV,
  	 "CHINON  ", "CD-ROM CDS-431  ", "H42",  SDEV_NOLUNS},
  	{T_CDROM, T_REMOV,
  	 "CHINON  ", "CD-ROM CDS-535  ", "Q14",  SDEV_NOLUNS},


or replace the "H42" with "".
>Audit-Trail:
>Unformatted: