With ide-scsi I had the exact same problem as with 2.4.4pre6 and 0.0.2i as reported in <20010423224639.A593@olafrye.dyndns.org> , i.e. a complete lockup of my system so a hard reset was neccesary and alas I am still not able to make serial logging work so I cannot provide a bug report, sorry. I then tried to disable ide-scsi and this time at least the lockup is avoided but I get these errors instead: Formatting track Writing UDF structures to disc 7200 (CEST)/-120 hdd: irq timeout: status=0xd0 { Busy } hdd: Atapi reset complete wait_cmd: Input/output error Command failed: 2a 00 00 00 00 00 00 00 20 00 00 00 - sense 08.00.00 Error writing packet 0 (ffffffff) Regards, Morten -- "Life is all memory, except for the one present moment that goes by you so quick you hardly catch it going." (Tennessee Williams)
I ought to elaborate with some syslog messages:
Morten Bo Johansen
With ide-scsi I had the exact same problem as with 2.4.4pre6
[...]
This is the output ensuing the 'pktsetup /dev/pktcdvd0 /dev/hdd' command: pktcdvd: v0.0.2j 28/04/2001 Jens Axboe (axboe@suse.de) udf: registering filesystem VFS: Disk change detected on device ide1(22,64) hdd: irq timeout: status=0xd0 { Busy } hdd: ATAPI reset complete VFS: Disk change detected on device ide1(22,64) pktcdvd: writer hdd sucessfully registered And this stems from the 'mount -t udf /dev/pktcdvd0 /cdrw' command: pktcdvd: inserted media is CD-RW pktcdvd: Fixed packets, 32 blocks, Mode-2 disc hdd: packet command error: status=0x51 { DriveReady SeekComplete Error } hdd: packet command error: error=0x50 ATAPI device hdd: Error: Illegal request -- (Sense key=0x05) Invalid field in command packet -- (asc=0x24, ascq=0x00) The failed "Mode Sense 10" packet command was: "5a 00 08 00 00 00 00 00 0c 00 00 00 " pktcdvd: speed (R/W) 3/2 pktcdvd: 549888kB available on disc UDF-fs DEBUG ../linux-2.4/lowlevel.c:57:udf_get_last_session: XA disk: no, vol_desc_start=0 UDF-fs DEBUG ../linux-2.4/super.c:1366:udf_read_super: Multi-session=0 UDF-fs DEBUG ../linux-2.4/misc.c:322:udf_read_tagged: location mismatch block 256, tag 0 != 256 UDF-fs DEBUG ../linux-2.4/super.c:1375:udf_read_super: Lastblock=0 UDF-fs DEBUG ../linux-2.4/super.c:403:udf_vrs: Starting at sector 16 (2048 byte sectors) UDF-fs DEBUG ../linux-2.4/super.c:1132:udf_check_valid: Failed to read byte 32768. Assuming open disc. Skipping validity check UDF-fs DEBUG ../linux-2.4/super.c:1184:udf_load_partition: No Anchor block found UDF-fs: No partition found (1) I also tried to format the disc as ext2 which did not lock up my system but the mke2fs-process itself stalled and subesequently could not be killed even with the -9 flag. Other filesystems could not be unmounted as a result of it Hope this is somehow helpful. Regards, Morten -- "More than any other time in history, mankind faces a crossroads. One path leads to despair and utter hopelessness. The other, to total extinction. Let us pray we have the wisdom to choose correctly." (Woody Allen)
On Mon, Apr 30 2001, Morten Bo Johansen wrote:
This is the output ensuing the 'pktsetup /dev/pktcdvd0 /dev/hdd' command:
pktcdvd: v0.0.2j 28/04/2001 Jens Axboe (axboe@suse.de) udf: registering filesystem VFS: Disk change detected on device ide1(22,64) hdd: irq timeout: status=0xd0 { Busy } hdd: ATAPI reset complete
Weird, could you enable full debug when you do this? # echo "1" > /proc/sys/dev/cdrom/debug and compile with PACKET_DEBUG set to 2 in include/linux/pktcdvd.h
pktcdvd: inserted media is CD-RW pktcdvd: Fixed packets, 32 blocks, Mode-2 disc hdd: packet command error: status=0x51 { DriveReady SeekComplete Error } hdd: packet command error: error=0x50 ATAPI device hdd: Error: Illegal request -- (Sense key=0x05) Invalid field in command packet -- (asc=0x24, ascq=0x00) The failed "Mode Sense 10" packet command was: "5a 00 08 00 00 00 00 00 0c 00 00 00 "
Your drive does not implement the write caching mode page, the attached patch should make sure that we don't print errors on that. It's not critical in any way.
I also tried to format the disc as ext2 which did not lock up my system but the mke2fs-process itself stalled and subesequently could not be killed even with the -9 flag. Other filesystems could not be unmounted as a result of it
Writing still goes wrong. Ok, what drive did you use again? General: for folks having problems, enable the debug in pktcdvd.h I mentioned above and test. Something like this would be nice to see: # dd if=/dev/urandom of=/tmp/packet_block bs=64k count=1 # dd if=/tmp/packet_block of=/dev/pktcdvd0 bs=64k count=1 Now pktsetup -d the device. # dd if=/dev/hdc of=/tmp/hdc_packet bs=64k count=1 (of course replace hdc with your write device...) # cmp /tmp/hdc_packet /tmp/packet_block and see if they match up. -- Jens Axboe
On Mon, Apr 30 2001, Morten Bo Johansen wrote:
wait_cmd: Input/output error Command failed: 2a 00 00 00 00 00 00 00 20 00 00 00 - sense 08.00.00 Error writing packet 0 (ffffffff)
Sense isn't being reported right, hmm. Please apply attached patch and try again, then look for the sense dump in the dmesg log. -- Jens Axboe
On Mon, Apr 30 2001, Jens Axboe wrote:
On Mon, Apr 30 2001, Morten Bo Johansen wrote:
wait_cmd: Input/output error Command failed: 2a 00 00 00 00 00 00 00 20 00 00 00 - sense 08.00.00 Error writing packet 0 (ffffffff)
Sense isn't being reported right, hmm. Please apply attached patch and try again, then look for the sense dump in the dmesg log.
Definitely, sense is being passed back correctly to user space here: bart:~ # ./x ioctl: Input/output error sense 05.24.00 x is just a silly prog that also does an invalid mode sense from user space. -- Jens Axboe
On Mon, Apr 30 2001, Jens Axboe wrote:
On Mon, Apr 30 2001, Jens Axboe wrote:
On Mon, Apr 30 2001, Morten Bo Johansen wrote:
wait_cmd: Input/output error Command failed: 2a 00 00 00 00 00 00 00 20 00 00 00 - sense 08.00.00 Error writing packet 0 (ffffffff)
Sense isn't being reported right, hmm. Please apply attached patch and try again, then look for the sense dump in the dmesg log.
Definitely, sense is being passed back correctly to user space here:
bart:~ # ./x ioctl: Input/output error sense 05.24.00
x is just a silly prog that also does an invalid mode sense from user space.
Eek, just took another look. Sense is passed back correctly, and 8/0/0 is a blank disc warning. Shouldn't lockup of course, but at least the drive does not recognise the track. Anyways, Morten was kind enough to lend me his CD-RW drive. So I'm testing this as we speak. -- Jens Axboe
participants (2)
-
Jens Axboe
-
Morten Bo Johansen