Bug 4099

Summary: sbp2/scsi emulation broken
Product: Drivers Reporter: Stefan Katletz (stefan.katletz)
Component: IEEE1394Assignee: Ben Collins (bcollins)
Status: CLOSED CODE_FIX    
Severity: normal CC: fitz, roadrunn
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.8 Subsystem:
Regression: --- Bisected commit-id:

Description Stefan Katletz 2005-01-25 00:02:28 UTC
Distribution: debian sarge / ubuntu 4.10 / Mandrake 10.1
Hardware Environment: Asus laptop L3 (P4M) & FireWire (IEEE 1394): Ricoh Co Ltd
R5C552 IEEE 1394 Controller & external USB/firewire harddisk (ICY box)
Software Environment: kernel 2.6.8
Problem Description: the scsi emulation for the external hard disk connected via
firewire doesn't work (USB works). With 2.4.18 kernel there was no problem.

Steps to reproduce: Autoloading produces in dmesg:

ieee1394: Error parsing configrom for node 0-00:1023
ieee1394: Node changed: 0-00:1023 -> 0-01:1023
ieee1394: Node added: ID:BUS[0-00:1023]  GUID[0050770e00071002]
ieee1394: unsolicited response packet received - no tlabel match
scsi0 : SCSI emulation for IEEE-1394 SBP-2 Devices
ieee1394: sbp2: Error logging into SBP-2 device - login timed-out
sbp2: probe of 0050770e00071002-0 failed with error -16
scsi1 : SCSI emulation for IEEE-1394 SBP-2 Devices
ieee1394: sbp2: Error logging into SBP-2 device - login timed-out
sbp2: probe of 0050770e00071002-0 failed with error -16

with manual insertion I can see the disc in /proc/scsi/scsi but it doesn't work:

modprobe iee1394
modprobe ohci1394
modprobe sbp2
cat /proc/scsi/scsi
Attached devices:
Host: scsi4 Channel: 00 Id: 00 Lun: 00
  Vendor: HDS72252 Model: 5VLAT80          Rev:
  Type:   Direct-Access                    ANSI SCSI revision: 06

dmesg:
ieee1394: Node added: ID:BUS[0-00:1023]  GUID[0050770e00071002]
ieee1394: Host added: ID:BUS[0-01:1023]  GUID[00e018000303eed7]
ieee1394: unsolicited response packet received - no tlabel match
sbp2: $Rev: 1219 $ Ben Collins <bcollins@debian.org>
scsi2 : SCSI emulation for IEEE-1394 SBP-2 Devices
ieee1394: sbp2: Logged into SBP-2 device
ieee1394: Node 0-00:1023: Max speed [S400] - Max payload [2048]
  Vendor: HDS72252  Model: 5VLAT80           Rev:
  Type:   Direct-Access                      ANSI SCSI revision: 06
SCSI device sda: 488397168 512-byte hdwr sectors (250059 MB)
sda: asking for cache data failed
sda: assuming drive cache: write through
 /dev/scsi/host2/bus0/target0/lun0:<3>ieee1394: sbp2: aborting sbp2 command
Read (10) 00 00 00 00 00 00 00 08 00
ieee1394: sbp2: aborting sbp2 command
Test Unit Ready 00 00 00 00 00
ieee1394: sbp2: reset requested
ieee1394: sbp2: Generating sbp2 fetch agent reset
ieee1394: sbp2: aborting sbp2 command
Test Unit Ready 00 00 00 00 00
ieee1394: sbp2: reset requested
ieee1394: sbp2: Generating sbp2 fetch agent reset
ieee1394: sbp2: aborting sbp2 command
Test Unit Ready 00 00 00 00 00
ieee1394: sbp2: reset requested
ieee1394: sbp2: Generating sbp2 fetch agent reset
ieee1394: sbp2: aborting sbp2 command
Test Unit Ready 00 00 00 00 00
scsi: Device offlined - not ready after error recovery: host 2 channel 0 id 0 lun 0
SCSI error : <2 0 0 0> return code = 0x50000
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0
scsi2 (0:0): rejecting I/O to offline device
Buffer I/O error on device sda, logical block 0
 unable to read partition table
Attached scsi disk sda at scsi2, channel 0, id 0, lun 0
Comment 1 Neil Gierman 2005-03-26 21:01:32 UTC
Same issue here with a few differences.

Gentoo distro.

Kernel 2.6.10-r6 was working just fine however just upgraded to 2.6.11-r4 and
started seeing the same issue as reported above however only on my 250GB
external drive. 100GB external drive still works on IEEE and 250 is now working
on USB 2.0 controller on same machine.

lspci -v for IEEE:
0000:05:09.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000
Controller (PHY/Link) (prog-if 10 [OHCI])
        Subsystem: AFAVLAB Technology Inc: Unknown device 0000
        Flags: bus master, medium devsel, latency 64, IRQ 18
        Memory at f7be0000 (32-bit, non-prefetchable)
        Memory at f7bd0000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: [44] Power Management version 2

/var/log/messages relating to issue:
Mar 26 12:05:04 pl6500 kernel: Attached scsi generic sg3 at scsi2, channel 0, id
0, lun 0,  type 0
Mar 26 12:05:04 pl6500 kernel: scsi3 : SCSI emulation for IEEE-1394 SBP-2 Devices
Mar 26 12:05:05 pl6500 kernel: ieee1394: sbp2: Logged into SBP-2 device
Mar 26 12:05:05 pl6500 kernel:   Vendor: Maxtor    Model: 5000XT            Rev:
0100
Mar 26 12:05:05 pl6500 kernel:   Type:   Direct-Access                      ANSI
SCSI revision: 06
Mar 26 12:05:05 pl6500 kernel: SCSI device sdb: 490232832 512-byte hdwr sectors
(250999 MB)
Mar 26 12:05:05 pl6500 kernel: SCSI device sdb: 490232832 512-byte hdwr sectors
(250999 MB)
Mar 26 12:05:05 pl6500 kernel:  /dev/scsi/host3/bus0/target1/lun0: p1
Mar 26 12:05:05 pl6500 kernel: Attached scsi disk sdb at scsi3, channel 0, id 1,
lun 0
Mar 26 12:05:05 pl6500 kernel: Attached scsi generic sg4 at scsi3, channel 0, id
1, lun 0,  type 0
Mar 26 12:06:04 pl6500 kernel: SCSI error : <3 0 1 0> return code = 0x8000002
Mar 26 12:06:04 pl6500 kernel: sdb: Current: sense key=0x3
Mar 26 12:06:04 pl6500 kernel:     ASC=0x4b ASCQ=0x0
Mar 26 12:06:04 pl6500 kernel: end_request: I/O error, dev sdb, sector 2151
Mar 26 12:06:13 pl6500 kernel: SCSI error : <3 0 1 0> return code = 0x8000002
Mar 26 12:06:13 pl6500 kernel: sdb: Current: sense key=0x3
Mar 26 12:06:13 pl6500 kernel:     ASC=0x4b ASCQ=0x0
Mar 26 12:06:13 pl6500 kernel: end_request: I/O error, dev sdb, sector 2151
M
Comment 2 T. B. Mloduchowski 2005-05-08 00:59:41 UTC
Fails with unsolicited response packets here, on Alpha, too.. But, this time it gets around after couple hundreds lines to SCSI status report.  However, any operation on device is very slow, and results in even move tlabel_match errors... I can't get it to work faster than mere 2MB/s  Kernel 2.6.10 TSB12LV26 firewire card, (PCI32)  Alpha MiataGL (PWS) EV56 600MHz machine.
Comment 3 Stefan Katletz 2005-07-06 09:40:40 UTC
The Icy Box IB-350UE-BL http://www.icybox.de/ uses the Prolific chipset PL-3507
(ver. C in my case). Updating the firmware from
http://tech.prolific.com.tw/visitor/v_fileBrw.asp?cateId=973849&cateName=USB%2F1394+IDE+Controller+IC
resolved the problem.