2000-10-31 21:56:03

by Paul Jakma

[permalink] [raw]
Subject: scsi-cdrom lockup and ide-scsi problem (both EFS related)

hi,

I have 2 problems related to reading IRIX EFS cd's.

-------problem 1:

mounting an EFS cd from my Yamaha CDR-4416S SCSI CDRW consistently
causes a lockup when i try to read directory/file data from the CD. I
observed this initially with EFS CDR's, and assumed something had
gone wrong when burning that CD. But the exact same thing happens
with original SGI IRIX media. I have no problems with any of my EFS
CDs when accesed from an ATAPI CDROM.

i havn't been able to capture an oops, but the following made it to
the remote syslog host:

Oct 30 18:48:29 fogarty kernel: EFS: 1.0a -
http://aeschi.ch.eu.org/efs/
Oct 30 18:48:44 fogarty kernel: scsi0 channel 0 : resetting for
second half of retries.
Oct 30 18:48:44 fogarty kernel: SCSI bus is being reset for host 0
channel 0.
Oct 30 18:48:44 fogarty kernel: scsi0: Sending Bus Device Reset CCB
#10912 to Target 4
Oct 30 18:48:44 fogarty kernel: scsi0: Bus Device Reset CCB #10912 to
Target 4 Completed
Oct 30 18:48:44 fogarty kernel: Device 0b:00 not ready.
Oct 30 18:48:44 fogarty kernel: I/O error: dev 0b:00, sector 1233661
Oct 30 18:48:44 fogarty kernel: EFS: readdir(): failed to read dir
block 0
Oct 30 18:48:44 fogarty kernel: Device 0b:00 not ready.
Oct 30 18:48:44 fogarty kernel: I/O error: dev 0b:00, sector 1215956
Oct 30 18:48:44 fogarty kernel: EFS: readdir(): failed to read dir
block 0
Oct 30 18:48:44 fogarty kernel: Device 0b:00 not ready.
Oct 30 18:48:44 fogarty kernel: I/O error: dev 0b:00, sector 1236972
Oct 30 18:48:44 fogarty kernel: EFS: readdir(): failed to read dir
block 0
Oct 30 18:48:44 fogarty kernel: Device 0b:00 not ready.
Oct 30 18:48:44 fogarty kernel: I/O error: dev 0b:00, sector 1243717
Oct 30 18:48:44 fogarty kernel: EFS: readdir(): failed to read dir
block 0
Oct 30 18:48:44 fogarty kernel: Device 0b:00 not ready.
Oct 30 18:48:44 fogarty kernel: I/O error: dev 0b:00, sector 48130
Oct 30 18:48:44 fogarty kernel: EFS: readdir(): failed to read dir
block 0

<box is locked>

------problem 2:

My IDE CDROM under ide-scsi emulation does not like trying to mount
EFS CDs, here are the logs of multiple mount attempts:

Oct 31 00:06:50 fogarty kernel: EFS: 1.0a -
http://aeschi.ch.eu.org/efs/
Oct 31 00:06:50 fogarty kernel: sr.c:Bad 2K block number requested (0
1) I/O error: dev 0b:01, sector 0
Oct 31 00:06:50 fogarty kernel: EFS: cannot read volume header
Oct 31 00:06:53 fogarty kernel: Device not ready. Make sure there is
a disc in the drive.
Oct 31 00:06:56 fogarty kernel: Device not ready. Make sure there is
a disc in the drive.
Oct 31 00:06:59 fogarty kernel: Device not ready. Make sure there is
a disc in the drive.
Oct 31 00:07:20 fogarty kernel: sr.c:Bad 2K block number requested (0
1) I/O error: dev 0b:01, sector 0
Oct 31 00:07:20 fogarty kernel: EFS: cannot read volume header
Oct 31 00:07:32 fogarty kernel: ide-scsi: hdd: unsupported command in
request queue (0)
Oct 31 00:07:32 fogarty kernel: end_request: I/O error, dev 16:40
(hdd), sector 0
Oct 31 00:07:32 fogarty kernel: EFS: cannot read volume header
Oct 31 00:07:49 fogarty kernel: sr.c:Bad 2K block number requested (0
1) I/O error: dev 0b:01, sector 0
Oct 31 00:07:49 fogarty kernel: EFS: cannot read volume header
Oct 31 00:07:56 fogarty kernel: sr.c:Bad 2K block number requested (0
1) I/O error: dev 0b:01, sector 0
Oct 31 00:07:56 fogarty kernel: EFS: cannot read volume header

after this the CDROM behaves strange (gtoaster can't read data track,
which it could before), until i put another disk (eg audio) into it
first.

-----------------------

result:

to mount an EFS cd i have to use my IDE CDROM in ATAPI mode, as the
SCSI CDRW locks the machine.

then to burn an EFS cd i have to reboot and set my ATAPI CDROM to use
ide-scsi emulation - if i want to mount the CD for any reason i have
to reboot again to get the IDE CDROM back to pure ATAPI mode, then
reboot again for ide-scsi to burn a cd... slightly frustrating. :)

the devices are:
[[email protected] xinetd.d]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 04 Lun: 00
Vendor: YAMAHA Model: CRW4416S Rev: 1.0g
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: CREATIVE Model: CD2422E MC102 Rev: 1.02
Type: CD-ROM ANSI SCSI revision: 02

please contact me if you need further debugging info.

regards,
--
Paul Jakma [email protected]
PGP5 key: http://www.clubi.ie/jakma/publickey.txt
-------------------------------------------
Fortune:
%DCL-MEM-BAD, bad memory
VMS-F-PDGERS, pudding between the ears


2000-10-31 22:24:37

by Jens Axboe

[permalink] [raw]
Subject: Re: scsi-cdrom lockup and ide-scsi problem (both EFS related)

On Tue, Oct 31 2000, Paul Jakma wrote:
> I have 2 problems related to reading IRIX EFS cd's.
>
> -------problem 1:
>
> mounting an EFS cd from my Yamaha CDR-4416S SCSI CDRW consistently
> causes a lockup when i try to read directory/file data from the CD. I
> observed this initially with EFS CDR's, and assumed something had
> gone wrong when burning that CD. But the exact same thing happens
> with original SGI IRIX media. I have no problems with any of my EFS
> CDs when accesed from an ATAPI CDROM.

Known problem, blocksizes != 2kb does not currently work
correctly with SCSI CD-ROM (it's even on Ted's list).

> My IDE CDROM under ide-scsi emulation does not like trying to mount
> EFS CDs, here are the logs of multiple mount attempts:

Same deal, SCSI CD-ROM driver. As you noted, pure ATAPI drive will
work just fine.

> ide-scsi emulation - if i want to mount the CD for any reason i have
> to reboot again to get the IDE CDROM back to pure ATAPI mode, then
> reboot again for ide-scsi to burn a cd... slightly frustrating. :)

rmmod ide-scsi ; insmod ide-cd
mount, etc
rmmod ide-cd ; insmod ide-scsi
burn

--
* Jens Axboe <[email protected]>
* SuSE Labs

2000-11-01 01:21:04

by Paul Jakma

[permalink] [raw]
Subject: Re: scsi-cdrom lockup and ide-scsi problem (both EFS related)

On Tue, 31 Oct 2000, Jens Axboe wrote:

> Known problem, blocksizes != 2kb does not currently work
> correctly with SCSI CD-ROM (it's even on Ted's list).
>

doesn't work is one thing.. but an instant lockup? that's a bit
unfriendly. :)

> Same deal, SCSI CD-ROM driver. As you noted, pure ATAPI drive will
> work just fine.
>

so once the scsi cdrom is fixed then ide-scsi should work too?

> rmmod ide-scsi ; insmod ide-cd
> mount, etc
> rmmod ide-cd ; insmod ide-scsi
> burn
>

didn't think this was possible. will try that. thanks.

>

regards,
--
Paul Jakma [email protected]
PGP5 key: http://www.clubi.ie/jakma/publickey.txt
-------------------------------------------
Fortune:
The gent who wakes up and finds himself a success hasn't been asleep.

2000-11-01 01:28:24

by Jens Axboe

[permalink] [raw]
Subject: Re: scsi-cdrom lockup and ide-scsi problem (both EFS related)

On Wed, Nov 01 2000, Paul Jakma wrote:
> > Known problem, blocksizes != 2kb does not currently work
> > correctly with SCSI CD-ROM (it's even on Ted's list).
> >
>
> doesn't work is one thing.. but an instant lockup? that's a bit
> unfriendly. :)

It's untested behaviour at this point, all bets are off. It
hasn't oopses here though...

> > Same deal, SCSI CD-ROM driver. As you noted, pure ATAPI drive will
> > work just fine.
> >
>
> so once the scsi cdrom is fixed then ide-scsi should work too?

Yup

--
* Jens Axboe <[email protected]>
* SuSE Labs

2000-11-01 01:36:24

by Paul Jakma

[permalink] [raw]
Subject: Re: scsi-cdrom lockup and ide-scsi problem (both EFS related)

On Tue, 31 Oct 2000, Jens Axboe wrote:

> It's untested behaviour at this point, all bets are off. It
> hasn't oopses here though...
>

let me mail you an IRIX EFS CD.. :)

(only half joking here. if you want one for testing let me know).

> > so once the scsi cdrom is fixed then ide-scsi should work too?
>
> Yup

how far down the TODO list is it? (to this user anyway it's
important).

thanks for the answers jens,
--
Paul Jakma [email protected]
PGP5 key: http://www.clubi.ie/jakma/publickey.txt
-------------------------------------------
Fortune:
The reason that every major university maintains a department of
mathematics is that it's cheaper than institutionalizing all those people.

2000-11-01 01:53:19

by Alan Cox

[permalink] [raw]
Subject: Re: scsi-cdrom lockup and ide-scsi problem (both EFS related)

> > > correctly with SCSI CD-ROM (it's even on Ted's list).
> >
> > doesn't work is one thing.. but an instant lockup? that's a bit
> > unfriendly. :)
>
> It's untested behaviour at this point, all bets are off. It
> hasn't oopses here though...

Not just CD either. SCSI disk has the same problem in 2.4 but not 2.2

2000-11-01 02:05:13

by Jens Axboe

[permalink] [raw]
Subject: Re: scsi-cdrom lockup and ide-scsi problem (both EFS related)

On Wed, Nov 01 2000, Alan Cox wrote:
> > It's untested behaviour at this point, all bets are off. It
> > hasn't oopses here though...
>
> Not just CD either. SCSI disk has the same problem in 2.4 but not 2.2

Disk too? I guess Eric broke more than he bargained for :)

--
* Jens Axboe <[email protected]>
* SuSE Labs

2000-11-01 04:54:29

by Miles Lane

[permalink] [raw]
Subject: Re: scsi-cdrom lockup and ide-scsi problem (both EFS related)

Jens Axboe wrote:
>
> On Tue, Oct 31 2000, Paul Jakma wrote:
> > I have 2 problems related to reading IRIX EFS cd's.
> >
> > -------problem 1:
> >
> > mounting an EFS cd from my Yamaha CDR-4416S SCSI CDRW consistently
> > causes a lockup when i try to read directory/file data from the CD. I
> > observed this initially with EFS CDR's, and assumed something had
> > gone wrong when burning that CD. But the exact same thing happens
> > with original SGI IRIX media. I have no problems with any of my EFS
> > CDs when accesed from an ATAPI CDROM.
>
> Known problem, blocksizes != 2kb does not currently work
> correctly with SCSI CD-ROM (it's even on Ted's list).

Could this have something to do with the problem I reported where
running:

dd if=/dev/zero of=/dev/sda bs=1k count=2G

to write data to my ORB drive over a USB connection causes
all writing to my hard drive to cease? The USB Storage
driver uses a virtual SCSI interface.

Miles

2000-11-01 12:46:30

by Alan Cox

[permalink] [raw]
Subject: Re: scsi-cdrom lockup and ide-scsi problem (both EFS related)

> On Wed, Nov 01 2000, Alan Cox wrote:
> > > It's untested behaviour at this point, all bets are off. It
> > > hasn't oopses here though...
> >
> > Not just CD either. SCSI disk has the same problem in 2.4 but not 2.2
>
> Disk too? I guess Eric broke more than he bargained for :)

Magneto optical disks are 2K block size with 512 byte chunked MSDOS fs on them