Re: 2.2.13-pre6

Jens Axboe (axboe@image.dk)
Sat, 11 Sep 1999 20:12:52 +0200


On Sat, Sep 11 1999, Steven N. Hirsch wrote:
> > On Sat, Sep 11 1999, Steven N. Hirsch wrote:
> > >
> > > Changes to the ide driver in 2.2.13-pre6 prevent VMware from using the
> > > CD-ROM (normal use from Linux not adversely affected). It complains about
> > > the status ioctl failing, and will only continue with the CD disabled.
> > > It's been fine through pre4, FWIW.
>
> > Are you sure that this isn't a coincidence? Could you try loading
> > cdrom.o with debug=1 and send the info?
>
> Hi Jens,
>
> No, it's no coincidence. I rebuilt with cdrom.o modularized and loaded
> with 'debug=1' as you asked. Here's the system log excerpt:
>
> First, autofs mounts it when I cd to /misc/cd:
>
> Sep 11 12:20:18 pii automount[986]: attempting to mount entry /misc/cd
> Sep 11 12:20:18 pii kernel: cdrom: entering cdrom_open
> Sep 11 12:20:18 pii kernel: cdrom: entering open_for_data
> Sep 11 12:20:18 pii kernel: cdrom: drive_status=4
> Sep 11 12:20:18 pii kernel: cdrom: entering cdrom_count_tracks
> Sep 11 12:20:18 pii kernel: cdrom: wrong media type, but CDO_CHECK_TYPE not set.
> Sep 11 12:20:18 pii kernel: cdrom: all seems well, opening the device.
> Sep 11 12:20:18 pii kernel: cdrom: opening the device gave me 0.
> Sep 11 12:20:18 pii kernel: cdrom: door locked.
> Sep 11 12:20:18 pii kernel: cdrom: device opened successfully.
> Sep 11 12:20:18 pii kernel: cdrom: Use count for "/dev/hdc" now 1
> Sep 11 12:20:18 pii kernel: cdrom: entering CDROMMULTISESSION
> Sep 11 12:20:18 pii kernel: cdrom: CDROMMULTISESSION successful
>
> Next, I fire up the VM:
>
> Sep 11 12:20:29 pii kernel: cdrom: entering cdrom_open
> Sep 11 12:20:29 pii kernel: cdrom: Use count for "/dev/hdc" now 2
>
> The VM pops up an error dialog, and its own log captures:
>
> Sep 11 12:20:29: Forking AIO IDE1:0 pid=1150 sharedArea=0x41554000 size=0x1000
> Sep 11 12:20:29: CDROM: Verify Ioctl '/dev/cdrom' failed: 'Function not implemented'
>
> Then, VM gives up.. (from /var/log/messages again):
>
> Sep 11 12:20:29 pii kernel: cdrom: entering cdrom_release

The log doesn't tell you what ioctl it failed? I think that this
hunk of the patch might be responsible, could you try reversing
it and giving it a second go?

@@ -875,7 +883,7 @@

case CDROM_DRIVE_STATUS: {
cdinfo(CD_DO_IOCTL, "entering CDROM_DRIVE_STATUS\n");
- if (!(cdo->capability & CDC_DRIVE_STATUS))
+ if (!CDROM_CAN(CDC_DRIVE_STATUS))
return -ENOSYS;
if ((arg == CDSL_CURRENT) || (arg == CDSL_NONE))
return cdo->drive_status(cdi, arg);

For what it's worth, VMWare works flawlessly on my drives.

-- 
*  Jens Axboe <axboe@image.dk>
*  Linux CD-ROM Maintainer
*  http://www.kernel.dk

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/