Subject: misc/1686: Yet another buggy Chinon CD-ROM
To: None <gnats-bugs@gnats.netbsd.org>
From: None <root@aivo.ton.tut.fi>
List: netbsd-bugs
Date: 10/25/1995 04:03:11
>Number:         1686
>Category:       misc
>Synopsis:       Yet another buggy Chinon CD-ROM
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 24 20:20:01 1995
>Last-Modified:
>Originator:     Mika Kortelainen
>Organization:
	
>Release:        Current as of Oct 24
>Environment:
	
System: NetBSD aivo 1.1_ALPHA NetBSD 1.1_ALPHA (A3000) #1: Fri Oct 20 06:25:10 EET 1995 root@aivo:/usr/src/sys/arch/amiga/compile/A3000 amiga


>Description:
Chinon CDS-525 answers to all eight LUN's. And I think it really
shouldn't... Here's a copy of prints I get during boot (I don't
know if the first one about sync requests is of concern):

Oct 23 03:33:38 aivo /netbsd: wesc0: target 3 ignored sync request
Oct 23 03:33:38 aivo /netbsd: wesc0 targ 3 lun 0: <Chinon, CD-ROM CDS-525, V11> SCSI2 5/cdrom removable
Oct 23 03:33:38 aivo /netbsd: cd0 at scsibus0: drive empty
Oct 23 03:33:38 aivo /netbsd: wesc0 targ 3 lun 1: <Chinon, CD-ROM CDS-525, V11> SCSI2 5/cdrom removable
Oct 23 03:33:38 aivo /netbsd: cd1 at scsibus0cd1(wesc0:3:1): illegal request, data = 00 00 00 00 25 00 00 00 00 00
Oct 23 03:33:38 aivo /netbsd: : drive empty
Oct 23 03:33:38 aivo /netbsd: wesc0 targ 3 lun 2: <Chinon, CD-ROM CDS-525, V11> SCSI2 5/cdrom removable
Oct 23 03:33:38 aivo /netbsd: cd2 at scsibus0cd2(wesc0:3:2): illegal request, data = 00 00 00 00 25 00 00 00 00 00
Oct 23 03:33:38 aivo /netbsd: : drive empty
Oct 23 03:33:38 aivo /netbsd: wesc0 targ 3 lun 3: <Chinon, CD-ROM CDS-525, V11> SCSI2 5/cdrom removable
Oct 23 03:33:38 aivo /netbsd: cd3 at scsibus0cd3(wesc0:3:3): illegal request, data = 00 00 00 00 25 00 00 00 00 00
Oct 23 03:33:38 aivo /netbsd: : drive empty
Oct 23 03:33:38 aivo /netbsd: wesc0 targ 3 lun 4: <Chinon, CD-ROM CDS-525, V11> SCSI2 5/cdrom removable
Oct 23 03:33:38 aivo /netbsd: cd4 at scsibus0cd4(wesc0:3:4): illegal request, data = 00 00 00 00 25 00 00 00 00 00
Oct 23 03:33:38 aivo /netbsd: : drive empty
Oct 23 03:33:38 aivo /netbsd: wesc0 targ 3 lun 5: <Chinon, CD-ROM CDS-525, V11> SCSI2 5/cdrom removable
Oct 23 03:33:38 aivo /netbsd: cd5 at scsibus0cd5(wesc0:3:5): illegal request, data = 00 00 00 00 25 00 00 00 00 00
Oct 23 03:33:38 aivo /netbsd: : drive empty
Oct 23 03:33:38 aivo /netbsd: wesc0 targ 3 lun 6: <Chinon, CD-ROM CDS-525, V11> SCSI2 5/cdrom removable
Oct 23 03:33:38 aivo /netbsd: cd6 at scsibus0cd6(wesc0:3:6): illegal request, data = 00 00 00 00 25 00 00 00 00 00
Oct 23 03:33:38 aivo /netbsd: : drive empty
Oct 23 03:33:38 aivo /netbsd: wesc0 targ 3 lun 7: <Chinon, CD-ROM CDS-525, V11> SCSI2 5/cdrom removable
Oct 23 03:33:38 aivo /netbsd: cd7 at scsibus0cd7(wesc0:3:7): illegal request, data = 00 00 00 00 25 00 00 00 00 00
Oct 23 03:33:38 aivo /netbsd: : drive empty

>How-To-Repeat:
Connect a Chinon CDS-525 to your SCSI adapter and observe. :-)

>Fix:
Add something like the following to /usr/src/sys/scsi/scsiconf.c
to the table scsi_quirk_patterns:

	{T_CDROM, T_REMOV,
	 "CHINON  ", "CD-ROM CDS-525  ", "",     SDEV_NOLUNS},
                                         ^ perhaps V11 here

Please note that I haven't had time to compile a new kernel yet so
I don't know if this really works. But because there are already
two other Chinon's in that table this seems to be quite logical fix.


	Mika Kortelainen
>Audit-Trail:
>Unformatted: