James Bottomley wrote:
Could you get a trace of what's going on from the command response point of view? Doing a scsi_print_command() in the queuecommand() routine and printing the return code and sense (with scsi_print_sense()) in the ->done() should be sufficient.
If I only new where the done() is taken from. Seems to come from scsi.c. Here is the log with all the old conversions active in sbp2. I put scsi_print_command() into sbp2scsi_queuecommand() and scsi_print_sense() into scsi_done(). Jul 13 21:53:20 shuttle kernel: scsi0 : SCSI emulation for IEEE-1394 SBP-2 Devices Jul 13 21:53:21 shuttle kernel: ieee1394: sbp2: Logged into SBP-2 device Jul 13 21:53:21 shuttle kernel: scsi0 : destination target 0, lun 0 Jul 13 21:53:21 shuttle kernel: command: Inquiry: 12 00 00 00 24 00 Jul 13 21:53:21 shuttle kernel: Unrecognized sense data (in hex): Jul 13 21:53:21 shuttle kernel: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Jul 13 21:53:21 shuttle kernel: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Jul 13 21:53:21 shuttle kernel: Vendor: Initio Model: IC25N080ATMR04-0 Rev: 2.18 Jul 13 21:53:21 shuttle kernel: Type: Direct-Access ANSI SCSI revision: 02 Jul 13 21:53:21 shuttle scsi.agent: disk at /devices/pci0000:00/0000:00:0c.0/fw-host1/00101003b80001e0/00101003b80001e0-0/host0/target0:0:0/0:0:0:0 Jul 13 21:53:21 shuttle kernel: scsi0 : destination target 0, lun 0 Jul 13 21:53:21 shuttle kernel: command: Test Unit Ready: 00 00 00 00 00 00 Jul 13 21:53:21 shuttle kernel: Unrecognized sense data (in hex): Jul 13 21:53:21 shuttle kernel: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Jul 13 21:53:21 shuttle kernel: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Jul 13 21:53:21 shuttle kernel: scsi0 : destination target 0, lun 0 Jul 13 21:53:22 shuttle kernel: command: Read Capacity (10): 25 00 00 00 00 00 00 00 00 00 Jul 13 21:53:22 shuttle kernel: Unrecognized sense data (in hex): Jul 13 21:53:22 shuttle kernel: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Jul 13 21:53:22 shuttle kernel: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Jul 13 21:53:22 shuttle kernel: SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB) Jul 13 21:53:22 shuttle kernel: scsi0 : destination target 0, lun 0 Jul 13 21:53:23 shuttle perl: drakupdate_fstab called with --auto --add /dev/sda4 Jul 13 21:53:23 shuttle kernel: command: Mode Sense (6): 1a 00 08 00 04 00 Jul 13 21:53:23 shuttle kernel: ieee1394: sbp2: Convert MODE_SENSE_6 to MODE_SENSE_10 Jul 13 21:53:23 shuttle kernel: ieee1394: sbp2: Modify mode sense response (10 byte version) Jul 13 21:53:23 shuttle kernel: Unrecognized sense data (in hex): Jul 13 21:53:23 shuttle kernel: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Jul 13 21:53:23 shuttle kernel: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Jul 13 21:53:23 shuttle kernel: scsi0 : destination target 0, lun 0 Jul 13 21:53:23 shuttle kernel: command: Mode Sense (6): 1a 00 08 00 10 00 Jul 13 21:53:23 shuttle kernel: ieee1394: sbp2: Convert MODE_SENSE_6 to MODE_SENSE_10 Jul 13 21:53:23 shuttle kernel: ieee1394: sbp2: Modify mode sense response (10 byte version) Jul 13 21:53:23 shuttle kernel: Unrecognized sense data (in hex): Jul 13 21:53:23 shuttle kernel: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Jul 13 21:53:23 shuttle kernel: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Jul 13 21:53:23 shuttle kernel: sda: got wrong page Jul 13 21:53:23 shuttle kernel: sda: assuming drive cache: write through Jul 13 21:53:23 shuttle kernel: scsi0 : destination target 0, lun 0 Jul 13 21:53:23 shuttle kernel: command: Test Unit Ready: 00 00 00 00 00 00 Jul 13 21:53:23 shuttle kernel: Unrecognized sense data (in hex): Jul 13 21:53:23 shuttle kernel: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Jul 13 21:53:23 shuttle kernel: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Jul 13 21:53:23 shuttle kernel: scsi0 : destination target 0, lun 0 Jul 13 21:53:23 shuttle kernel: command: Read Capacity (10): 25 00 00 00 00 00 00 00 00 00 Jul 13 21:53:23 shuttle kernel: Unrecognized sense data (in hex): Jul 13 21:53:23 shuttle kernel: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Jul 13 21:53:23 shuttle kernel: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Jul 13 21:53:23 shuttle kernel: SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB) Jul 13 21:53:23 shuttle kernel: scsi0 : destination target 0, lun 0 Jul 13 21:53:23 shuttle kernel: command: Mode Sense (6): 1a 00 08 00 04 00 Jul 13 21:53:23 shuttle kernel: ieee1394: sbp2: Convert MODE_SENSE_6 to MODE_SENSE_10 Jul 13 21:53:23 shuttle kernel: ieee1394: sbp2: Modify mode sense response (10 byte version) Jul 13 21:53:23 shuttle kernel: Unrecognized sense data (in hex): Jul 13 21:53:24 shuttle kernel: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Jul 13 21:53:24 shuttle kernel: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Jul 13 21:53:24 shuttle kernel: scsi0 : destination target 0, lun 0 Jul 13 21:53:24 shuttle kernel: command: Mode Sense (6): 1a 00 08 00 10 00 Jul 13 21:53:24 shuttle kernel: ieee1394: sbp2: Convert MODE_SENSE_6 to MODE_SENSE_10 Jul 13 21:53:24 shuttle kernel: ieee1394: sbp2: Modify mode sense response (10 byte version) Jul 13 21:53:24 shuttle kernel: Unrecognized sense data (in hex): Jul 13 21:53:24 shuttle kernel: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Jul 13 21:53:24 shuttle perl: drakupdate_fstab called with --auto --add /dev/sda3 Jul 13 21:53:24 shuttle kernel: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Jul 13 21:53:23 shuttle perl: drakupdate_fstab called with --auto --add /dev/sda1 Jul 13 21:53:24 shuttle perl: drakupdate_fstab called with --auto --add /dev/sda6 Jul 13 21:53:25 shuttle perl: drakupdate_fstab called with --auto --add /dev/sda9 Jul 13 21:53:25 shuttle perl: drakupdate_fstab called with --auto --add /dev/sda8 Jul 13 21:53:25 shuttle perl: drakupdate_fstab called with --auto --add /dev/sda10 Jul 13 21:53:25 shuttle kernel: sda: got wrong page Jul 13 21:53:25 shuttle kernel: sda: assuming drive cache: write through Jul 13 21:53:25 shuttle kernel: sda:scsi0 : destination target 0, lun 0 Jul 13 21:53:25 shuttle kernel: command: Read (10): 28 00 00 00 00 00 00 00 08 00 Jul 13 21:53:25 shuttle kernel: Unrecognized sense data (in hex): Jul 13 21:53:25 shuttle kernel: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Jul 13 21:53:25 shuttle kernel: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Jul 13 21:53:25 shuttle kernel: [mac] sda1 sda2 sda3 sda4 sda5 sda6 sda7scsi0 : destination target 0, lun 0 Jul 13 21:53:25 shuttle kernel: command: Read (10): 28 00 00 00 00 08 00 00 08 00 Jul 13 21:53:25 shuttle kernel: Unrecognized sense data (in hex): Jul 13 21:53:25 shuttle kernel: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Jul 13 21:53:25 shuttle kernel: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Jul 13 21:53:25 shuttle kernel: sda8 sda9 sda10 Jul 13 21:53:25 shuttle kernel: Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 Jul 13 21:53:25 shuttle perl: drakupdate_fstab called with --auto --add /dev/sda7 Jul 13 21:53:26 shuttle perl: drakupdate_fstab called with --auto --add /dev/sda5 Jul 13 21:53:26 shuttle perl: drakupdate_fstab called with --auto --add /dev/sda2 Next I will try the new sbp2 without conversion (the one that lets the system reboot). -- Stefan Richter -=====-=-=-= -=== -==-= http://arcgraph.de/sr/ - : send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html