sbp2: aborting sbp2 command

From: Karl Vogel <karl.vogel_at_seagha.com>
Date: Wed 11 Feb 2004 - 18:08:15 CET
Message-Id: <1076519294.10822.11.camel@kvo.local.org>

I'm trying to use my external harddisk (Maxtor OneTouch 250Gb) via the
sbp2 module on kernel V2.6.3-rc1. However I get constant 'aborting sbp2
command' messages.

In order to have some more information, I recompiled the sbp2.c module
with CONFIG_IEEE1394_SBP2_DEBUG 1 set in the source file.

After making this change, my drive works without a problem!

So there is probably a timing issue somewhere. I've also tried lowering
the speed to 200 and 100 mb, setting serialize_io, force_inquiry_hack
and changing the max_sectors. Nothing seems to help.

So.. with the debug logging, it works but spews a lot of kernel debug
info.. without debug logging, the drive is total useless.

Some more information:

# lspci -v -s 00:09.2
00:09.2 FireWire (IEEE 1394): Creative Labs SB Audigy FireWire Port
(prog-if 10 [OHCI])
        Subsystem: Creative Labs SB Audigy FireWire Port
        Flags: bus master, medium devsel, latency 32, IRQ 17
        Memory at dffff000 (32-bit, non-prefetchable) [size=2K]
        Memory at dfff8000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: [44] Power Management version 2

With debug logging, connecting the drive gives:

ieee1394: Node added: ID:BUS[0-01:1023] GUID[0010b9f7007a8edf]
ieee1394: The root node is not cycle master capable; selecting a new
root node and resetting...
ieee1394: Node changed: 0-01:1023 -> 0-00:1023
ieee1394: Node changed: 0-00:1023 -> 0-01:1023
ieee1394: sbp2: sbp2_probe
ieee1394: sbp2: sbp2_add_host
ieee1394: sbp2: sbp2_start_ud
ieee1394: sbp2: sbp2_parse_unit_directory
ieee1394: sbp2: sbp2_firmware_revision = 20000
ieee1394: sbp2: sbp2_management_agent_addr = f0030000
ieee1394: sbp2: sbp2_unit_characteristics = 3c08
ieee1394: sbp2: sbp2_command_set_spec_id = 609e
ieee1394: sbp2: sbp2_command_set = 104d8
ieee1394: sbp2: sbp2_device_type_and_lun = 400000
ieee1394: sbp2: sbp2_start_device
ieee1394: sbp2: New SBP-2 device inserted, SCSI ID = 0
ieee1394: sbp2: sbp2_login_device
ieee1394: sbp2: sbp2_login_device: password_hi/lo initialized
ieee1394: sbp2: sbp2_login_device: login_response_hi/lo initialized
ieee1394: sbp2: sbp2_query_logins: set lun to 0
ieee1394: sbp2: sbp2_login_device: lun_misc initialized
ieee1394: sbp2: sbp2_login_device: passwd_resp_lengths initialized
ieee1394: sbp2: sbp2_login_device: status FIFO initialized
ieee1394: sbp2: sbp2_login_device: orb byte-swapped
ieee1394: sbp2: sbp2_login_device: login_response/status FIFO memset
ieee1394: sbp2: sbp2_login_device: prepared to write to f0030000
ieee1394: sbp2: sbp2_login_device: written
ieee1394: sbp2: sbp2_handle_status_write
ieee1394: sbp2: command_block_agent_hi = ffc0ffff
ieee1394: sbp2: command_block_agent_lo = f0100000
ieee1394: sbp2: Logged into SBP-2 device
ieee1394: sbp2: sbp2_set_busy_timeout
ieee1394: sbp2: sbp2_agent_reset
ieee1394: sbp2: sbp2_max_speed_and_size
ieee1394: sbp2: Node 0-00:1023: Max speed [S400] - Max payload [2048]
ieee1394: sbp2: sbp2scsi_queuecommand
ieee1394: sbp2: sbp2_send_command
ieee1394: sbp2: SCSI transfer size = 24
ieee1394: sbp2: SCSI s/g elements = 0
ieee1394: sbp2: No scatter/gather
ieee1394: sbp2: sbp2_check_sbp2_command
ieee1394: sbp2: sbp2_handle_status_write
ieee1394: sbp2: Found status for command ORB
ieee1394: sbp2: Completing SCSI command
ieee1394: sbp2: sbp2scsi_complete_command
ieee1394: sbp2: sbp2_check_sbp2_response
  Vendor: Maxtor Model: OneTouch Rev: 0200
  Type: Direct-Access ANSI SCSI revision: 06
ieee1394: sbp2: sbp2scsi_queuecommand
ieee1394: sbp2: sbp2_send_command
ieee1394: sbp2: SCSI transfer size = 0
ieee1394: sbp2: SCSI s/g elements = 0
ieee1394: sbp2: No data transfer
ieee1394: sbp2: sbp2_check_sbp2_command
ieee1394: sbp2: sbp2_handle_status_write
ieee1394: sbp2: Found status for command ORB
ieee1394: sbp2: Completing SCSI command
ieee1394: sbp2: sbp2scsi_complete_command
ieee1394: sbp2: sbp2_check_sbp2_response
ieee1394: sbp2: sbp2scsi_queuecommand
ieee1394: sbp2: sbp2_send_command
ieee1394: sbp2: SCSI transfer size = 8
ieee1394: sbp2: SCSI s/g elements = 0
ieee1394: sbp2: No scatter/gather
ieee1394: sbp2: sbp2_check_sbp2_command
ieee1394: sbp2: sbp2_handle_status_write
ieee1394: sbp2: Found status for command ORB
ieee1394: sbp2: Completing SCSI command
ieee1394: sbp2: sbp2scsi_complete_command
ieee1394: sbp2: sbp2_check_sbp2_response
SCSI device sda: 490232832 512-byte hdwr sectors (250999 MB)
ieee1394: sbp2: sbp2scsi_queuecommand
ieee1394: sbp2: sbp2_send_command
ieee1394: sbp2: SCSI transfer size = 4
ieee1394: sbp2: SCSI s/g elements = 0
ieee1394: sbp2: No scatter/gather
ieee1394: sbp2: sbp2_check_sbp2_command
ieee1394: sbp2: Convert MODE_SENSE_6 to MODE_SENSE_10
ieee1394: sbp2: sbp2_handle_status_write
ieee1394: sbp2: Found status for command ORB
ieee1394: sbp2: CHECK CONDITION
ieee1394: sbp2: sbp2_status_to_sense_data
ieee1394: sbp2: Completing SCSI command
ieee1394: sbp2: sbp2scsi_complete_command
ieee1394: sbp2: SBP2_SCSI_STATUS_CHECK_CONDITION
0x1a 00 08 00 04 00
Current bh: sense = 70 5
ASC=24 ASCQ= 0
Raw sense data:0x70 0x00 0x05 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00
0x00 0x24 0x00 0x00 0x00 0x00 0x00
sda: cache data unavailable
sda: assuming drive cache: write through
 sda:<7>ieee1394: sbp2: sbp2scsi_queuecommand
ieee1394: sbp2: sbp2_send_command
ieee1394: sbp2: SCSI transfer size = 1000
ieee1394: sbp2: SCSI s/g elements = 1
ieee1394: sbp2: Use scatter/gather
ieee1394: sbp2: Only one s/g element
ieee1394: sbp2: sbp2_check_sbp2_command
ieee1394: sbp2: sbp2_handle_status_write
ieee1394: sbp2: Found status for command ORB
ieee1394: sbp2: Completing SCSI command
ieee1394: sbp2: sbp2scsi_complete_command
ieee1394: sbp2: sbp2_check_sbp2_response
 sda1
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0

Any tips or pointers will be greatly appreciated.. and if more
information or testing is required... feel free to ask :-)

Regards,
Karl

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
mailing list Linux1394-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux1394-user
Received on Wed Feb 11 18:18:27 2004

This archive was generated by hypermail 2.1.8 : Mon 02 May 2005 - 09:16:46 CEST