Subject: Re: Atapi CD-ROM problem with 990123-current
To: Ken Wellsch <kwellsch@link.link-systems.com>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-alpha
Date: 02/11/1999 14:13:44
On Feb 9, Ken Wellsch wrote
> After playing with the Oct snapshot and then I think a late Nov copy
> of -current, I've now been playing with the 990123 -current on a PC164SX
> box.  I note the GENERIC kernel says that the BusLogic driver is untested.
> I'm using a 948 card without any troubles - if there are things I can do
> so you can consider it "tested" feel free to tell me!  I get this now from
> the ATAPI CD-ROM drive I'm using (worked okay up til now).  This is from
> the boot log:
> 
> 	...
> cd0 at atapibus0 drive 1: <GCD-R580B, , 1.03> type 5 cdrom removable
> cd0: 32-bits data port
> cd0: drive supports PIO mode 3, DMA mode 1
> cd0(pciide1:0:1): using PIO mode 3
> 	...
> 
> and when I put a CD-R in and do a "disklabel cd0" I got this; the
> second one is from an "eject cd0"
> 
> cd0(pciide1:0:1): Sense Error Code 0x7f at block no. 16777215 (decimal)
> cd0(pciide1:0:1): Sense Error Code 0x7f at block no. 16777215 (decimal)
> 
> Just a glitch with the copy of -current from that specific date?

I added the code to issue REQUEST SENSE commands at 1998/11/17. So maybe your
precedent shapshots didn't use REQUEST SENSE.
It's know that some ATAPI drives don't handle REQUEST SENSE properly, there's
a quirk flag for that. But they usually reject the command, or fail to issue
an interrupt. In your case it seems the command completed, but the data
returned are all 0xff (sense error code mask = 0x7f, err code valid = 0x80,
16777215 = 0xffffff). That's why I posted a mail to -i386 asking if
someone has such a drive working with current.

However, the appended patch should allow you to use your drive. Can you
confirm it works ?

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--

Index: atapiconf.c
===================================================================
RCS file: /cvsroot/src/sys/dev/scsipi/atapiconf.c,v
retrieving revision 1.23
diff -u -r1.23 atapiconf.c
--- atapiconf.c	1999/01/26 10:00:08	1.23
+++ atapiconf.c	1999/02/11 13:13:29
@@ -85,6 +85,8 @@
 	{{T_CDROM, T_REMOV,
 	 "GCD-R580B", "", "1.00"},		ADEV_LITTLETOC},
 	{{T_CDROM, T_REMOV,
+	 "GCD-R580B", "", "1.03"},		ADEV_NOSENSE},
+	{{T_CDROM, T_REMOV,
 	 "MATSHITA CR-574", "", "1.02"},	ADEV_NOCAPACITY},
 	{{T_CDROM, T_REMOV,
 	 "MATSHITA CR-574", "", "1.06"},	ADEV_NOCAPACITY},