Subject: Re: Status of CDIOCPLAYTRACKS, CDIOCSETVOL problems outlined in: kern/7299 & kern/16883?
To: NetBSD current-users mailing list <current-users@netbsd.org>
From: Julian Coleman <jdc@coris.demon.co.uk>
List: current-users
Date: 10/31/2002 21:32:18
> cd0(umass0:0:1:0):  Check Condition on CDB: 0x15 10 00 00 1c 00
>     SENSE KEY:  Illegal Request
>      ASC/ASCQ:  Invalid Field In Parameter List
>          SKSV:  Error in Parameters, Offset 0, bit 4
> 
> 
> And the following patch seems to solve this problem.

It certainly makes cdplay work on :

  Digital AlphaPC 164LX 599 MHz, s/n 
  siop0 at pci0 dev 9 function 0: Symbios Logic 53c875 (ultra-wide scsi)
  cd0 at scsibus0 target 2 lun 0: <NAKAMICH, MJ-5.16S, 1.11> cdrom removable

> In my analysis, rev 1.19 of cd_scsi.c used cd_scsibus_set_mode()
> instead of scsipi_mode_select(). cd_scsibus_set_mode() had the code
> which clear a data.header.data_length, but scsipi_mode_select()
> does not have. So we need `data.header.data_length = 0;' before
> calling scsipi_mode_select().

Well spotted!  I'll try the patch on a couple of other machines this weekend
(sparc/atari) but it looks OK.

J

-- 
                    My other computer also runs NetBSD
                          http://www.netbsd.org/