Re: ide-scsi multiplies cd-roms for quite some time...

Gadi Oxman (gadio@netvision.net.il)
Wed, 26 Aug 1998 23:31:04 +0300 (IST)


On Wed, 26 Aug 1998, Janos Farkas wrote:

> For some months, the kernel thinks I have eight times more CD-ROM's than
> in reality, and finally I had a bit of time to even report it... The hw
> setup is not really unique, just a single ATAPI cd-rom on a different
> channel than a single IDE hard disk. The scsi core is compiled in, but
> ide-scsi, cdrom, and sr_mod are loaded as modules.
>
> On module load, I get the following:
>
> Aug 26 14:42:01 distance kernel: scsi0 : SCSI host adapter emulation for IDE ATAPI devices
> Aug 26 14:42:01 distance kernel: scsi : 1 host.
> Aug 26 14:42:01 distance kernel: Vendor: MATSHITA Model: CD-ROM CR-583 Rev: 1.05
> Aug 26 14:42:01 distance kernel: Type: CD-ROM ANSI SCSI revision: 02
> Aug 26 14:42:01 distance kernel: Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
> Aug 26 14:42:01 distance kernel: Vendor: MATSHITA Model: CD-ROM CR-583 Rev: 1.05
> Aug 26 14:42:01 distance kernel: Type: CD-ROM ANSI SCSI revision: 02
> Aug 26 14:42:01 distance kernel: Detected scsi CD-ROM sr1 at scsi0, channel 0, id 0, lun 1
>
> ...etc, you get the picture..
>
> Aug 26 14:42:01 distance kernel: Vendor: MATSHITA Model: CD-ROM CR-583 Rev: 1.05
> Aug 26 14:42:01 distance kernel: Type: CD-ROM ANSI SCSI revision: 02
> Aug 26 14:42:01 distance kernel: Detected scsi CD-ROM sr7 at scsi0, channel 0, id 0, lun 7
> Aug 26 14:42:01 distance kernel: sr0: scsi3-mmc drive: 8x/8x xa/form2 cdda tray
> Aug 26 14:42:01 distance kernel: Uniform CDROM driver Revision: 2.13
> Aug 26 14:42:01 distance kernel: sr1: scsi3-mmc drive: 8x/8x xa/form2 cdda tray
> Aug 26 14:42:01 distance kernel: sr2: scsi3-mmc drive: 8x/8x xa/form2 cdda tray
> Aug 26 14:42:01 distance kernel: sr3: scsi3-mmc drive: 8x/8x xa/form2 cdda tray
> Aug 26 14:42:01 distance kernel: sr4: scsi3-mmc drive: 8x/8x xa/form2 cdda tray
> Aug 26 14:42:01 distance kernel: sr5: scsi3-mmc drive: 8x/8x xa/form2 cdda tray
> Aug 26 14:42:01 distance kernel: sr6: scsi3-mmc drive: 8x/8x xa/form2 cdda tray
> Aug 26 14:42:01 distance kernel: sr7: scsi3-mmc drive: 8x/8x xa/form2 cdda tray
>
> What could cause this? I looked back in the logs, and it seems it
> happened to me first back in January, with 2.1.79. The boot before that
> was with 2.1.75, and that did not do this. On another host with
> multiple ATAPI devices, this doesn't happen either, not even with recent
> kernels.
>
> --
> Janos - Don't worry, my address is real. I'm just bored of spam.
>
>
> -
> 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.altern.org/andrebalsa/doc/lkml-faq.html

This is actually a feature rather than a bug :-)

The cdrom is being detected 8 times since the kernel was compiled with
the 'Probe all LUNs on each SCSI device' option, and most ATAPI devices
ignore the LUN field and respond to each LUN.

However, multi-lun ATAPI devices do exist. An ATAPI PD-CD device
will be detected as a SCSI disk drive on LUN 0 and as an ATAPI
cdrom on LUN 1.

Gadi

-
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.altern.org/andrebalsa/doc/lkml-faq.html