Subject: kern/2861: quirk pattern for magneto optical drives which doesn't support page 4/5 mode sense
To: None <gnats-bugs@gnats.netbsd.org>
From: None <enami@ba2.so-net.or.jp>
List: netbsd-bugs
Date: 10/18/1996 20:55:33
>Number:         2861
>Category:       kern
>Synopsis:       quirk pattern for magneto optical drives which doesn't support page 4/5 mode sense
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 18 05:50:00 1996
>Last-Modified:
>Originator:     enami tsugutomo
>Organization:
	an indivisual...
>Release:        NetBSD-current 96/10/16
>Environment:
System: NetBSD red-glasses.enami.ba2.so-net.or.jp 1.2A NetBSD 1.2A (RED_GLASSES) #8: Fri Oct 18 20:35:14 JST 1996 enami@red-glasses.enami.ba2.so-net.or.jp:/usr/src/sys/arch/alpha/compile/RED_GLASSES alpha


>Description:
	The magneto optical drives I have also doesn't support page 4 or
	page 5 scsi mode sense.  So there is warning message every time
	device is open like this:
sd1: could not mode sense (4/5); using fictitious geometry

>How-To-Repeat:
	Connect the magneto optical drive Logitech LMO-640 (actually it uses
	Fujitsu drive) or ELECOM EMO-2300S (actually it uses Olympus drive),
	and boot with inserting media, or try to mount after boot.

	For example, if boot system with inserting media into drives, startup
	message is like this (note warnings on sd1 and sd2):

		:
pci0 at lca0 bus 0
ncr0 at pci0 dev 6 function 0: NCR 53c810 SCSI
ncr0: interrupting at isa irq 11
ncr0: restart (scsi reset).
scsibus0 at ncr0
sd0 at scsibus0 targ 1 lun 0: <SEAGATE, ST31230N, 0510> SCSI2 0/direct fixed
sd0: sd0(ncr0:1:0): FAST SCSI-2 100ns (10 Mb/sec) offset 8.
1010MB, 3992 cyl, 5 head, 103 sec, 512 bytes/sec
sd1 at scsibus0 targ 2 lun 0: <FUJITSU, M2513A, 0800> SCSI2 7/optical removable
sd1: sd1(ncr0:2:0): 200ns (5 Mb/sec) offset 8.
sd1: could not mode sense (4/5); using fictitious geometry
508MB, 508 cyl, 64 head, 32 sec, 512 bytes/sec
sd2 at scsibus0 targ 5 lun 0: <DELTIS, MOS321, 3.30> SCSI2 7/optical removable
sd2: sd2(ncr0:5:0): 200ns (5 Mb/sec) offset 8.
sd2: could not mode sense (4/5); using fictitious geometry
217MB, 217 cyl, 64 head, 32 sec, 512 bytes/sec
sio0 at pci0 dev 7 function 0: Intel 82378IB PCI-ISA Bridge (System I/O) (rev. 0x03)
		:

>Fix:
	Here is a quirk patterns for them:

Index: scsiconf.c
===================================================================
RCS file: /a/cvsroot/NetBSD/sys/scsi/scsiconf.c,v
retrieving revision 1.1.1.8
diff -u -r1.1.1.8 scsiconf.c
--- scsiconf.c	1996/10/15 03:52:19	1.1.1.8
+++ scsiconf.c	1996/10/18 11:51:16
@@ -334,6 +334,10 @@
 
 	{{T_OPTICAL, T_REMOV,
 	 "EPSON   ", "OMD-5010        ", "3.08"}, SDEV_NOLUNS},
+	{{T_OPTICAL, T_REMOV,
+	 "FUJITSU", "M2513A",		 "0800"}, SDEV_NOMODESENSE},
+	{{T_OPTICAL, T_REMOV,
+	 "DELTIS  ", "MOS321          ", "3.30"}, SDEV_NOMODESENSE},
 
 	{{T_DIRECT, T_FIXED,
 	 "DEC     ", "RZ55     (C) DEC", ""},     SDEV_AUTOSAVE},
>Audit-Trail:
>Unformatted: